get_import_graph
Show file-level dependency graph by revealing what a file imports and what imports it, enabling understanding of module dependencies.
Instructions
Show file-level dependency graph: what a file imports and what imports it (requires reindex for ESM edge resolution). Use to understand module dependencies for a specific file. For project-wide coupling analysis use get_coupling; for visual diagram use get_dependency_diagram. Read-only. Returns JSON: { file, imports: [{ path }], importedBy: [{ path }] }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Relative file path to analyze (e.g. "src/server.ts") |