get_symbol_context
Retrieve all indexed AST nodes for a symbol, including file path, node type (class/function/import), and line range. Locate where a symbol is defined and understand its role in the codebase.
Instructions
Returns all indexed AST nodes matching a symbol name, including file path,
node type (class/function/import), and precise line range.
Useful for answering: *"Where is `VectorDBClient` defined and what does it do?"*
Args:
symbol: The exact or partial name of the class, function, or import to look up.
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": {
"symbol": "<symbol>"
},
"name": "get_symbol_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |