vectr_trace
Traverse the call graph to find which functions call a given symbol and which functions it calls. Analyze dependencies before modifying code.
Instructions
Use when you know the SYMBOL NAME and need to understand its callers or callees before modifying it. Traverses the call graph in both directions. NOT when you don't know the symbol name yet — use vectr_search or vectr_locate first. NOT when you just want the definition location — use vectr_locate instead. Example: vectr_trace(name='EvaluateSegments') → 'Called by: RequestBid() in bidder/auction.go'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Symbol name to trace | |
| limit | No | Max results per direction (default: 20) | |
| direction | No | 'callers' (who calls this), 'callees' (what it calls), or 'both' (default) | both |
| include_builtins | No | Include language builtins/stdlib in the 'calls' list (len, assert, Ok, Some, malloc, …). Default false — only repo-internal calls are shown, with a count of how many builtins were hidden. |