generate_diagram
Create Mermaid diagrams for file trees in a codebase, visualizing directory structures, dependencies, and file importance. Customize layout, depth, and style for clear code architecture insights.
Instructions
Generate a Mermaid diagram for the current file tree
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": {
"style": "<style>"
},
"name": "generate_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout | No | ||
| maxDepth | No | Maximum depth for directory trees (1-10) | |
| minImportance | No | Only show files above this importance (0-10) | |
| outputFile | No | Optional output file name for the diagram | |
| outputFormat | No | Output format (mmd or png) | |
| showDependencies | No | Whether to show dependency relationships | |
| style | Yes | Diagram style |