comfy_apply_template
Apply a named workflow template (txt2img, img2img, controlnet) and return the workflow, with optional parameter overrides for customization.
Instructions
Apply a workflow template and return the resulting workflow.
Convenience alias for comfy_build_workflow.
Args: template: Template name (txt2img, img2img, upscale, inpaint, controlnet) params: Optional parameters to override template defaults
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": "comfy_apply_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| template | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |