lsp_incoming_calls
Retrieve all callers of a function or method using a cached call hierarchy item ID. Useful for code analysis and impact assessment.
Instructions
Find callers of a function or method using a cached call hierarchy item ID. Maps to callHierarchy/incomingCalls.
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": {
"itemId": "<itemId>"
},
"name": "lsp_incoming_calls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | Opaque item ID from lsp_prepare_call_hierarchy. | |
| maxResults | No | Maximum number of calls. |