submit_workflow
Queue an API-format workflow for execution, returning a prompt ID on success or node-specific errors to fix and resubmit until the graph runs without errors.
Instructions
Queue an API-format workflow for execution (loop step 2: RUN).
workflow is the flat API/prompt-format dict: {node_id: {class_type, inputs}}.
Do NOT pass litegraph/UI format here.
On success: returns the prompt_id — then call get_result to fetch outputs and get_image to LOOK at them. Running with zero errors means the graph is VALID, not CORRECT — you still have to inspect the pixels. On failure: returns node_errors keyed by node id. That is NOT an iteration — read the error, fix that specific node, and re-submit until it executes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow | Yes | ||
| client_id | No | comfy-mcp |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |