find_text
Search workspace files for a literal text string, with options to filter by file extensions, set case sensitivity, and limit results.
Instructions
Search file contents for a literal text string (grep-like).
Args: query: Literal text to search for. root: Directory to search under, relative to the workspace root. extensions: Optional list like [".py", ".ts"] to restrict the search. case_sensitive: Whether the match is case sensitive. max_results: Cap on number of matching lines returned.
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": "find_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | . | |
| query | Yes | ||
| extensions | No | ||
| max_results | No | ||
| case_sensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||