search_symbol
Locate symbol declarations by name or substring using semantic index, returning file and line references without code bodies. Replaces grep for symbol search.
Instructions
Find a symbol DECLARATION (class/function/type/var) by name/substring — semantic index, not grep. → capped kind name @ file:line, no bodies. Use instead of grep/rg to locate a symbol.
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": {
"q": "<q>"
},
"name": "search_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Symbol name or substring. | |
| path | No | Scope to a file/class (basename or path substring). An inherited symbol not declared there is reported tree-wide. | |
| backend | No | ||
| maxResults | No | ||
| projectPath | No |