nav_callHierarchy
Get incoming callers or outgoing callees for a symbol using live language server data. Falls back to static analysis when needed.
Instructions
Live call hierarchy (incoming callers or outgoing callees) from the language server. Position must be on the symbol name — use resolve(nodeId) to get one. Falls back to nav_references / static map call edges when the server lacks call-hierarchy support (response carries source:'fallback-*' and a warning).
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": {
"file": "<file>",
"line": "<line>",
"direction": "<direction>"
},
"name": "nav_callHierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | No | 1-based column (UTF-16 units) | |
| file | Yes | Repo-relative path, posix separators | |
| line | Yes | 1-based line | |
| depth | No | ||
| direction | Yes | ||
| tokenBudget | No | Max tokens for the response. Lists are truncated to fit, with a note saying what was dropped and how to get it back. |