update_element
Update an existing node or edge in a draw.io diagram by changing specified properties like position, label, style, or dimensions. Only the attributes you specify are modified.
Instructions
Update properties of an existing node or edge in a draw.io diagram. Only specified properties are changed.
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": {
"filePath": "<filePath>",
"elementId": "<elementId>"
},
"name": "update_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | New X position | |
| y | No | New Y position | |
| label | No | New label text | |
| style | No | New style string | |
| width | No | New width | |
| height | No | New height | |
| filePath | Yes | Path to the .drawio file | |
| elementId | Yes | ID of the element to update |