search_code
Find code by searching full-text across project files, with filters for directory and file pattern to narrow results.
Instructions
Full-text search across project files
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_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text string to search for | |
| directory | No | Directory to search in (relative to project root). Defaults to project root. | |
| file_pattern | No | Glob to filter which files are searched, e.g. "*.ts" |