workflow_to_dsl
Convert ComfyUI API workflows into a compact, human-readable DSL for simpler editing and lossless round-trip conversion.
Instructions
Convert a ComfyUI API-format workflow into a compact, human/LLM-readable DSL — easier to read and edit than raw JSON, and round-trips losslessly back via dsl_to_workflow. Connections render as key <- nodeId.outputIndex, literals as key = <JSON>. (Experimental.)
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": "workflow_to_dsl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow | Yes | ComfyUI workflow in API format (node ID -> {class_type, inputs}) |