Connect nodes
canvas_connect_nodesWhen: Use to draw the flows that genuinely move data between two nodes. Never connect a zone: connect a node inside it.
Draw edges (arrows) between nodes to show how data flows. Label an edge only when the reader could not guess what it does ("CDC", "hourly batch"); obvious flows and dimensional joins read better unlabelled. Edges always render with an arrowhead at the target; bidirectional adds one at the source.
Batch: edges (up to 60) 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_layout_canvas once, when the structure is complete.
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_connect_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | ||
| diagram_id | Yes | Diagram id, from list_diagrams, create_diagram or create_blank_diagram. |