ComfyUI Node

Prompt Palette

Prompt Palette (by z3rofeels): a wildcard-aware prompt box that doubles as an active CLIP encoder. Resolves __wildcard__ syntax plus optional prefix/suffix/negative text, then - depending on which of the optional CLIP/MODEL sockets are connected - either outputs plain resolved text or fully encodes it into CONDITIONING, loading any <lora:name:weight> tags along the way if MODEL is also wired in. Also reports the resolved prompt's real CLIP-L token count.

By z3rofeels·Created 2 months ago·Updated a day ago· 14
Prompt Palette
  • clip
  • model
  • Model (passthrough)
  • CLIP (passthrough)
  • Conditioning
  • Negative conditioning
  • Prompt
  • Negative prompt
  • Seed used
  • Wildcards used (JSON)
  • Raw text (unresolved)
  • Wildcards used (count)
  • Used enhancer override
  • CLIP token count
  • Prompt metadata (JSON)
text
seed0
processing_modeentire text as one
prompt_prefix
prompt_suffix
enhancer_override
external_seed
negative_text
negative_prefix
negative_suffix
CategoryPromptPalette

Inputs (12)

NameTypeDefaultDescription
textSTRINGWildcard-aware source prompt edited in Prompt Palette.
seedINT00–18446744073709550000Seed used for deterministic wildcard resolution.
processing_modeCOMBOentire text as oneResolve the prompt as one block or resolve each line independently.
clipoptCLIPOptional CLIP input used to encode the resolved positive and negative prompts.
modeloptMODELOptional model input; connect with CLIP to apply LoRA tags found in the prompt.
prompt_prefixoptSTRINGExternal wildcard-aware text prepended to the prompt.
prompt_suffixoptSTRINGExternal wildcard-aware text appended to the prompt.
enhancer_overrideoptSTRINGA non-empty value replaces the resolved positive prompt.
external_seedoptINTOptional external seed that takes precedence over the node's Seed control.
negative_textoptSTRINGOptional wildcard-aware negative prompt text.
negative_prefixoptSTRINGExternal wildcard-aware text prepended to the negative prompt.
negative_suffixoptSTRINGExternal wildcard-aware text appended to the negative prompt.

Outputs (13)

NameTypeDescription
Model (passthrough)MODELConnected model, patched with prompt LoRAs when CLIP is also connected.
CLIP (passthrough)CLIPConnected CLIP, patched alongside the model when prompt LoRAs are applied.
ConditioningCONDITIONINGResolved positive prompt encoded with the connected CLIP.
Negative conditioningCONDITIONINGResolved negative prompt encoded with the connected CLIP.
PromptSTRINGFinal resolved prompt text, or the enhancer override when used.
Negative promptSTRINGFinal resolved negative prompt text.
Seed usedINTSeed actually used for this resolution.
Wildcards used (JSON)STRINGJSON list of wildcard files used during this resolution.
Raw text (unresolved)STRINGSource prompt before wildcard resolution.
Wildcards used (count)INTNumber of distinct wildcard files used during this resolution.
Used enhancer overrideBOOLEANTrue when the enhancer override replaced the resolved prompt.
CLIP token countINTCLIP-L token count for the final prompt, or -1 when unavailable.
Prompt metadata (JSON)STRINGFinal and source prompts plus seed, wildcard, LoRA, and execution metadata.