comfy_set_widget_value
Set a widget value on a workflow node to update node inputs, enabling automated configuration of ComfyUI workflows.
Instructions
Set a widget value on a workflow node.
Args: workflow: The workflow dictionary node_id: ID of the node to modify widget_name: Name of the widget/input to set value: Value to set
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>",
"node_id": "<node_id>",
"widget_name": "<widget_name>"
},
"name": "comfy_set_widget_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | ||
| node_id | Yes | ||
| workflow | Yes | ||
| widget_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |