update_element
Modify existing diagram elements by adjusting position, size, colors, text, and other visual properties in Excalidraw diagrams.
Instructions
Update attributes of an existing element.
Updatable attributes:
x, y: Position coordinates
width, height: Dimensions
strokeColor: Stroke color
backgroundColor: Background color
fillStyle: Fill style
strokeWidth: Stroke width
roughness: Roughness
opacity: Opacity
text: Text content (only for text type)
Multi-session support: Specify sessionId to target a specific session.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | No | Session ID. If not provided, uses default session. | |
| id | Yes | Element ID to update | |
| updates | Yes | Attributes to update |