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).
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": {
"filename": "<filename>"
},
"name": "comfyui_get_workflow_from_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| subfolder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||