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.
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": {
"workflow_id": "<workflow_id>",
"from_node": "<from_node>",
"output_idx": "<output_idx>",
"to_node": "<to_node>",
"input_name": "<input_name>"
},
"name": "connect_nodes"
}
}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 |