update_element
Modify an Excalidraw element's position, size, label, or visual styling in one atomic update to keep diagram edits consistent.
Instructions
Update element position, size, label, or visual styling atomically.
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": {
"element_id": "<element_id>"
},
"name": "update_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| label | No | ||
| width | No | ||
| height | No | ||
| elbowed | No | ||
| opacity | No | ||
| frame_id | No | ||
| fillStyle | No | ||
| font_size | No | ||
| roughness | No | ||
| roundness | No | ||
| element_id | Yes | ||
| font_family | No | ||
| strokeColor | No | ||
| strokeStyle | No | ||
| strokeWidth | No | ||
| routing_mode | No | ||
| backgroundColor | No |