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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| png_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |