search_nodes
Fuzzy-find code nodes by name or path to obtain canonical node IDs, eliminating the need for manual grepping or guessing.
Instructions
Fuzzy-find nodes by name or path (e.g. "useAuth", "Header") — resolve a rough name to canonical node ids without grepping or guessing ids
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_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Repo root (defaults to cwd) | |
| type | No | Restrict to node types (component, function, file, …) | |
| limit | No | Max results (default 20) | |
| query | Yes | Free-text name/path to match |