find_callers
Identify all functions that call a given function to map dependencies, assess refactoring impact, and understand code flow.
Instructions
š Find all functions that call the specified function.
šÆ PURPOSE: Identifies the call hierarchy - which functions depend on the target function, essential for understanding code dependencies. š§ USAGE: Use when analyzing function dependencies, planning refactoring, or understanding code flow patterns. ā” PERFORMANCE: Fast operation (1-2s) - uses pre-built call graph for efficient traversal. š WORKFLOW: find_definition ā find_callers ā analyze call patterns ā find_callees for complete dependency picture. š” TIP: Crucial for refactoring - shows all functions that would break if you change the target function's signature.
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": {
"function": "<function>"
},
"name": "find_callers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function | Yes | Function name to find callers for (supports method names with class context) |