patch_diagram
Apply targeted edits to an existing Draw.io diagram by adding or removing nodes, rewiring connections, grouping elements into containers, or highlighting paths.
Instructions
Surgically patch an existing diagram: add/delete/update nodes, rewire edges, group into containers, or highlight paths.
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": {
"drawio_path": "<drawio_path>",
"operations": "<operations>"
},
"name": "patch_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes | ||
| drawio_path | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |