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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dirPath": "<dirPath>",
"pattern": "<pattern>"
},
"name": "search_docs"
}
}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. |