set_workflow_slot
Update specific slots in a ComfyUI workflow by address and value, returning the modified workflow or saving it to file. Avoids manual JSON editing.
Instructions
Set one or more slot values on a frontend-format workflow.
Wraps comfy workflow set-slot <path> ADDR=VALUE [ADDR=VALUE ...] — the
parameterize step of the template on-ramp: change the prompt/seed/steps/
model without hand-editing the JSON.
Each overrides entry may be EITHER form, mixed in one list:
Structured (preferred) —
{"address": "6.text", "value": "a cat"}. Type PRESERVED EXACTLY. Feedlist_workflow_slots'addressin.String —
"6.text=a cat". Parsed as JSON after the first=, falling back to the literal string — so it COERCES ("6.text=true"sets the boolean). Use structured for literal"true"/"123".
stdout=True (default) is NON-DESTRUCTIVE — returns the modified
workflow rather than writing workflow_path in place; False writes
the change back to the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stdout | No | ||
| overrides | Yes | ||
| workflow_path | Yes |