get_callers
Find all functions in a file or package that call a specified function, revealing reverse call graphs for dependency analysis.
Instructions
Finds all functions in a file or package that call the specified function (reverse call graph)
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": {
"path": "<path>",
"function": "<function>"
},
"name": "get_callers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the TS/JS file | |
| scope | No | Analysis scope: 'file' or 'package' | file |
| function | Yes | Name of the target function (e.g., 'setup' or 'MyClass.method') |