get_imports_graph
Scan Python files in a directory to generate an import dependency graph, providing a structured map and Mermaid diagram for visualization.
Instructions
Scan all Python files in a directory to build an import dependency graph and output both a structured map and a Mermaid diagram definition.
:param target_dir: Path to the directory containing Python files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |