callers
Trace incoming calls to a Java symbol, grouped by enclosing method, with depth, paging, scope filtering, and optional override-aware results.
Instructions
Incoming calls / uses grouped by the enclosing method (like incomingCalls). Exact: only this symbol, not same-named members of other types. Calls in lambdas and anonymous classes count for the enclosing method; field initializers for the field; initializer blocks for the class. offset/limit page the direct callers.
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": {
"symbol": "<symbol>"
},
"name": "callers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Levels of callers | |
| limit | No | Max items | |
| scope | No | Only results in this package (prefix or glob) or, with '/', source path glob | |
| offset | No | Items to skip | |
| symbol | Yes | Name or exact SCIP symbol (forms: see the server instructions) | |
| max_nodes | No | Stop after this many callers in the whole tree | |
| project_root | No | Checkout or worktree to query (any directory in it); default: where the server started | |
| include_overridden | No | Also calls to the methods this one overrides, which may dispatch here |