What You’ll Learn

Comprehensive reference for Verdent’s built-in tool system, including file operations, search capabilities, command execution, and integration tools.

Available Tools Overview

Verdent for VS Code provides a comprehensive toolkit for code manipulation, navigation, and external interaction.
ToolPurposeKey Capabilities
file_readRead file contentsSupports line ranges for large files, works with all text formats
file_editTargeted modificationsReplace exact text matches, multiple replacements, preserves formatting
file_writeCreate or overwrite filesComplete file creation/replacement, handles text content

Tool Capabilities and Use Cases

file_read

Capabilities:
  • Read complete file contents or specific line ranges
  • Essential for understanding code before modifications
  • Efficient handling of large files through range specification
Use Cases:
  • Reading configuration files before editing
  • Understanding existing implementation patterns
  • Reviewing test files to understand coverage
Example:
# Read entire file
file_read("src/components/Button.tsx")

# Read specific range for large files
file_read("package-lock.json", start_line=1, max_lines=50)

file_edit

Capabilities:
  • Precise text replacement using exact string matching
  • Multiple replacement operations with multiple flag
  • Preserves file structure and formatting
Use Cases:
  • Updating function implementations
  • Modifying configuration values
  • Refactoring variable names across files
Best Practice: Use for targeted changes. For complete rewrites, use file_write instead.

file_write

Capabilities:
  • Create new files from scratch
  • Completely replace existing file contents
  • Handle any text-based format
Use Cases:
  • Generating new components or modules
  • Creating configuration files
  • Writing test files
Warning: Overwrites existing files completely. Use file_edit for partial modifications.

File Format Support

Verdent works with all text-based file formats through its file operation tools.
CategoryLanguages/Extensions
WebJavaScript, TypeScript, HTML, CSS, SCSS, LESS
BackendPython, Java, Go, Rust, C, C++, C#, Ruby, PHP, Perl
MobileSwift, Kotlin, Dart (Flutter), Objective-C
FunctionalHaskell, Scala, Elixir, Clojure, F#
ScriptingBash, PowerShell, Zsh, Fish
DataSQL, R, Julia, MATLAB

Programming Language Support

Verdent provides comprehensive support for all text-based programming languages and frameworks.
Language/FrameworkSupport LevelCommon Use Cases
JavaScriptExcellentFrontend logic, Node.js backends, tooling
TypeScriptExcellentType-safe web apps, large-scale projects
ReactExcellentComponent-based UIs, hooks, state management
VueExcellentProgressive web apps, single-file components
AngularExcellentEnterprise applications, TypeScript integration
SvelteVery GoodCompiled components, reactive programming
HTML/CSSExcellentMarkup, styling, responsive design
SCSS/LESSExcellentAdvanced styling, variables, mixins
Support Quality: Common languages (JavaScript, Python, TypeScript) have stronger support due to extensive training data. Less common or domain-specific languages may have reduced support quality but remain functional.

Usage Limits and Best Practices

file_read Efficiency

Best Practices:
  • Use line ranges for files over 500 lines to avoid context overload
  • Read only relevant sections needed for the task
  • For large files, use grep_content first to identify relevant line numbers
# Good: Read specific section
file_read("large-config.json", start_line=100, max_lines=50)

# Less efficient: Read entire large file
file_read("large-config.json")  # May consume excessive context

file_edit Precision

Best Practices:
  • Ensure exact string matches to avoid failed edits
  • For multiple similar changes, use multiple=true flag
  • Verify file paths before editing

file_write Safety

Best Practices:
  • Double-check paths to prevent accidental overwrites
  • Use for new files or complete rewrites only
  • For modifications, prefer file_edit for safety

See Also