search_files
Locate specified text inside files using filters like glob patterns, case sensitivity, and whole words, with context lines and search depth controls.
Instructions
Searches for text content within files and returns JSON data
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The text to search for within files | |
| maxDepth | No | Maximum directory depth to traverse when searching (defaults to 10) | |
| wholeWord | No | Whether to match whole words only (default: false) | |
| maxResults | No | Maximum number of results to return (default: 100, max: 1000) | |
| filePattern | No | Optional glob pattern to filter files to search (e.g., "*.js", "*.md") | |
| contextLines | No | Number of lines of context to show around matches (default: 2, max: 10) | |
| caseSensitive | No | Whether the search should be case sensitive (default: false) |