search_in_large_file
Search for a pattern within large files, supporting regex and case-sensitive matching, with configurable context lines and result limits.
Instructions
Search for a pattern in a large file with context lines. Supports regex and case-sensitive search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the file | |
| pattern | Yes | Search pattern (supports regex if regex=true) | |
| caseSensitive | No | Case sensitive search (default: false) | |
| regex | No | Use regex pattern (default: false) | |
| maxResults | No | Maximum number of results (default: 100) | |
| contextBefore | No | Number of context lines before match (default: 2) | |
| contextAfter | No | Number of context lines after match (default: 2) | |
| startLine | No | Start searching from line number (optional) | |
| endLine | No | End searching at line number (optional) |