Connect Nodes
connect_nodesCreate an edge between two existing workflow nodes, from source output to target input. Omit port names to use each node's default ports.
Instructions
Draw an edge from one node's output port to another's input port. Omit the port names to use each kind's defaults. Both nodes must already exist — connecting to a node that is not there is an error rather than a promise to create it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source node id. | |
| target | Yes | Target node id. | |
| source_port | No | Optional output port on the source, e.g. "true" on a branch. | |
| target_port | No | Optional input port on the target. | |
| workflow_id | Yes | The workflow id. |