comfy_visualize_workflow
Convert API-format workflows into Mermaid flowcharts to visualize node connections and data flow.
Instructions
Render an API-format workflow as a Mermaid flowchart.
The returned string is valid Mermaid source (flowchart TD). Paste into any Mermaid renderer (GitHub, mermaid.ink, mermaid-cli).
Args: workflow: API-format {node_id: {class_type, inputs}} dict. title: Optional title string inserted as a diagram comment.
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": "comfy_visualize_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| workflow | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |