comfy_connect_nodes
Link nodes in a ComfyUI workflow by specifying source node, output index, target node, and input name to establish data flow.
Instructions
Connect two nodes in a workflow.
Args: workflow: The workflow dictionary source_node: ID of the source node source_output: Output index on the source node target_node: ID of the target node target_input: Input name on the target node
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": "<workflow>",
"source_node": "<source_node>",
"source_output": "<source_output>",
"target_node": "<target_node>",
"target_input": "<target_input>"
},
"name": "comfy_connect_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow | Yes | ||
| source_node | Yes | ||
| target_node | Yes | ||
| target_input | Yes | ||
| source_output | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |