Follow xrefs across multiple hops
trace_data_flowFind all code paths touching a string, constant, or global by tracing cross-references from or to an address across multiple hops.
Instructions
Follow cross-references from or to an address, automatically traversing multiple hops. Use 'forward' to see where data flows TO (xrefs-from), or 'backward' to see where data flows FROM (xrefs-to). At each node in the traversal, returns the function name, instruction, and whether it's code or data. Use this when you find an interesting string, constant, or global and want to understand every code path that touches it without manually chaining xrefs_to calls. Do not use for call graph traversal — use callgraph for that. max_depth controls how many hops to follow (default 5, max 20).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addr | Yes | Starting address | |
| direction | No | 'forward' (xrefs from) or 'backward' (xrefs to) | forward |
| max_depth | No | Maximum traversal depth | |
| instance_id | No | Optional database instance id. If omitted, use the current target. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | No | ||
| error | No | ||
| nodes | No | ||
| start | No | ||
| direction | No | ||
| depth_reached | No |