comfy_import_workflow_from_png
Extract a ComfyUI workflow from a PNG's tEXt metadata. Returns the API-format prompt when available, otherwise the UI-format workflow, along with the source file path.
Instructions
Extract a workflow from a ComfyUI-saved PNG's tEXt metadata.
ComfyUI embeds the workflow JSON in the PNG on save:
'prompt' chunk: API format (directly queueable)
'workflow' chunk: UI format (with positions, widgets)
This tool prefers 'prompt' and falls back to 'workflow'. Returns {format: 'api' | 'ui' | 'none', workflow: dict, path: str}.
Args: png_path: Absolute path to the PNG file.
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": {
"png_path": "<png_path>"
},
"name": "comfy_import_workflow_from_png"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| png_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |