extract_workflow
Extracts embedded workflow JSON from ComfyUI-generated PNG files or URLs, returning it in API format ready to pass directly to run_workflow.
Instructions
Extract the workflow JSON from a ComfyUI-generated PNG image. Works with local file paths or URLs. Returns the workflow in API format that can be passed directly to run_workflow.
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": {
"source": "<source>"
},
"name": "extract_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Path to a local PNG file or URL of a PNG image with embedded ComfyUI workflow |