draw_board
Draw and modify shapes, text, lines, and images on a shared infinite canvas, plus save, switch, import, or export editable board snapshots.
Instructions
让 AI 直接在共享无限画布上画或改,也可通过 library 参数保存当前画板、切换本地画板图库中的图、新建/重命名/复制/删除/导入/导出可编辑版本 1 画板。普通写入会串行应用到最新状态;line 的 (x,y) 是起点,(x+w,y+h) 是终点,w/h 可为负数;其他对象是左上角与宽高。按整齐网格布局;不打开浏览器,不写项目文件。
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
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Objects to create; omit id | |
| author | No | Author marker; AI responses should normally use ai | |
| layout | No | Optional deterministic arrangement of existing objects | |
| library | No | Optional local board-library action for saving, switching, renaming, duplicating, importing, or exporting editable board snapshots | |
| updates | No | Precise updates to existing object IDs | |
| remove_ids | No | Existing object IDs to remove | |
| replace_board | No | Rare full replacement with a version 1 board snapshot; revision and identity are preserved | |
| expected_revision | No | Optional board revision for rejecting stale canvas edits |