get_dependency_chain
Retrieves upstream and downstream dependencies for any component, hook, or service. Supports recursive traversal up to three levels to understand impact of changes and trace data flow.
Instructions
Get the full dependency chain for any component, hook, or service. Returns both upstream (what uses it) and downstream (what it depends on) relationships. Supports recursive traversal with depth parameter (1-3). Useful for understanding impact of changes and tracing data flow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Optional path substring to disambiguate when the name matches multiple files | |
| name | Yes | Item name (e.g., "CompleteHandoffButton", "useHandoffState") | |
| depth | No | Recursion depth (1-3, default 1). Depth 2+ includes nested dependsOn/usedBy on child nodes. |