lsp_prepare_call_hierarchy
Generates call hierarchy for a symbol at a specified file position, returning cached IDs for incoming and outgoing call analysis.
Instructions
Prepare call hierarchy items for a symbol. Returns cached opaque IDs used by lsp_incoming_calls and lsp_outgoing_calls. Maps to textDocument/prepareCallHierarchy.
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>",
"position": "<position>"
},
"name": "lsp_prepare_call_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute or workspace-relative path to the file. | |
| maxItems | No | Maximum number of hierarchy items. | |
| position | Yes | Line/character position (zero-based) of the symbol. |