trace_data_flow
Walk call and import edges from a single entity to return ordered steps of callers or callees, revealing code dependencies before a change.
Instructions
Walk the call chain out from ONE entity and get the whole path back, as ordered steps. Give a focal, a direction and a depth. It walks call and import edges, not values through variables. Naming TWO things? Use trace_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Maximum traversal depth from the focal (default 3, capped at 8) | |
| focal | Yes | Focal entity UUID or exact entity name to start tracing from | |
| target | No | A symbol to reach, by exact name or UUID. Its branch survives the per-step cap first. | |
| compact | No | Alias for include_body: false. Ignored when include_body is given explicitly. | |
| direction | No | Which way to walk: `calls` for callees, `callers` for callers, `both` merges. | both |
| max_chars | No | Alias for max_response_chars, the spelling shared with the other retrieval tools. | |
| include_body | No | Inline each step's source. False gives the chain's shape at a fraction of the size. | |
| limit_per_step | No | Edges kept per hop. Raise it for a node `clipped_steps` reports as cut. | |
| max_response_chars | No | Serialized characters this response may occupy; the same parameter as `max_chars`. |