Update elements on the board
update_elementsUpdate elements on a canvas. Requires room_id from a previous Canvs tool result. Pass elements array with id and fields to update. IMPORTANT: in each update object ONLY id is required; all other fields are optional patch fields. Include ONLY elements that need changes; elements omitted from the request remain unchanged on the board. Prefer this tool for SMALL edits to existing diagrams (rename/move/restyle a few elements), typically after query_elements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room_id | Yes | Room ID from a previous Canvs tool result. If you only have a URL, extract it from https://[host]/?room=[room_id] or https://[host]/gdrive?id=[room_id]. | |
| elements | Yes | Array of element updates (each must have id) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Canvas room URL | |
| isNew | Yes | Whether a new canvas was created | |
| room_id | No | Canvas room ID | |
| appState | Yes | Canvas app state (viewBackgroundColor, etc.) | |
| elements | Yes | All elements currently on the canvas | |
| collabUrl | Yes | Collaboration server URL for Socket.IO |