get_dependency_chain
Traverses import edges from a given symbol's source file to reveal its full transitive dependency chain, answering what a file ultimately depends on.
Instructions
Traverses the import edges graph from the file containing ``symbol``
and returns the full transitive dependency chain (max depth 5).
Useful for answering: *"What does `auth.py` ultimately depend on?"*
Args:
symbol: Name of a class or function. Its source file becomes the
root of the BFS traversal.
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": {
"symbol": "<symbol>"
},
"name": "get_dependency_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |