lsp_calls
Find who calls a function or what it calls at a given file and line. Provide file and line to trace incoming or outgoing call hierarchy.
Instructions
Call hierarchy of the function at file:line: incoming (who calls it) or outgoing (what it calls).
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>"
},
"name": "lsp_calls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Source file | |
| line | Yes | 1-based line | |
| symbol | No | Identifier on that line; its column is found automatically | |
| character | No | 1-based column (or give symbol instead) | |
| direction | No | incoming |