Replace Excalidraw canvas
replace_canvasReplace an existing Excalidraw canvas with a complete new document using atomic revision-controlled updates to prevent conflicts and maintain data integrity.
Instructions
Validates, restores, and atomically replaces one complete standard document.
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 | ||
| projectPath | Yes | Full workspace-relative project path, for example designs/m3. | |
| baseRevision | Yes |