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.
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": {
"target_dir": "<target_dir>"
},
"name": "get_imports_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |