grep_files
Search files and directories for specific patterns using text or regex. Filter results by case sensitivity, whole words, file size, and depth. Output matches in text or JSON format, with optional context lines and pagination support.
Instructions
Search for pattern in files, similar to grep.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
case_sensitive | No | ||
context_after | No | ||
context_before | No | ||
context_lines | No | ||
count_only | No | ||
exclude_patterns | No | ||
format | No | text | |
include_patterns | No | ||
is_regex | No | ||
max_depth | No | ||
max_file_size_mb | No | ||
max_results | No | ||
path | Yes | ||
pattern | Yes | ||
recursive | No | ||
results_limit | No | ||
results_offset | No | ||
whole_word | No |