fs_search_text
Search workspace files for literal text or regex patterns and return matching lines with binary skipping, ReDoS protection, and secret redaction.
Instructions
Search for literal text or regular expressions across files in the sandbox workspace root with automatic binary skipping, ReDoS protection, and inline secret redaction.
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": "fs_search_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Relative directory or file path to scope the search. | . |
| query | Yes | Literal string or regular expression to search for. | |
| is_regex | No | Whether to evaluate query as a regular expression. | |
| max_results | No | Maximum number of matching lines to return. |