save_workflow
Save a workflow JSON to the connected ComfyUI server's user library for use in the web UI. Overwrites existing files with the same name.
Instructions
Save a workflow JSON to the connected ComfyUI server's user library so it appears in the ComfyUI web UI. Requires a running ComfyUI server; this writes to that server's userdata and overwrites any existing file with the same filename without confirmation. Accepts API-format or UI-format JSON. Returns a confirmation message, or the HTTP status and error text on failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Filename to save as (e.g. 'my_workflow.json'). Will overwrite if it already exists. | |
| workflow | Yes | Workflow JSON to save (API or UI format). Stored verbatim; not validated before saving. |