get_reference_chain
Walk the asset reference graph to analyze impact before deletion (up direction) or audit dependencies before packaging (down direction).
Instructions
Walk the asset reference graph BFS from a root, returning every node and edge up to a depth bound. Composes inspect_asset recursively. direction=up follows referencers (who references me) — useful for impact-of-change analysis before deleting/renaming. direction=down follows dependencies (what I reference) — useful for dependency audits before packaging.
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": {
"path": "<path>"
},
"name": "get_reference_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Root asset path to walk from. Required. | |
| depth | No | BFS depth bound. Default 3, max 8 (8 hops is already a vast subgraph in any non-trivial project). | |
| direction | No | Default 'up'. 'up' follows referencers; 'down' follows dependencies. |