get_symbol_dependency_graph
Map dependency graphs for TypeScript symbols to trace affected code, detect circular imports, and identify dead code using forward, reverse, or bidirectional traversals.
Instructions
Retrieves a bidirectional or directed dependency graph mapped to individual declarations, functions, and variables.
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": {
"project_root": "<project_root>",
"file_path": "<file_path>"
},
"name": "get_symbol_dependency_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | Graph traversal direction | bidirectional |
| file_path | Yes | Absolute path to the TypeScript source file | |
| symbol_name | No | Target export symbol. If omitted, maps all symbols in the file | |
| project_root | Yes | Absolute path to the TypeScript project root (must contain tsconfig.json) |