inspect_dependency_graph
Walk an asset's dependency graph BFS downward or bidirectionally, deduplicating visited nodes to map asset relationships.
Instructions
Walk the asset dependency graph BFS from a root (dependencies, downward by default). Composes inspect_asset recursively; optionally also follows referencers (upward) for a bidirectional sweep. Distinct from get_reference_chain in that it defaults to direction=down (dependencies, packaging-audit framing) and supports a single bidirectional pass instead of forcing two separate calls. De-duplicates visited nodes across both directions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Root asset path to walk from. | |
| depth | No | BFS depth bound. Default 2, range 1..8 (the bidirectional sweep can produce a vast subgraph past depth 4 in any non-trivial project). | |
| include_referencers | No | Default false. When true, also follow referencers upward in the same BFS; edges record direction ('up' for referencer edges, 'down' for dependency edges). |