getCallHierarchy
Retrieve the call hierarchy for a function or method to find callers, callees, or both, using file location and direction parameters.
Instructions
Get the call hierarchy for a function or method. Use direction="incoming" to find callers, "outgoing" to see everything it calls, or "both" (default).
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": {
"filePath": "<filePath>",
"line": "<line>",
"column": "<column>"
},
"name": "getCallHierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number (1-based) | |
| column | Yes | Column (1-based) | |
| cursor | No | Cursor from previous call's nextCursor. Omit on first call. | |
| filePath | Yes | Workspace or absolute path | |
| direction | No | "incoming"=callers, "outgoing"=callees, "both"=all (default) | |
| maxResults | No | Max callers/callees per direction (default: 50, max: 200) |