update_element
Modify an existing Excalidraw element by its ID, updating only the fields you provide such as position, size, color, text, or style.
Instructions
Update an existing element by ID. Only provided fields will be updated.
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": {
"id": "<id>"
},
"name": "update_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| id | Yes | ID of the element to update (required) | |
| text | No | ||
| type | No | ||
| color | No | Alias for strokeColor in text elements | |
| width | No | ||
| height | No | ||
| points | No | Array of points [[0,0], [dx,dy]] for arrows and lines | |
| opacity | No | ||
| fontSize | No | ||
| fillStyle | No | ||
| roughness | No | ||
| textAlign | No | ||
| fontFamily | No | 1 (Virgil), 2 (Helvetica), 3 (Cascadia), 5 (Excalifont) | |
| strokeColor | No | ||
| strokeStyle | No | ||
| strokeWidth | No | ||
| endArrowhead | No | ||
| verticalAlign | No | ||
| backgroundColor | No |