Save Excalidraw canvas
push_canvasSave the current Excalidraw canvas document to its bound path, using a compare-and-swap mechanism with a base revision and mutation ID to prevent conflicts.
Instructions
Saves the bound standard document with compare-and-swap.
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": {
"canvasPath": "<canvasPath>",
"baseRevision": "<baseRevision>",
"mutationId": "<mutationId>",
"document": "<document>"
},
"name": "push_canvas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | ||
| canvasPath | Yes | Full workspace-relative canvas path under projectPath, for example designs/m3/main.excalidraw. Never pass only main.excalidraw. | |
| mutationId | Yes | ||
| baseRevision | Yes |