grep_regex
Search files or directories using custom regex patterns, configure case sensitivity, whole word matching, inverted results, context lines, and file extensions for precise text search results.
Instructions
Search using a direct regex pattern
Input Schema
Name | Required | Description | Default |
---|---|---|---|
case_sensitive | No | Whether the search should be case sensitive | |
context_lines | No | Number of context lines to show before/after matches | |
file_extensions | No | Only search files with these extensions (e.g., ['js', 'ts']) | |
invert_match | No | Show lines that don't match the pattern | |
max_results | No | Maximum number of results to return | |
pattern | Yes | Regular expression pattern to search for | |
show_context | No | Show surrounding lines for context | |
target | Yes | File or directory path to search in | |
whole_words | No | Match whole words only |