analyze_import_graph
Build a module dependency graph from Swift import statements to reveal fan-in/fan-out and output adjacency lists, matrices, Mermaid diagrams, or DOT/Graphviz files.
Instructions
Build a module dependency graph from Swift import statements. Shows fan-in/fan-out statistics and can output as adjacency list, matrix, Mermaid diagram, or DOT/Graphviz format.
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": {
"projectPath": "<projectPath>"
},
"name": "analyze_import_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Xcode project root directory | |
| outputFormat | No | Output format (default: adjacency_list) | |
| excludePatterns | No | Glob patterns to exclude | |
| includeSystemFrameworks | No | Include system frameworks like UIKit, Foundation (default: false) |