trace_data_flow
Trace cross-references across multiple hops from or to an address to map code or data paths touching a string, constant, or global. Choose forward or backward traversal with configurable depth.
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 | Yes | 必须提供的 instance_id(或 client_id),用于将请求精确路由到特定的 IDA 实例。请先调用 instance_list 查看并选择合适的客户端 ID。 |