Skip to main content
Glama

draw_board

Destructive

Draw or update diagrams on a shared infinite canvas using semantic nodes and edges or object-level changes; manage local editable board snapshots.

Instructions

让 AI 直接在共享无限画布上画或改。三个互斥的用法:diagram 用语义 nodes/edges 一次画完一张图,复杂图优先用它;items/updates/remove_ids/layout 做对象级增删改;library 管理本地可编辑画板库。要画两个以上互相关联的对象(流程、树、对比、状态机)时默认用 diagram —— 它自动排版并连好线;手算 x/y/w/h 会让模型反复微调几何,实测 diagram 平均 1.6 轮画完而手写 items 要 4.8 轮。只有在放单个独立对象、或要精确落在已有对象旁边时才直接写 items。改已有内容用 updates 复用已有 id,不要整板重建。author 放顶层,items 里不要再写。line 的 (x,y) 是起点,(x+w,y+h) 是终点,w/h 可为负数;其他对象是左上角与宽高。写入串行应用到最新状态;不传 expected_revision 即追加(并发安全),传了则严格校验。不打开浏览器,不写项目文件。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "draw_board"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsNoObjects to create; omit id
authorNoAuthor marker: human or ai. AI responses should normally use ai
layoutNoOptional deterministic arrangement of existing objects
diagramNoSemantic diagram recipe: nodes and optional edges generate one bounded Board v1 diagram with deterministic layout, short labels, and connected arrows. Each node takes `label` (not `title`); `edges` may be omitted for a standalone card or a plain sequence. By default it is added beside existing objects and reuses a numeric id suffix if a generated id is taken; replace:true clears the whole active board first. Every edge becomes a routed line, and a flow longer than six columns snakes instead of becoming one wide strip. To advance an ordered timeline, increment `row` down one column: row-only nodes stack vertically on a single axis. Give an explicit `column` only when you want side-by-side groups.
libraryNoOptional local board-library action for saving, switching, renaming, duplicating, importing, or exporting editable board snapshots. create, save, duplicate, and import make the resulting board active unless you pass switchTo: false — so when you are only tidying the library, pass switchTo: false rather than moving the person off the board they are looking at.
updatesNoPrecise updates to existing object IDs
remove_idsNoExisting object IDs to remove
replace_boardNoRare full replacement with a version 1 board snapshot; revision and identity are preserved
expected_revisionNoOptional board revision for rejecting stale canvas edits

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv0.9.1
    • removedInput schema / properties / diagram / properties / nodes / items / properties / emphasis / enum
      Removed value: -[
      -  "normal",
      -  "focus"
      -]
    • removedInput schema / properties / diagram / properties / nodes / items / properties / role / enum
      Removed value: -[
      -  "normal",
      -  "label",
      -  "frame",
      -  "column",
      -  "step",
      -  "decision",
      -  "annotation",
      -  "question",
      -  "constraint",
      -  "evidence"
      -]
    • removedInput schema / properties / diagram / properties / nodes / items / properties / type / enum
      Removed value: -[
      -  "rect",
      -  "ellipse"
      -]
    • removedInput schema / properties / diagram / properties / recipe / enum
      Removed value: -[
      -  "flow",
      -  "review",
      -  "decision",
      -  "timeline",
      -  "architecture"
      -]
    • changedInput schema / properties / items / items / properties / type / description
      Previous value: -"Visual object type"New value: +"Visual object type: note, text, rect, ellipse, line, stroke, or image"
    • removedInput schema / properties / items / items / properties / type / enum
      Removed value: -[
      -  "note",
      -  "text",
      -  "rect",
      -  "ellipse",
      -  "line",
      -  "stroke",
      -  "image"
      -]
    • removedInput schema / properties / library / oneOf
      Removed value: -[
      -  {
      -    "properties": {
      -      "type": {
      -        "const": "list",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "get",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "name": {
      -        "type": "string"
      -      },
      -      "switchTo": {
      -        "description": "Defaults to true and makes the new board active. Pass false to keep the person on the board they are looking at.",
      -        "type": "boolean"
      -      },
      -      "type": {
      -        "const": "create",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "board": {},
      -      "id": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "switchTo": {
      -        "description": "Defaults to true and makes the new board active. Pass false to keep the person on the board they are looking at.",
      -        "type": "boolean"
      -      },
      -      "type": {
      -        "const": "save",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "switch",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "rename",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "id",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "switchTo": {
      -        "description": "Defaults to true and makes the new board active. Pass false to keep the person on the board they are looking at.",
      -        "type": "boolean"
      -      },
      -      "type": {
      -        "const": "duplicate",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "delete",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "board": {},
      -      "name": {
      -        "type": "string"
      -      },
      -      "switchTo": {
      -        "description": "Defaults to true and makes the new board active. Pass false to keep the person on the board they are looking at.",
      -        "type": "boolean"
      -      },
      -      "type": {
      -        "const": "import",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "board"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "export",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / library / properties
      Added value: +{
      +  "board": {},
      +  "id": {
      +    "type": "string"
      +  },
      +  "name": {
      +    "type": "string"
      +  },
      +  "switchTo": {
      +    "description": "Defaults to true and makes the new board active. Pass false to keep the person on the board they are looking at.",
      +    "type": "boolean"
      +  },
      +  "type": {
      +    "description": "list, get, create, save, switch, rename, duplicate, delete, import, or export",
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / library / required
      Added value: +[
      +  "type"
      +]
    • addedInput schema / properties / library / type
      Added value: +"object"
    • changedInput schema / properties / updates / items / properties / patch / properties / type / description
      Previous value: -"Visual object type"New value: +"Visual object type: note, text, rect, ellipse, line, stroke, or image"
    • removedInput schema / properties / updates / items / properties / patch / properties / type / enum
      Removed value: -[
      -  "note",
      -  "text",
      -  "rect",
      -  "ellipse",
      -  "line",
      -  "stroke",
      -  "image"
      -]
  2. Changed141 schema fields changedv0.9.0
    • changedInput schema / properties / author / description
      Previous value: -"Author marker; AI responses should normally use ai"New value: +"Author marker: human or ai. AI responses should normally use ai"
    • removedInput schema / properties / author / enum
      Removed value: -[
      -  "human",
      -  "ai"
      -]
    • changedInput schema / properties / diagram / description
      Previous value: -"Semantic diagram recipe: nodes and edges generate one bounded Board v1 diagram with deterministic layout, short labels, and connected arrows. Each node takes `label` (not `title`). By default it is added beside existing objects and reuses a numeric id suffix if a generated id is taken; replace:true clears the whole active board first. Every edge becomes a routed line, a flow longer than six columns snakes instead of becoming one wide strip, and a timeline row index is not part of the schema - send `column` to advance a timeline."New value: +"Semantic diagram recipe: nodes and optional edges generate one bounded Board v1 diagram with deterministic layout, short labels, and connected arrows. Each node takes `label` (not `title`); `edges` may be omitted for a standalone card or a plain sequence. By default it is added beside existing objects and reuses a numeric id suffix if a generated id is taken; replace:true clears the whole active board first. Every edge becomes a routed line, and a flow longer than six columns snakes instead of becoming one wide strip. To advance an ordered timeline, increment `row` down one column: row-only nodes stack vertically on a single axis. Give an explicit `column` only when you want side-by-side groups."
    • removedInput schema / properties / diagram / properties / columnGap / maximum
      Removed value: -200
    • removedInput schema / properties / diagram / properties / columnGap / minimum
      Removed value: -20
    • removedInput schema / properties / diagram / properties / edges / items / properties / label / maxLength
      Removed value: -40
    • removedInput schema / properties / diagram / properties / edges / maxItems
      Removed value: -96
    • changedInput schema / properties / diagram / properties / mode / description
      Previous value: -"Semantic arrangement, default flow. flow derives columns from edges and snakes after six columns so a 16-step chain is not one 3k-wide strip. timeline/compare/matrix place nodes only where you give `column`/`row` - nodes without them are appended in declaration order below the explicit grid, so set both for a timed sequence."New value: +"Semantic arrangement, default flow. flow derives columns from edges and snakes after six columns so a 16-step chain is not one 3k-wide strip; timeline/compare/matrix place nodes only where you give `column`/`row`"
    • removedInput schema / properties / diagram / properties / mode / enum
      Removed value: -[
      -  "flow",
      -  "timeline",
      -  "compare",
      -  "matrix"
      -]
    • removedInput schema / properties / diagram / properties / nodeHeight / maximum
      Removed value: -180
    • removedInput schema / properties / diagram / properties / nodeHeight / minimum
      Removed value: -60
    • removedInput schema / properties / diagram / properties / nodeWidth / maximum
      Removed value: -320
    • removedInput schema / properties / diagram / properties / nodeWidth / minimum
      Removed value: -120
    • changedInput schema / properties / diagram / properties / nodes / items / properties / color / description
      Previous value: -"Six-digit hex colour; invalid values return ERROR_JSON with a fix"New value: +"Six-digit hex"
    • removedInput schema / properties / diagram / properties / nodes / items / properties / color / maxLength
      Removed value: -40
    • changedInput schema / properties / diagram / properties / nodes / items / properties / column / description
      Previous value: -"Explicit column, 0-12. In timeline/compare/matrix this is the axis step: 17 steps in one row means column 0-16 is NOT available, so use row for the sequence instead."New value: +"Explicit column, 0-12"
    • changedInput schema / properties / diagram / properties / nodes / items / properties / column / maximum
      Previous value: -12New value: +9007199254740991
    • changedInput schema / properties / diagram / properties / nodes / items / properties / column / minimum
      Previous value: -0New value: +-9007199254740991
    • addedInput schema / properties / diagram / properties / nodes / items / properties / detail / description
      Added value: +"Note under the caption, about 40 chars"
    • removedInput schema / properties / diagram / properties / nodes / items / properties / detail / maxLength
      Removed value: -120
    • removedInput schema / properties / diagram / properties / nodes / items / properties / emphasis / description
      Removed value: -"Use focus for the current discussion focus"
    • removedInput schema / properties / diagram / properties / nodes / items / properties / id / maxLength
      Removed value: -80
    • changedInput schema / properties / diagram / properties / nodes / items / properties / label / description
      Previous value: -"Node caption; this is the field to fill, not `title`"New value: +"Card caption, about 24 chars; use `detail` for the rest"
    • removedInput schema / properties / diagram / properties / nodes / items / properties / label / maxLength
      Removed value: -80
    • removedInput schema / properties / diagram / properties / nodes / items / properties / role / description
      Removed value: -"Visual semantics: step, decision, question, constraint, evidence, or annotation"
    • changedInput schema / properties / diagram / properties / nodes / items / properties / row / description
      Previous value: -"Explicit row, 0-47. In timeline the sequence usually advances down the page, so increment `row` per step and keep `column` fixed."New value: +"Explicit row, 0-47; advance this for a vertical timeline"
    • changedInput schema / properties / diagram / properties / nodes / items / properties / row / maximum
      Previous value: -47New value: +9007199254740991
    • changedInput schema / properties / diagram / properties / nodes / items / properties / row / minimum
      Previous value: -0New value: +-9007199254740991
    • removedInput schema / properties / diagram / properties / nodes / maxItems
      Removed value: -48
    • changedInput schema / properties / diagram / properties / options / description
      Previous value: -"Candidate choices for `recipe: decision`; they fan into the final step/outcome."New value: +"Choices for `recipe: decision`"
    • removedInput schema / properties / diagram / properties / options / items / maxLength
      Removed value: -120
    • removedInput schema / properties / diagram / properties / options / items / minLength
      Removed value: -1
    • removedInput schema / properties / diagram / properties / options / maxItems
      Removed value: -8
    • changedInput schema / properties / diagram / properties / recipe / description
      Previous value: -"High-level authoring intent. When set, `steps` supplies the content and nodes/edges are generated; use this instead of hand-computing coordinates. flow: ordered steps; review: draft → feedback → revise; decision: options converging on an outcome; timeline: dated milestones; architecture: layers with dependencies."New value: +"Shortcut: generate nodes/edges from `steps` (or `options` for decision) instead of computing coordinates"
    • changedInput schema / properties / diagram / properties / replace / description
      Previous value: -"Replace all existing board objects; defaults to false and adds the generated diagram beside existing objects"New value: +"Replace existing objects; default false adds beside them"
    • removedInput schema / properties / diagram / properties / rowGap / maximum
      Removed value: -160
    • removedInput schema / properties / diagram / properties / rowGap / minimum
      Removed value: -12
    • changedInput schema / properties / diagram / properties / steps / description
      Previous value: -"Step captions for `recipe`. Each becomes one node connected to the next in order."New value: +"Captions for `recipe`, chained in order"
    • removedInput schema / properties / diagram / properties / steps / items / maxLength
      Removed value: -120
    • removedInput schema / properties / diagram / properties / steps / items / minLength
      Removed value: -1
    • removedInput schema / properties / diagram / properties / steps / maxItems
      Removed value: -48
    • removedInput schema / properties / diagram / properties / subtitle / maxLength
      Removed value: -200
    • removedInput schema / properties / diagram / properties / title / maxLength
      Removed value: -120
    • addedInput schema / properties / items / items / properties / author
      Added value: +{
      +  "description": "Rejected per item; put author at the draw_board top level",
      +  "type": "string"
      +}
    • removedInput schema / properties / items / items / properties / color / maxLength
      Removed value: -40
    • changedInput schema / properties / items / items / properties / emphasis / description
      Previous value: -"Visual emphasis marker"New value: +"Visual emphasis marker: normal or focus"
    • removedInput schema / properties / items / items / properties / emphasis / enum
      Removed value: -[
      -  "normal",
      -  "focus"
      -]
    • changedInput schema / properties / items / items / properties / groupId / description
      Previous value: -"Optional group marker for moving related objects together"New value: +"Group marker; grouped objects move together"
    • removedInput schema / properties / items / items / properties / groupId / maxLength
      Removed value: -80
    • removedInput schema / properties / items / items / properties / mime / enum
      Removed value: -[
      -  "image/png",
      -  "image/jpeg",
      -  "image/gif",
      -  "image/webp"
      -]
    • changedInput schema / properties / items / items / properties / points / description
      Previous value: -"Local stroke points relative to the item bounds; use for freehand marks"New value: +"Freehand points, local to the item bounds"
    • removedInput schema / properties / items / items / properties / points / maxItems
      Removed value: -500
    • changedInput schema / properties / items / items / properties / role / description
      Previous value: -"Semantic role for visualDigest and recipes"New value: +"Semantic role: step, decision, question, constraint, evidence, label, frame, column, annotation, or normal"
    • removedInput schema / properties / items / items / properties / role / enum
      Removed value: -[
      -  "normal",
      -  "label",
      -  "frame",
      -  "column",
      -  "step",
      -  "decision",
      -  "annotation"
      -]
    • removedInput schema / properties / items / items / properties / scene / properties / fileId / maxLength
      Removed value: -120
    • removedInput schema / properties / items / items / properties / scene / properties / fileMime / maxLength
      Removed value: -40
    • changedInput schema / properties / items / items / properties / shape / description
      Previous value: -"Line routing style"New value: +"Line routing style: straight, curve, or orthogonal"
    • removedInput schema / properties / items / items / properties / shape / enum
      Removed value: -[
      -  "straight",
      -  "curve",
      -  "orthogonal"
      -]
    • changedInput schema / properties / items / items / properties / src / description
      Previous value: -"data:image/*;base64 source for image items"New value: +"data:image/*;base64 source"
    • removedInput schema / properties / items / items / properties / src / maxLength
      Removed value: -700000
    • changedInput schema / properties / items / items / properties / style / description
      Previous value: -"Optional bounded visual styling"New value: +"Visual styling"
    • removedInput schema / properties / items / items / properties / style / properties / borderColor / pattern
      Removed value: -"^#[0-9a-fA-F]{6}$"
    • removedInput schema / properties / items / items / properties / style / properties / borderWidth / maximum
      Removed value: -12
    • removedInput schema / properties / items / items / properties / style / properties / borderWidth / minimum
      Removed value: -0
    • removedInput schema / properties / items / items / properties / style / properties / fillOpacity / maximum
      Removed value: -1
    • removedInput schema / properties / items / items / properties / style / properties / fillOpacity / minimum
      Removed value: -0
    • removedInput schema / properties / items / items / properties / style / properties / fontSize / maximum
      Removed value: -72
    • removedInput schema / properties / items / items / properties / style / properties / fontSize / minimum
      Removed value: -8
    • removedInput schema / properties / items / items / properties / style / properties / fontWeight / enum
      Removed value: -[
      -  "normal",
      -  "bold"
      -]
    • removedInput schema / properties / items / items / properties / style / properties / opacity / maximum
      Removed value: -1
    • removedInput schema / properties / items / items / properties / style / properties / opacity / minimum
      Removed value: -0.1
    • removedInput schema / properties / items / items / properties / style / properties / radius / maximum
      Removed value: -64
    • removedInput schema / properties / items / items / properties / style / properties / radius / minimum
      Removed value: -0
    • removedInput schema / properties / items / items / properties / style / properties / strokeWidth / maximum
      Removed value: -24
    • removedInput schema / properties / items / items / properties / style / properties / strokeWidth / minimum
      Removed value: -0.5
    • removedInput schema / properties / items / items / properties / style / properties / textAlign / enum
      Removed value: -[
      -  "left",
      -  "center",
      -  "right"
      -]
    • removedInput schema / properties / items / items / properties / style / properties / textColor / pattern
      Removed value: -"^#[0-9a-fA-F]{6}$"
    • changedInput schema / properties / items / items / properties / text / description
      Previous value: -"Visible text on the object"New value: +"Visible text"
    • removedInput schema / properties / items / items / properties / text / maxLength
      Removed value: -1200
    • changedInput schema / properties / items / items / properties / title / description
      Previous value: -"Short heading rendered above the object text"New value: +"Heading above `text`"
    • removedInput schema / properties / items / items / properties / title / maxLength
      Removed value: -120
    • changedInput schema / properties / items / items / properties / variant / description
      Previous value: -"Visual variant for shapes and notes"New value: +"Visual variant: plain, card, frame, pill, diamond, callout, or heading"
    • removedInput schema / properties / items / items / properties / variant / enum
      Removed value: -[
      -  "plain",
      -  "card",
      -  "frame",
      -  "pill",
      -  "diamond",
      -  "callout",
      -  "heading"
      -]
    • changedInput schema / properties / items / items / properties / z / description
      Previous value: -"Stacking order; higher values render above lower values"New value: +"Stacking order; higher renders above"
    • removedInput schema / properties / items / items / properties / z / maximum
      Removed value: -1000
    • removedInput schema / properties / items / items / properties / z / minimum
      Removed value: --1000
    • removedInput schema / properties / items / maxItems
      Removed value: -100
    • changedInput schema / properties / layout / properties / columns / maximum
      Previous value: -12New value: +9007199254740991
    • changedInput schema / properties / layout / properties / columns / minimum
      Previous value: -1New value: +-9007199254740991
    • changedInput schema / properties / layout / properties / gap / maximum
      Previous value: -200New value: +9007199254740991
    • changedInput schema / properties / layout / properties / gap / minimum
      Previous value: -8New value: +-9007199254740991
    • removedInput schema / properties / layout / properties / ids / maxItems
      Removed value: -400
    • changedInput schema / properties / layout / properties / mode / description
      Previous value: -"Arrangement mode; architecture derives layers from connected line IDs"New value: +"Arrangement mode: grid, row, column, timeline, cluster, or architecture. architecture derives layers from connected line IDs"
    • removedInput schema / properties / layout / properties / mode / enum
      Removed value: -[
      -  "grid",
      -  "row",
      -  "column",
      -  "timeline",
      -  "cluster",
      -  "architecture"
      -]
    • changedInput schema / properties / library / description
      Previous value: -"Optional local board-library action for saving, switching, renaming, duplicating, importing, or exporting editable board snapshots"New value: +"Optional local board-library action for saving, switching, renaming, duplicating, importing, or exporting editable board snapshots. create, save, duplicate, and import make the resulting board active unless you pass switchTo: false — so when you are only tidying the library, pass switchTo: false rather than moving the person off the board they are looking at."
    • changedInput schema / properties / library / oneOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "type": {
      -        "const": "list",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "get",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "name": {
      -        "maxLength": 80,
      -        "type": "string"
      -      },
      -      "switchTo": {
      -        "type": "boolean"
      -      },
      -      "type": {
      -        "const": "create",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "board": {},
      -      "id": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "maxLength": 80,
      -        "type": "string"
      -      },
      -      "switchTo": {
      -        "type": "boolean"
      -      },
      -      "type": {
      -        "const": "save",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "switch",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "maxLength": 80,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "rename",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "id",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "maxLength": 80,
      -        "type": "string"
      -      },
      -      "switchTo": {
      -        "type": "boolean"
      -      },
      -      "type": {
      -        "const": "duplicate",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "delete",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "board": {},
      -      "name": {
      -        "maxLength": 80,
      -        "type": "string"
      -      },
      -      "switchTo": {
      -        "type": "boolean"
      -      },
      -      "type": {
      -        "const": "import",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "board"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "export",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "type": {
      +        "const": "list",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "get",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "switchTo": {
      +        "description": "Defaults to true and makes the new board active. Pass false to keep the person on the board they are looking at.",
      +        "type": "boolean"
      +      },
      +      "type": {
      +        "const": "create",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "board": {},
      +      "id": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "switchTo": {
      +        "description": "Defaults to true and makes the new board active. Pass false to keep the person on the board they are looking at.",
      +        "type": "boolean"
      +      },
      +      "type": {
      +        "const": "save",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "switch",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "rename",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "id",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "switchTo": {
      +        "description": "Defaults to true and makes the new board active. Pass false to keep the person on the board they are looking at.",
      +        "type": "boolean"
      +      },
      +      "type": {
      +        "const": "duplicate",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "delete",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "board": {},
      +      "name": {
      +        "type": "string"
      +      },
      +      "switchTo": {
      +        "description": "Defaults to true and makes the new board active. Pass false to keep the person on the board they are looking at.",
      +        "type": "boolean"
      +      },
      +      "type": {
      +        "const": "import",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "board"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "export",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / remove_ids / maxItems
      Removed value: -100
    • addedInput schema / properties / updates / items / properties / patch / properties / author
      Added value: +{
      +  "description": "Rejected per item; put author at the draw_board top level",
      +  "type": "string"
      +}
    • removedInput schema / properties / updates / items / properties / patch / properties / color / maxLength
      Removed value: -40
    • changedInput schema / properties / updates / items / properties / patch / properties / emphasis / description
      Previous value: -"Visual emphasis marker"New value: +"Visual emphasis marker: normal or focus"
    • removedInput schema / properties / updates / items / properties / patch / properties / emphasis / enum
      Removed value: -[
      -  "normal",
      -  "focus"
      -]
    • changedInput schema / properties / updates / items / properties / patch / properties / groupId / description
      Previous value: -"Optional group marker for moving related objects together"New value: +"Group marker; grouped objects move together"
    • removedInput schema / properties / updates / items / properties / patch / properties / groupId / maxLength
      Removed value: -80
    • removedInput schema / properties / updates / items / properties / patch / properties / mime / enum
      Removed value: -[
      -  "image/png",
      -  "image/jpeg",
      -  "image/gif",
      -  "image/webp"
      -]
    • changedInput schema / properties / updates / items / properties / patch / properties / points / description
      Previous value: -"Local stroke points relative to the item bounds; use for freehand marks"New value: +"Freehand points, local to the item bounds"
    • removedInput schema / properties / updates / items / properties / patch / properties / points / maxItems
      Removed value: -500
    • changedInput schema / properties / updates / items / properties / patch / properties / role / description
      Previous value: -"Semantic role for visualDigest and recipes"New value: +"Semantic role: step, decision, question, constraint, evidence, label, frame, column, annotation, or normal"
    • removedInput schema / properties / updates / items / properties / patch / properties / role / enum
      Removed value: -[
      -  "normal",
      -  "label",
      -  "frame",
      -  "column",
      -  "step",
      -  "decision",
      -  "annotation"
      -]
    • removedInput schema / properties / updates / items / properties / patch / properties / scene / properties / fileId / maxLength
      Removed value: -120
    • removedInput schema / properties / updates / items / properties / patch / properties / scene / properties / fileMime / maxLength
      Removed value: -40
    • changedInput schema / properties / updates / items / properties / patch / properties / shape / description
      Previous value: -"Line routing style"New value: +"Line routing style: straight, curve, or orthogonal"
    • removedInput schema / properties / updates / items / properties / patch / properties / shape / enum
      Removed value: -[
      -  "straight",
      -  "curve",
      -  "orthogonal"
      -]
    • changedInput schema / properties / updates / items / properties / patch / properties / src / description
      Previous value: -"data:image/*;base64 source for image items"New value: +"data:image/*;base64 source"
    • removedInput schema / properties / updates / items / properties / patch / properties / src / maxLength
      Removed value: -700000
    • changedInput schema / properties / updates / items / properties / patch / properties / style / description
      Previous value: -"Optional bounded visual styling"New value: +"Visual styling"
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / borderColor / pattern
      Removed value: -"^#[0-9a-fA-F]{6}$"
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / borderWidth / maximum
      Removed value: -12
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / borderWidth / minimum
      Removed value: -0
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / fillOpacity / maximum
      Removed value: -1
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / fillOpacity / minimum
      Removed value: -0
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / fontSize / maximum
      Removed value: -72
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / fontSize / minimum
      Removed value: -8
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / fontWeight / enum
      Removed value: -[
      -  "normal",
      -  "bold"
      -]
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / opacity / maximum
      Removed value: -1
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / opacity / minimum
      Removed value: -0.1
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / radius / maximum
      Removed value: -64
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / radius / minimum
      Removed value: -0
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / strokeWidth / maximum
      Removed value: -24
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / strokeWidth / minimum
      Removed value: -0.5
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / textAlign / enum
      Removed value: -[
      -  "left",
      -  "center",
      -  "right"
      -]
    • removedInput schema / properties / updates / items / properties / patch / properties / style / properties / textColor / pattern
      Removed value: -"^#[0-9a-fA-F]{6}$"
    • changedInput schema / properties / updates / items / properties / patch / properties / text / description
      Previous value: -"Visible text on the object"New value: +"Visible text"
    • removedInput schema / properties / updates / items / properties / patch / properties / text / maxLength
      Removed value: -1200
    • changedInput schema / properties / updates / items / properties / patch / properties / title / description
      Previous value: -"Short heading rendered above the object text"New value: +"Heading above `text`"
    • removedInput schema / properties / updates / items / properties / patch / properties / title / maxLength
      Removed value: -120
    • changedInput schema / properties / updates / items / properties / patch / properties / variant / description
      Previous value: -"Visual variant for shapes and notes"New value: +"Visual variant: plain, card, frame, pill, diamond, callout, or heading"
    • removedInput schema / properties / updates / items / properties / patch / properties / variant / enum
      Removed value: -[
      -  "plain",
      -  "card",
      -  "frame",
      -  "pill",
      -  "diamond",
      -  "callout",
      -  "heading"
      -]
    • changedInput schema / properties / updates / items / properties / patch / properties / z / description
      Previous value: -"Stacking order; higher values render above lower values"New value: +"Stacking order; higher renders above"
    • removedInput schema / properties / updates / items / properties / patch / properties / z / maximum
      Removed value: -1000
    • removedInput schema / properties / updates / items / properties / patch / properties / z / minimum
      Removed value: --1000
    • removedInput schema / properties / updates / maxItems
      Removed value: -100
  3. Changed11 schema fields changedv0.8.0
    • addedInput schema / properties / diagram
      Added value: +{
      +  "description": "Semantic diagram recipe: nodes and edges generate one bounded Board v1 diagram with deterministic layout, short labels, and connected arrows. Each node takes `label` (not `title`). By default it is added beside existing objects and reuses a numeric id suffix if a generated id is taken; replace:true clears the whole active board first. Every edge becomes a routed line, a flow longer than six columns snakes instead of becoming one wide strip, and a timeline row index is not part of the schema - send `column` to advance a timeline.",
      +  "properties": {
      +    "columnGap": {
      +      "maximum": 200,
      +      "minimum": 20,
      +      "type": "number"
      +    },
      +    "edges": {
      +      "items": {
      +        "properties": {
      +          "from": {
      +            "type": "string"
      +          },
      +          "label": {
      +            "maxLength": 40,
      +            "type": "string"
      +          },
      +          "to": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "from",
      +          "to"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 96,
      +      "type": "array"
      +    },
      +    "mode": {
      +      "description": "Semantic arrangement, default flow. flow derives columns from edges and snakes after six columns so a 16-step chain is not one 3k-wide strip. timeline/compare/matrix place nodes only where you give `column`/`row` - nodes without them are appended in declaration order below the explicit grid, so set both for a timed sequence.",
      +      "enum": [
      +        "flow",
      +        "timeline",
      +        "compare",
      +        "matrix"
      +      ],
      +      "type": "string"
      +    },
      +    "nodeHeight": {
      +      "maximum": 180,
      +      "minimum": 60,
      +      "type": "number"
      +    },
      +    "nodeWidth": {
      +      "maximum": 320,
      +      "minimum": 120,
      +      "type": "number"
      +    },
      +    "nodes": {
      +      "items": {
      +        "properties": {
      +          "color": {
      +            "description": "Six-digit hex colour; invalid values return ERROR_JSON with a fix",
      +            "maxLength": 40,
      +            "type": "string"
      +          },
      +          "column": {
      +            "description": "Explicit column, 0-12. In timeline/compare/matrix this is the axis step: 17 steps in one row means column 0-16 is NOT available, so use row for the sequence instead.",
      +            "maximum": 12,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "detail": {
      +            "maxLength": 120,
      +            "type": "string"
      +          },
      +          "emphasis": {
      +            "description": "Use focus for the current discussion focus",
      +            "enum": [
      +              "normal",
      +              "focus"
      +            ],
      +            "type": "string"
      +          },
      +          "id": {
      +            "maxLength": 80,
      +            "type": "string"
      +          },
      +          "label": {
      +            "description": "Node caption; this is the field to fill, not `title`",
      +            "maxLength": 80,
      +            "type": "string"
      +          },
      +          "role": {
      +            "description": "Visual semantics: step, decision, question, constraint, evidence, or annotation",
      +            "enum": [
      +              "normal",
      +              "label",
      +              "frame",
      +              "column",
      +              "step",
      +              "decision",
      +              "annotation",
      +              "question",
      +              "constraint",
      +              "evidence"
      +            ],
      +            "type": "string"
      +          },
      +          "row": {
      +            "description": "Explicit row, 0-47. In timeline the sequence usually advances down the page, so increment `row` per step and keep `column` fixed.",
      +            "maximum": 47,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "type": {
      +            "enum": [
      +              "rect",
      +              "ellipse"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "label"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 48,
      +      "type": "array"
      +    },
      +    "options": {
      +      "description": "Candidate choices for `recipe: decision`; they fan into the final step/outcome.",
      +      "items": {
      +        "maxLength": 120,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "maxItems": 8,
      +      "type": "array"
      +    },
      +    "origin": {
      +      "properties": {
      +        "x": {
      +          "type": "number"
      +        },
      +        "y": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "x",
      +        "y"
      +      ],
      +      "type": "object"
      +    },
      +    "recipe": {
      +      "description": "High-level authoring intent. When set, `steps` supplies the content and nodes/edges are generated; use this instead of hand-computing coordinates. flow: ordered steps; review: draft → feedback → revise; decision: options converging on an outcome; timeline: dated milestones; architecture: layers with dependencies.",
      +      "enum": [
      +        "flow",
      +        "review",
      +        "decision",
      +        "timeline",
      +        "architecture"
      +      ],
      +      "type": "string"
      +    },
      +    "replace": {
      +      "description": "Replace all existing board objects; defaults to false and adds the generated diagram beside existing objects",
      +      "type": "boolean"
      +    },
      +    "rowGap": {
      +      "maximum": 160,
      +      "minimum": 12,
      +      "type": "number"
      +    },
      +    "steps": {
      +      "description": "Step captions for `recipe`. Each becomes one node connected to the next in order.",
      +      "items": {
      +        "maxLength": 120,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "maxItems": 48,
      +      "type": "array"
      +    },
      +    "subtitle": {
      +      "maxLength": 200,
      +      "type": "string"
      +    },
      +    "title": {
      +      "maxLength": 120,
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / items / items / properties / color / description
      Previous value: -"Hex fill color"New value: +"Six-digit hex colour; invalid values return ERROR_JSON with a fix"
    • addedInput schema / properties / items / items / properties / color / maxLength
      Added value: +40
    • removedInput schema / properties / items / items / properties / color / pattern
      Removed value: -"^#[0-9a-fA-F]{6}$"
    • addedInput schema / properties / items / items / properties / scene
      Added value: +{
      +  "description": "Optional Excalidraw scene fidelity metadata; Board v1 remains authoritative",
      +  "properties": {
      +    "boundText": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "element": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "fileCreated": {
      +      "type": "number"
      +    },
      +    "fileId": {
      +      "maxLength": 120,
      +      "type": "string"
      +    },
      +    "fileMime": {
      +      "maxLength": 40,
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / layout / properties / mode / description
      Previous value: -"Arrangement mode; defaults to grid"New value: +"Arrangement mode; architecture derives layers from connected line IDs"
    • changedInput schema / properties / layout / properties / mode / enum
      Previous value: -[
      -  "grid",
      -  "row",
      -  "column",
      -  "timeline",
      -  "cluster"
      -]New value: +[
      +  "grid",
      +  "row",
      +  "column",
      +  "timeline",
      +  "cluster",
      +  "architecture"
      +]
    • changedInput schema / properties / updates / items / properties / patch / properties / color / description
      Previous value: -"Hex fill color"New value: +"Six-digit hex colour; invalid values return ERROR_JSON with a fix"
    • addedInput schema / properties / updates / items / properties / patch / properties / color / maxLength
      Added value: +40
    • removedInput schema / properties / updates / items / properties / patch / properties / color / pattern
      Removed value: -"^#[0-9a-fA-F]{6}$"
    • addedInput schema / properties / updates / items / properties / patch / properties / scene
      Added value: +{
      +  "description": "Optional Excalidraw scene fidelity metadata; Board v1 remains authoritative",
      +  "properties": {
      +    "boundText": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "element": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "fileCreated": {
      +      "type": "number"
      +    },
      +    "fileId": {
      +      "maxLength": 120,
      +      "type": "string"
      +    },
      +    "fileMime": {
      +      "maxLength": 40,
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true and openWorldHint=false, so the safety profile is covered. The description adds context the annotations do not: writes are applied serially against the latest state, expected_revision is optional for concurrency-safe appends versus strict validation, invalid colors return ERROR_JSON, and it does not open a browser or write project files. It could have described the response shape, but with no output schema, the remaining gap is minor.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded: the core action and the three modes come first, then the decision rule, then the geometry and concurrency details. The empirical turn-count justification is long, but it directly supports the recommended mode choice. A few clauses, such as the repeated warning about author, could be trimmed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A 9-parameter mutation tool with nested objects and no output schema needs substantial description, and this one covers the geometry conventions, the id-reuse path, the concurrency guards, and the side-effect boundaries. Return and error payload contents beyond the ERROR_JSON color case are the main omissions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuinely new semantics: for lines (x,y) is the start point and (x+w,y+h) the endpoint with w/h allowed to be negative, while other objects use the top-left corner plus the width and height; author must be top-level and is rejected per item; diagram nodes take label, not title. These resolve ambiguities the schema text leaves open.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('draw or modify directly on the shared infinite canvas') and then explicitly partitions the tool into three mutually exclusive usages: diagram, object-level items/updates/remove_ids/layout, and library. An agent can tell which mode applies without reading the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use rules with an alternative: default to diagram for two or more interlinked objects (flows, trees, comparisons, state machines), fall back to raw items only for a single standalone object or precise placement beside an existing object. It even quantifies the tradeoff (about 1.6 turns versus 4.8) and says to prefer updates over rebuilding the board, which is unusually strong routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools