suggest_template_for_checkpoint
Suggests a ComfyUI workflow template from a checkpoint filename—FLUX uses txt2img_flux, SD XL/SD 1.5 use txt2img—so you can choose the right template before building a workflow.
Instructions
Suggest workflow template (txt2img_flux or txt2img) from checkpoint filename. FLUX checkpoints (e.g. flux1-dev-fp8.safetensors) use txt2img_flux; SD XL / SD 1.5 use txt2img. Call before build_workflow when the user did not specify a template.
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": {
"ckpt_name": "<ckpt_name>"
},
"name": "suggest_template_for_checkpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ckpt_name | Yes | Checkpoint filename (e.g. flux1-dev-fp8.safetensors, sd_xl_base_1.0.safetensors) |