set_inputs
Update node inputs in a ComfyUI workflow by specifying workflow ID, node ID, and JSON data. Modify text prompts or connect other nodes to adjust the workflow dynamically.
Instructions
Update inputs on an existing workflow 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_id": "<workflow_id>",
"node_id": "<node_id>",
"inputs": "<inputs>"
},
"name": "set_inputs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | JSON string of inputs to set/update. Values: {"text": "a cat"} Connections: {"clip": ["1", 1]}. | |
| node_id | Yes | The node ID to update. | |
| workflow_id | Yes | The workflow to modify. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||