Flowchart
Create diagrams including: Flowcharts, Sketchy Diagrams, 3D Isometric Diagrams, Bio/Medical Diagrams, Circuit Diagrams, P&ID Diagrams, UML Diagrams, Sketchy UML, Sequence Diagrams, Cloud Isometric…
Send "type": "flowchart".
Create diagrams including: Flowcharts, Sketchy Diagrams, 3D Isometric Diagrams, Bio/Medical Diagrams, Circuit Diagrams, P&ID Diagrams, UML Diagrams, Sketchy UML, Sequence Diagrams, Cloud Isometric Diagrams, Web Layout Diagrams, and Mobile Layout Diagrams. NOT for org charts, sitemaps, family trees or other single-rooted hierarchy trees — use render_treediagram; NOT for cross-functional/swimlane (lane-per-role) diagrams — use render_swimlane; NOT for AWS/Azure/GCP cloud infrastructure — use render_cloudarchitecture; NOT for database/ER schemas — use render_database.
Also available as the MCP tool render_flowchart. The same payload works through either surface.
Fields
titlestringA short title for the diagram, shown as the frame header (e.g. "User Signup Flow").
diagramTypeenum<string>requiredMust be 'flowchart'. One of flowchart.
classstringrequiredGoJS model class, typically 'GraphLinksModel'
categoryenum<string>Diagram category (optional, defaults to 'default'). Use 'default', 'sketchy', or '3d' for standard shapes. Use specialized categories (bio, circuit, pandid, uml, etc.) for icon matching with matchKey. Use 'sequence' for sequence/interaction diagrams (simplified format, see SEQUENCE DIAGRAM RULES). One of default, sketchy, 3d, bio, circuit, pandid, uml, uml-sketchy, sequence, cloud-isometric, weblayout or mobilelayout. Defaults to default.
nodeDataArrayobject[]requiredArray of nodes with key, text, color, loc, width, height, shape, and optionally matchKey properties. For category "sequence": actors in left-to-right order with string key, text, color and fillColor only.
Child attributes
keyinteger | stringUnique id. Integer normally; a short string for sequence-diagram actors.
textstringcolorstringPastel color like #bae6fd, #bbf7d0 (sequence: actor border hex)
fillColorstringSequence diagrams only: actor header background hex
locstringPosition as "x y" string (omit for sequence)
widthnumberDefaults to 140.
heightnumberDefaults to 60.
shapeenum<string>One of Circle, RoundedRectangle, Diamond or Rectangle.
matchKeystringSingle lowercase keyword for icon matching (only for bio, circuit, pandid, uml, uml-sketchy, cloud-isometric, weblayout, mobilelayout categories)
linkDataArrayobject[]requiredArray of links connecting nodes. For category "sequence": messages in chronological order with from, to, text and messageType.
Child attributes
frominteger | stringtointeger | stringfromSpotenum<string>One of Top, Bottom, Left or Right.
toSpotenum<string>One of Top, Bottom, Left or Right.
textstringLink label like "Yes", "No" (sequence: the message label)
segmentFractionnumber0.1-0.9 for label position; give near-parallel labelled links different values (0.35 / 0.65) so labels do not stack
messageTypeenum<string>Sequence diagrams only: arrow style — sync (solid, filled head), async (solid, open head), return (dashed, open head). One of sync, async or return.
Example
{
"type": "flowchart",
"data": {
"title": "Q4 Launch Planning",
"diagramType": "flowchart",
"class": "string",
"category": "default",
"nodeDataArray": [
{
"key": 0,
"text": "Interview 5 users",
"color": "string",
"fillColor": "string",
"loc": "string",
"width": 140
}
],
"linkDataArray": [
{
"from": 0,
"to": 0,
"fromSpot": "Top",
"toSpot": "Top",
"text": "Interview 5 users",
"segmentFraction": 0
}
]
}
}