edit-cell
Modify existing shapes in Draw.io diagrams by updating text, position, dimensions, or style properties using the cell ID. Only specified changes are applied while preserving other attributes.
Instructions
Update properties of an existing vertex/shape cell by its ID. Only provided fields are modified; unspecified properties remain unchanged.
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": {
"cell_id": "<cell_id>"
},
"name": "edit-cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell_id | Yes | Identifier (`id` attribute) of the cell to update. Applies to vertex/shape cells. | |
| text | No | Replace the cell's text/label content. | |
| x | No | Set a new X-axis position for the cell. | |
| y | No | Set a new Y-axis position for the cell. | |
| width | No | Set a new width for the cell. | |
| height | No | Set a new height for the cell. | |
| style | No | Replace the cell's style string (semi-colon separated `key=value` pairs). |