scoped_search
Search code and text with token-bounded results to replace raw grep/find, cutting context use while finding symbols, identifiers, or regex matches by scope.
Instructions
Safe, token-bounded symbol/text search replacing raw grep/find (-90% tokens). '|' or \d in query auto-enables regex when use_regex is omitted; false forces literal.
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": {
"query": "<query>"
},
"name": "scoped_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory to search (alias for project_path; relative or absolute) | |
| query | Yes | Text, identifier, or symbol name | |
| scope | No | Filter: 'code', 'config', 'all', extension ('go', '*.py'), or subfolder ('internal/promo') (default 'all') | |
| use_regex | No | Omit = auto-detect ('|', \d → regex); false = literal; true = regex | |
| max_results | No | Max matching lines (default 25, max 100) | |
| project_path | No | Optional root directory (defaults to current project) | |
| case_sensitive | No | Case-sensitive search (default false) |