create_workflow
Generate a ComfyUI workflow JSON from a named template. Choose from txt2img, img2img, upscale, inpaint, controlnet, or ip_adapter, and set parameters to get a ready-to-execute workflow.
Instructions
Create a ComfyUI workflow from a named template. Available templates: txt2img, img2img, upscale, inpaint, controlnet, ip_adapter. Returns the complete workflow JSON ready for execution or further modification.
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": {
"template": "<template>"
},
"name": "create_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Template parameters (e.g. checkpoint, positive_prompt, negative_prompt, width, height, steps, cfg, seed, sampler_name, scheduler, denoise, image_path, mask_path, upscale_model) | |
| template | Yes | Template name: txt2img, img2img, upscale, or inpaint |