get_history
Retrieve execution history for a ComfyUI prompt to diagnose failures. Returns status, timing, cached nodes, output details, and full error information.
Instructions
Get execution history for a ComfyUI prompt. Returns status, timing, cached nodes, output details, and full error information including Python tracebacks. Use after a failed enqueue_workflow to diagnose what went wrong.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt_id | No | Specific prompt ID to look up (returned by enqueue_workflow). If omitted, returns the most recent COMMITTED execution (chosen by ComfyUI's queue number, not dict order). Note: immediately after a run finishes it can briefly lag by one until ComfyUI commits the new entry — pass the prompt_id from enqueue_workflow to get that exact run, and prefer the run-finished event for naming a just-produced output. |