save_workflow
Save a workflow JSON (API or UI format) to the ComfyUI user library, making it appear in the web UI.
Instructions
Save a workflow to the ComfyUI user library so it appears in the web UI. Accepts either API format or UI format JSON.
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": {
"filename": "<filename>",
"workflow": "<workflow>"
},
"name": "save_workflow"
}
}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) |