Search text
search_text_toolSearches text within files using literal or regex patterns, with options for case sensitivity, root path, and max matches.
Instructions
Search contents: literal by default, regex=true for patterns. rg preferred.
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": {
"root": "<root>",
"pattern": "<pattern>"
},
"name": "search_text_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | ||
| regex | No | ||
| pattern | Yes | ||
| max_matches | No | ||
| case_sensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |