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.
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), }; }