processon_design_diagram
Plan diagrams by converting natural-language prompts into editable Mermaid source code for flowcharts, mind maps, sequences, and more. Returns a text skeleton to refine before rendering.
Instructions
Turn an idea into a Mermaid diagram definition (DSL) — the planning / first-draft step of LLM-led diagramming.
Use this FIRST when you want to design a diagram from scratch: it returns
editable Mermaid source code (not a rendered image). You — the LLM — then
read it, refine it, add/remove nodes and edges, and finally hand the edited
Mermaid to processon_render_mermaid to get a real editable ProcessOn chart.
Supported diagrams map to Mermaid types: flowchart/architecture/network deployment (graph TD/LR), mind map (mindmap), sequence (sequenceDiagram), ER model (erDiagram), class diagram (classDiagram), timeline, C4, etc.
This is the recommended workflow for "from 0 to 1 to 100":
design_diagram -> get a Mermaid skeleton
edit the Mermaid yourself (iterate nodes/edges/labels)
render_mermaid -> get preview image + editable link
repeat 2-3 until the diagram is right.
Args: prompt: What the diagram should describe (goal, entities, steps, decisions, relationships). Write in the user's language. diagram_type: Hint for the target shape, e.g. "flowchart", "mindmap", "sequence", "er", "architecture", "network-deployment", "timeline". Leave empty to infer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| diagram_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |