Search text
search_textFind literal text across workspace source files to locate references, strings, or code snippets. Filter by directory and case sensitivity to narrow results.
Instructions
Searches literal text across the source files of the workspace.
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 |
|---|---|---|---|
| limit | No | Maximum items to return (default 500) | |
| query | Yes | Literal text to look for | |
| offset | No | Items to skip before the first result | |
| directory | No | Directory relative to the workspace root | |
| caseSensitive | No | Match case exactly (default false) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||