Build Mermaid diagram
buildAuthor a new Mermaid diagram from blank by folding a list of structured ops
over an empty diagram of family. The declarative counterpart to hand-writing
source. Returns the same envelope as mutate:
{ ok, family, source, verify } or { ok:false, family, opIndex, error }.
Call describe_sdk for the family before authoring unfamiliar ops.
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": {
"family": "<family>",
"ops": "<ops>"
},
"name": "build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | Non-empty ordered list of ops; each is { kind, ...fields }. | |
| family | Yes | Diagram family to author (one of: zenuml, eventmodeling, flowchart, state, sequence, timeline, class, er, journey, architecture, xychart, pie, quadrant, gantt, mindmap, gitgraph, radar, sankey, c4, packet, kanban, requirement, treemap, ishikawa, block). |