comfyui_get_workflow_from_image
Extract the exact ComfyUI workflow and prompt metadata embedded in a generated PNG to retrieve and reuse the original generation settings.
Instructions
Extract embedded workflow and prompt metadata from a ComfyUI-generated PNG.
ComfyUI embeds the full workflow JSON and prompt data in PNG text chunks.
This enables extracting the exact settings used to generate an image
for inspection or re-execution.
Args:
filename: Name of the PNG file to extract metadata from
subfolder: Subfolder within ComfyUI's output directory (default: empty)
Returns:
Dict with 'workflow' (parsed JSON or None), 'prompt' (parsed JSON or None),
and 'message' (human-readable status).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| subfolder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||