comfyui_convert_workflow
Convert a ComfyUI UI-format workflow into an API-format file for direct use, resolving Set/Get nodes, reroutes, and bypassed nodes without running the workflow first.
Instructions
Convert a UI-format workflow saved in ComfyUI (e.g. "comfyui:MY_FLOW.json") to API format and save it as workflows/api/.json, without having to run it first. Resolves Set/Get nodes, reroutes and bypassed nodes. Not for workflows with subgraphs.
Args: include_bypassed: Treat bypassed nodes as active (e.g. optional LoadImage slots that are bypassed in the editor but should exist in the API version).
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": "<name>"
},
"name": "comfyui_convert_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| workflow | Yes | ||
| overwrite | No | ||
| include_bypassed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||