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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "get_dependency_chain"
}
}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. |