gograph_callers
Find all direct callers of a specified Go function. Use before renaming or changing a function's signature to understand its impact on downstream code.
Instructions
Find all functions and methods that directly call the specified function (one-hop fan-in). Requires .gograph/graph.json — run gograph build . first. Read-only; no side effects. WHEN TO USE: Before renaming, removing, or changing the signature of a function — see who calls it. NOT TO USE: For transitive upstream blast radius (use gograph_impact); for downstream callees (use gograph_callees). RETURNS: List of caller symbols with package paths, file locations, and call-site line numbers; empty when no callers found (function is a root or entry point).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function | Yes | The name of the target function to find callers for (supports short name 'BuildGraph', dot-notation 'graph.Graph.Build', or fully-qualified ID) |