search_code
Search text or symbols beneath an absolute project directory to find code matches by query, with optional file filters and result limits.
Instructions
Search text or symbols below an absolute project directory.
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": {
"path": "<path>",
"query": "<query>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | text | |
| path | Yes | ||
| query | Yes | ||
| file_glob | No | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||