visualize_workflow
Converts ComfyUI workflow JSON into a Mermaid flowchart with nodes grouped by category (loading, conditioning, sampling, image, output) and connections labeled by data type.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workflow": "<workflow>"
},
"name": "visualize_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow | Yes | ComfyUI workflow JSON (as a JSON string or object) | |
| direction | No | Flowchart direction: LR (left-to-right) or TB (top-to-bottom) | LR |
| show_values | No | Include widget values (seed, steps, cfg, etc.) in node labels |