get_callers
Map reverse call graph to find all direct and indirect callers of a given Python function in a file or package.
Instructions
Reverse call graph: who calls this function, directly and transitively.
Args:
path: Path to a .py file.
function: Function name or Class.method.
scope: "file" (default) or "package".
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 | ||
| scope | No | file | |
| function | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |