execute_workflow
Runs a pre-built ComfyUI workflow by ID, optionally waiting for completion to return generated images.
Instructions
Execute a workflow that was built with builder tools.
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": {
"workflow_id": "<workflow_id>"
},
"name": "execute_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | If True, poll until completion and return results with images. | |
| workflow_id | Yes | The workflow to execute. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||