update_diagram_file
Modify .drawio diagram files by moving, resizing, relabeling, restyling, adding vertices and edges, or removing elements. Requires prior inspection of cell IDs via read_diagram_file.
Instructions
Modify an existing .drawio diagram file. Supports operations: move (absolute), move_by (relative offset), resize, relabel, restyle, add_vertex, add_edge, remove. Use read_diagram_file first to inspect cell IDs, then call update_diagram_file with the target operations.
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": {
"file_path": "<file_path>",
"operations": "<operations>"
},
"name": "update_diagram_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to .drawio file to update | |
| operations | Yes | List of operations to apply |