Utilities for ComfyUI workflow JSON files: strip embedded base64 image blobs to shrink them, inspect node counts and types, and extract the text prompts buried inside a workflow or prompt export.
Remove embedded base64 image blobs from a ComfyUI workflow/prompt JSON at any depth, replacing each with a short placeholder so the file shrinks. Writes a new file; the source is never touched.
Inputs
Name
Type
Required / default
Values and notes
json_file
path
required
min_base64_len
int
optional, default 64
out
path
optional, default ""
Outputs
Name
Type
Notes
file
path
removed
int
bytes_saved
int
Inspect workflow
inspect
Summarize a ComfyUI workflow or API-prompt JSON: detected format, node count, and a breakdown of node types. Falls back to a generic structure summary for JSON that isn't a recognized ComfyUI export.
Inputs
Name
Type
Required / default
Values and notes
json_file
path
required
Outputs
Name
Type
Notes
summary
json
Extract prompts
extract_prompts
Find the text prompts embedded in a ComfyUI workflow or API-prompt JSON - CLIPTextEncode-style node fields and similar text widgets - skipping filenames, samplers and other non-prompt strings.