search_text
Search source files for text or regex patterns in strings, comments, and config keys that the symbol index cannot find, returning token-limited results.
Instructions
Raw text/regex search in source (string literals, comments, config keys — things the symbol index can't answer). Bounded and token-capped to file:line: trimmed-line. The sanctioned replacement for Bash grep when you genuinely need text, not symbols. Prefer search_symbol for code symbols.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | String or regular expression to find. | |
| path | No | Search ONE named file (any extension — naming a README.md/.txt/etc auto-includes it; no docs flag needed). Relative to the project root or absolute. | |
| glob | No | Search only files matching this basename glob (e.g. *.md, *.json) — any extension the glob covers, no docs flag needed. | |
| projectPath | No | ||
| maxResults | No | ||
| docs | No | When NO path/glob is given, widen the project-wide sweep to README/docs/config text (md/txt/json/yaml/…), not just source. Ignored when path/glob targets a file directly. |