xref_callers
Find all callers of a module or function for impact analysis before refactoring. Answers: 'What depends on this?'
Instructions
Find all callers of a module or function across the project — "what depends on this?"
WHEN TO USE: Impact analysis before refactoring. "What breaks if I change this function?" "Who calls this module?" NOT FOR: Understanding what a function does (use get_docs). Seeing runtime call flow (use trace_calls).
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": {
"reference": "<reference>"
},
"name": "xref_callers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reference | Yes | Module or Module.function/arity (e.g. "Merlinex.Core.Manager" or "Enum.map/2") |