search
Find exact lines in a codebase by looking up a literal substring in indexed files. Returns matching lines with file path and line number for offline, private code lookup.
Instructions
Search previously indexed files for a literal substring. Returns matching lines with file path and line number.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Optional project root to search within | |
| query | Yes | Literal substring to search for | |
| max_results | No | Maximum results (default 100) |