save_template
Save ComfyUI workflows as persistent, reusable templates with descriptive names, tags, categories, and default settings so you can search and retrieve them later.
Instructions
Save a workflow as a reusable template. Use descriptive names that indicate the purpose (e.g., 'portrait_lighting_studio', 'product_photo_white_bg'). Templates are stored persistently and can be searched and retrieved later.
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": {
"id": "<id>",
"name": "<name>",
"description": "<description>",
"workflow": "<workflow>"
},
"name": "save_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique template ID (e.g., 'my_flux_style', 'upscale_4x') | |
| name | Yes | Human-readable template name | |
| tags | No | Tags for searching and filtering | |
| category | No | Category for organizing templates | custom |
| taskType | No | Type of task this template performs | txt2img |
| workflow | Yes | The ComfyUI workflow JSON (API format) | |
| modelType | No | Model architecture this template is designed for | any |
| description | Yes | Description of what this template does | |
| defaultSettings | No | Default settings (steps, cfg, width, height, etc.) |