Generate diagram
generate_diagramGenerate a draft diagram of the repository architecture from scan and import facts. Select Mermaid or Graphviz DOT, and choose high-level modules or detailed file grouping.
Instructions
Combine scan + import facts into a DRAFT diagram string — Mermaid flowchart (default) or Graphviz DOT. level 'high' (default) shows modules/directories; 'detail' shows files grouped by module. This is a draft the calling model is expected to refine.
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": {
"path": "<path>"
},
"name": "generate_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to the repository root | |
| level | No | Diagram granularity (default 'high') | |
| format | No | Diagram notation: 'mermaid' (default; renders on GitHub) or 'dot' (Graphviz interop) |