vectr_trace
Trace a known symbol's callers and callees to map dependencies before editing code. Get directional call graph insights with optional limits and builtin filtering.
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. |