/comfy:debug prompt_id or "last" to debug the most recent executionfrom comfy
Diagnoses failed ComfyUI workflow executions by fetching history, extracting error details, inspecting the failing node, checking for missing models or nodes, and presenting a root-cause summary with suggested fixes.
Ships in comfy. Installing the plugin adds it to Claude Code.
The user wants to find out why a ComfyUI workflow execution failed and get a suggested fix.
Get the execution history. The argument is: $ARGUMENTS
get_history(action="list") with that prompt_idget_history(action="list") with no prompt_id to get the most recent executionExtract the error. From the history response, identify:
node_id: the node where execution failednode_type / class_type: what kind of node it wasexception_message: the error messagetraceback: the full Python tracebackIf the execution succeeded (no error), tell the user it completed normally and show the output summary.
Get relevant logs. Call get_system_stats (action:"logs") with a keyword filter matching the error. Use the exception class name (e.g., "RuntimeError", "ValueError") or a distinctive phrase from the error message. Request up to 200 lines.
Inspect the failing node. Call create_workflow (action:"node_info") with the node_type of the failing node. Check:
Check for missing models. If the error mentions a missing file, model, or checkpoint:
list_local_models to see what's installeddownload_model action:"download" or provide a search query for action:"search"Check for missing nodes. If the error is a KeyError or mentions an unknown node type:
search_custom_nodes (action: "search") with the node class name as query to find which pack provides itPresent the diagnosis. Provide a summary:
clear_vram before retryingUser: /comfy-debug last
Steps:
get_history(action="list") with no prompt_idget_system_stats (action:"logs") with keyword "RuntimeError"create_workflow (action:"node_info") for "KSampler"clear_vram before retryingWhat the command file sets; muted values are Claude Code's defaults
comfyui, workflow-debugging, error-diagnosis, troubleshooting
7-day visitors to each command page
npx claudepluginhub artokun/comfyui-mcp --plugin comfy11 commands in this plugin
/batch/comfy-batch — Parameter Sweep GenerationParameter sweep generation across multiple values/compare/comfy-compare — Compare Two WorkflowsDiff two ComfyUI workflows to see what changed/convert/comfy-convert — Convert Workflow FormatConvert between ComfyUI UI format and API format workflows/director/comfy-director — Story-to-Video Production PipelineDirect a short film from a story. Generates scenes, frames, and video clips/gallery/comfy-gallery — Browse Generated OutputsBrowse and inspect generated ComfyUI outputs/gen/comfy-gen — Generate an ImageGenerate an image with ComfyUI from a text promptOther plugins' commands for the same job