run_workflow_template
Run a saved workflow template against ComfyUI and receive the generated image URLs.
Instructions
Run a saved workflow template against ComfyUI and return the resulting image URLs.
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": {
"name": "<name>"
},
"name": "run_workflow_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Saved template name to run. |
Implementation Reference
- src/comfyui/client.ts:61-68 (helper)The client.runWorkflow method used by the handler: submits the workflow to ComfyUI and waits for completion, returning promptId and image URLs.
async runWorkflow(workflow: Workflow): Promise<GenerateResult> { const { prompt_id } = await this.submit(workflow); const entry = await this.waitForCompletion(prompt_id); return { promptId: prompt_id, images: extractImageUrls(entry, this.publicUrl), }; }