search_text
Search source and config files with a literal string or regex, returning token-capped file:line matches for text that symbol lookup cannot resolve.
Instructions
Raw text/regex search (string literals, comments, config — what the symbol index can't answer). Replaces Bash grep when you need text, not symbols. → capped file:line: line. For code symbols prefer search_symbol.
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": {
"q": "<q>"
},
"name": "search_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | String or regular expression. | |
| docs | No | With no path/glob, widen the sweep to docs/config text (md/json/yaml/…). | |
| glob | No | Only files matching this basename glob (e.g. *.md). | |
| path | No | Search ONE file (any extension auto-included). | |
| maxResults | No | ||
| projectPath | No |