/comfy:viz Path to workflow JSON file, or paste JSON inlinefrom comfy
Visualizes a ComfyUI workflow as a mermaid flowchart diagram, grouping nodes by category with labeled connections showing data types. Accepts a file path or inline JSON in API format.
Ships in comfy. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
The user wants to visualize a ComfyUI workflow as a mermaid flowchart diagram.
Get the workflow JSON. The argument may be: $ARGUMENTS
Validate the input. The workflow must be in ComfyUI's API format, an object where keys are node IDs and values have class_type and inputs. If it looks like the web UI format (has nodes and links arrays), tell the user it needs to be in API format and suggest they export it via "Save (API Format)" in ComfyUI.
Visualize. Use the visualize_workflow tool with:
workflow: the parsed workflow JSONshow_values: true (to include parameter values in node labels)direction: "LR" (left-to-right, easiest to read)Present the diagram. Show the mermaid output to the user. The mermaid code block will render as a flowchart showing nodes grouped by category with labeled connections.
User: /comfy-viz ~/workflows/my-workflow.json
Steps:
~/workflows/my-workflow.jsonvisualize_workflowdirection: "TB" (top-to-bottom) for better readability7-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/debug/comfy-debug — Diagnose a Failed WorkflowDiagnose why a ComfyUI workflow failed/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 outputsOther plugins' commands for the same job