Search Text
search_textFind text or regex matches across files and folders, returning path:line results with optional glob, case, context, and result-limit controls.
Instructions
Grep across files (ripgrep speed when installed). Returns 'path:line: text' lines.
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": "search_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File or folder to search. | . |
| query | Yes | Text or regex to search for inside files. | |
| regex | No | Treat query as a regular expression. | |
| file_glob | No | Only search files matching this glob, e.g. '*.py'. | |
| max_results | No | Max matching lines to return. | |
| context_lines | No | Lines of context before/after each match (0-5). | |
| case_sensitive | No | Match case. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||