Nodes/ComfyUI-ialhabbal/Meta Prompt Extractor
ComfyUI Node

Meta Prompt Extractor

Extract positive and negative prompts from ComfyUI images or workflow JSON files stored anywhere on disk.

By ialhabbal·Created 4 months ago·Updated about a month ago· 7
Meta Prompt Extractor
  • conditioning
  • conditioning_negative
  • positive_prompt
  • negative_prompt
  • image
  • mask
  • path
  • width
  • height
  • resolution
image
use_conditioningfalse
batch_folder
batch_file_list
Categoryutils

Inputs (6)

NameTypeDefaultDescription
imageCOMBOAbsolute path to a file. Use the Browse button.
conditioningoptCONDITIONINGOptional positive conditioning input. Connect a CLIPTextEncode (or equivalent) node here. When 'use conditioning' is ON the extracted text is forwarded to the positive_prompt output, overriding any file-based extraction.
conditioning_negativeoptCONDITIONINGOptional negative conditioning input. Connect a CLIPTextEncode (or equivalent) node here. When 'use conditioning' is ON the extracted text is forwarded to the negative_prompt output, overriding any file-based extraction.
use_conditioningoptBOOLEANfalseWhen ON: conditioning inputs take priority over file-based extraction. Turns ON automatically when a conditioning input is connected. Turn OFF to fall back to Browse Files extraction even if conditioning inputs are connected.
batch_folderoptSTRINGAbsolute or relative path to a folder containing a batch of images. When set, the node will attempt to load and process all supported images in that folder.
batch_file_listoptSTRINGJSON array (string) of file paths to use as an explicit batch. If set, these exact files will be loaded and used instead of enumerating a folder.

Outputs (8)

NameTypeDescription
positive_promptSTRING
negative_promptSTRING
imageIMAGE
maskMASK
pathSTRING
widthINT
heightINT
resolutionSTRING