update_element
Update an existing diagram element's attributes such as position, dimensions, stroke color, background color, fill style, opacity, stroke width, and text content. Supports multi-session targeting.
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.
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>",
"updates": "<updates>"
},
"name": "update_element"
}
}Input 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 |