search_docs
Search documentation files in a local directory using regex. Returns ranked matches with file path and line number.
Instructions
Greps for a pattern within documentation files (README, docs/**/*.md) in a local directory. Returns matching lines with file path and line number. Results ranked by relevance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dirPath | Yes | The absolute path to the local directory to search. | |
| pattern | Yes | The regex pattern to search for. | |
| filePattern | No | Optional. Regex to filter which doc files to search. | |
| contextLines | No | Optional. Number of surrounding context lines (max 5). | |
| includePath | No | Optional. Glob patterns to include. | |
| excludePath | No | Optional. Glob patterns to exclude. |