replace_scene
Replace the entire Excalidraw canvas with a complete scene using an expected revision from read_scene, so stale edits are rejected and unrelated elements and files are preserved.
Instructions
Replace the entire canvas with a complete .excalidraw scene. First call read_scene and supply its revision as expectedRevision. Preserve unrelated elements and image files. A stale revision is rejected; read again and merge changes instead of forcing an overwrite.
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": {
"scene": "<scene>",
"expectedRevision": "<expectedRevision>"
},
"name": "replace_scene"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | Yes | ||
| expectedRevision | Yes |