diagram_patch
Apply structured edits to a live diagram: add nodes, connect edges, or update labels while the layout engine handles positioning.
Instructions
Apply a few structured edits (add_node, add_edge, set_label). Do not supply x/y; draw.io layout places new cells. Coordinates belong to the editor, not the model.
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": {
"operations": "<operations>"
},
"name": "diagram_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout | No | ||
| operations | Yes |