generate_diagram
Generate Excalidraw diagrams from natural language descriptions. Choose from flowchart, mindmap, sequence, architecture, ERD, or freeform diagrams.
Instructions
Generate an Excalidraw diagram from a natural-language description.
Args: description: What the diagram should show, e.g. "user login flow with OAuth and MFA" diagram_type: One of: flowchart, mindmap, sequence, architecture, erd, freeform filename: Output filename without extension (saved to ~/excalidraw_diagrams/)
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": {
"description": "<description>"
},
"name": "generate_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | ||
| diagram_type | No | flowchart | |
| filename | No | diagram |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |