update_element
Modify properties of existing Excalidraw elements, such as position, size, colors, text, and style, to refine or update diagrams programmatically.
Instructions
Update an existing Excalidraw element
Input Schema
Name | Required | Description | Default |
---|---|---|---|
backgroundColor | No | ||
fontFamily | No | ||
fontSize | No | ||
height | No | ||
id | Yes | ||
opacity | No | ||
roughness | No | ||
strokeColor | No | ||
strokeWidth | No | ||
text | No | ||
type | No | ||
width | No | ||
x | No | ||
y | No |
Input Schema (JSON Schema)
{
"properties": {
"backgroundColor": {
"type": "string"
},
"fontFamily": {
"type": "string"
},
"fontSize": {
"type": "number"
},
"height": {
"type": "number"
},
"id": {
"type": "string"
},
"opacity": {
"type": "number"
},
"roughness": {
"type": "number"
},
"strokeColor": {
"type": "string"
},
"strokeWidth": {
"type": "number"
},
"text": {
"type": "string"
},
"type": {
"enum": [
"rectangle",
"ellipse",
"diamond",
"arrow",
"text",
"label",
"freedraw",
"line",
"arrowLabel"
],
"type": "string"
},
"width": {
"type": "number"
},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"required": [
"id"
],
"type": "object"
}