Remove edges
canvas_disconnect_nodesWhen: Use to delete specific edges between two nodes.
Remove edges, given as source and target, or as an edge id / "Source -> Target" string in edge.
Batch: edges takes a list; put every item in one call rather than one call per item.
Operates on one Datadef diagram, named by diagram_id.
Returns compact JSON: the ids it created, changed or removed, the diagram revision, a one-line summary and the next step. A viewer-role account is refused.
Next: canvas_view to check the result.
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": {
"diagram_id": "<diagram_id>",
"edges": "<edges>"
},
"name": "canvas_disconnect_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | ||
| diagram_id | Yes | Diagram id, from list_diagrams, create_diagram or create_blank_diagram. |