visualize_workflow
Converts a ComfyUI workflow JSON into a Mermaid flowchart diagram, grouping nodes by category and labeling connections by data type, to visualize pipeline structure.
Instructions
Convert a ComfyUI workflow JSON into a Mermaid flowchart diagram. Returns mermaid syntax showing nodes grouped by category (loading, conditioning, sampling, image, output) with connections labeled by data type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow | Yes | ComfyUI workflow JSON (as a JSON string or object) | |
| show_values | No | Include widget values (seed, steps, cfg, etc.) in node labels | |
| direction | No | Flowchart direction: LR (left-to-right) or TB (top-to-bottom) | LR |