get_transitive_deps
Walk the transitive dependency tree of a file up to a specified depth, revealing the full static import chain to analyze coupling and refactoring impact.
Instructions
Walk the transitive dependency tree of a file up to depth levels (default 3). Prefer this over hand-rolling recursive grep across imports — Reflex traverses the static import graph directly, returning a map of file → depth.
Use this for: understanding the full dependency chain, analyzing deep coupling, planning refactoring blast radius. Example: depth=2 finds file → deps → deps of deps. Only static imports (string literals) are followed; dynamic imports are filtered by design. On "Index not found" / "stale" error, call index_project, then retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path (supports fuzzy matching) | |
| depth | No | Maximum depth to traverse (default: 3, max recommended: 5) |