connect_nodes
Connects an output of one workflow node to an input of another, enabling dynamic workflow construction. Specify workflow ID, source node/output index, target node, and input name.
Instructions
Connect an output of one node to an input of another in a dynamic workflow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_node | Yes | Target node id | |
| from_node | Yes | Source node id (e.g. "1") | |
| input_name | Yes | Target input name (e.g. model, clip, positive) | |
| output_idx | Yes | Output index (usually 0) | |
| workflow_id | Yes | Workflow id from create_workflow |