save_workflow
Saves a ComfyUI workflow in UI format with layout, groups, and notes to the workflow browser and session directory. Validates before saving and prevents overwrites unless explicitly allowed.
Instructions
Save the workflow (UI format, with layout/groups/notes) into ComfyUI's workflow browser + the session dir. Organize a graph you built first (not a hand-arranged one). REFUSES to save with validation errors unless allow_invalid=True. Never overwrites by default: a taken name saves as ' (draftsman)' (result.renamed_from says so); overwrite=True replaces deliberately.
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>",
"name": "<name>"
},
"name": "save_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| overwrite | No | ||
| workflow_id | Yes | ||
| allow_invalid | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||