search_text
Search files under an allowed root for text or regex and return capped matching lines. Set a path, match limit, and regex mode to find content.
Instructions
Search text under an allowed root. Returns capped matching 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 directory. Defaults to the root. | |
| limit | No | Max matches. | |
| query | Yes | Text or regex to find. | |
| regex | No | Treat query as a regex. |