Change a diagram
edit_diagramChange a diagram already on screen by adding, updating, moving or removing nodes and edges. Use it after user edits, comments or asks about a node to apply refinements in order.
Instructions
Change a diagram that is already on screen. Use it after the user edits, comments on or asks about a node, and for any refinement. Do not call visualize again for that. Ops apply in order and address nodes by id. A new node's id can be used by later ops in the same call. The open diagram updates itself.
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": {
"docId": "<docId>",
"ops": "<ops>"
},
"name": "edit_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ||
| docId | Yes | The docId a visualize result gave you |