search_text
Search for text patterns in files using regex, glob filters, and options like case sensitivity and whole word matching. Get results with context lines.
Instructions
Search for text patterns in files
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Text pattern to search for (supports regex) | |
| directory | No | Directory to search in | . |
| filePattern | No | File pattern to include (glob) | * |
| excludePattern | No | File pattern to exclude (glob) | |
| recursive | No | Search recursively | |
| caseSensitive | No | Case sensitive search | |
| wholeWord | No | Match whole words only | |
| maxResults | No | Maximum number of results | |
| contextLines | No | Number of context lines to show |