create-diagram
Create a new Lucid diagram from Standard Import JSON by defining pages, shapes, and lines, then get an edit URL for flowcharts, org charts, UML, BPMN, and cloud architecture.
Instructions
Create a new Lucid diagram from Standard Import JSON. Author JSON describing pages, shapes, and lines (no Mermaid); the document is created in your Lucid account and the edit URL is returned. Use for flowcharts, org charts, UML, BPMN, and cloud architecture 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": {
"title": "<title>",
"standardImportJson": "<standardImportJson>"
},
"name": "create-diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Title for the new Lucid document | |
| parent | No | Optional Lucid folder ID to create the document inside | |
| product | No | Lucid product to create the document in (default "lucidchart") | |
| standardImportJson | Yes | Lucid Standard Import JSON (the contents of document.json). Author it yourself; no Mermaid. Top-level shape: { "version": 1, "pages": [ { "id": "page1", "title": "Page 1", "shapes": [ { "id": "s1", "type": "terminator", "boundingBox": {"x":0,"y":0,"w":160,"h":60}, "text": "Start" }, { "id": "s2", "type": "process", "boundingBox": {"x":0,"y":120,"w":160,"h":60}, "text": "Do work" }, { "id": "s3", "type": "decision", "boundingBox": {"x":0,"y":240,"w":160,"h":80}, "text": "OK?" } ], "lines": [ { "id": "l1", "lineType": "elbow", "endpoint1": {"type":"shapeEndpoint","style":"none","shapeId":"s1"}, "endpoint2": {"type":"shapeEndpoint","style":"arrow","shapeId":"s2"} } ] } ] } Rules: - Every shape/line/page needs a unique id. Shapes need a boundingBox {x,y,w,h}. Numbers must be numeric, colors hex (e.g. "#FF0000"), no emoji in text. - Connect shapes with lines via shapeEndpoint (shapeId). For a directional arrow A->B set endpoint1.style "none" and endpoint2.style "arrow". lineType: "straight" | "elbow" | "curved". - Common shape types: rectangle, text, process, decision, terminator, document, database, delay, data, predefinedProcess; circle, diamond, hexagon; umlClass; bpmn* ; namedShape (AWS/Azure/GCP icons via className). Containers: rectangleContainer, roundedRectangleContainer, swimLanes, bpmnPool. - Layout: coordinates are a starting point. For flowcharts you do not need perfect positions; just give a rough top-to-bottom or left-to-right spread and Lucid's assisted layout (on containers via "assistedLayout": true) neatens it. Connections, not coordinates, define logical order. - Size limit: document.json max 2MB. Keep JSON concise. |