get_dependency_graph
Returns the direct import graph for a file, showing both its dependencies and dependents to identify what the file imports and what imports it.
Instructions
Returns the direct import graph for a specific file: what it imports, and what imports it. Use to answer: what depends on this file? What does this file depend on?
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format — json (default) or mermaid flowchart diagram | json |
| file_path | Yes | Path to the file (absolute or relative to project_root) | |
| project_root | Yes | Absolute path to the TypeScript project root (must contain tsconfig.json) |