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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | Wildcard-aware source prompt edited in Prompt Palette. | |
| seed | INT | 00–18446744073709550000 | Seed used for deterministic wildcard resolution. |
| processing_mode | COMBO | entire text as one | Resolve the prompt as one block or resolve each line independently. |
| clipopt | CLIP | Optional CLIP input used to encode the resolved positive and negative prompts. | |
| modelopt | MODEL | Optional model input; connect with CLIP to apply LoRA tags found in the prompt. | |
| prompt_prefixopt | STRING | External wildcard-aware text prepended to the prompt. | |
| prompt_suffixopt | STRING | External wildcard-aware text appended to the prompt. | |
| enhancer_overrideopt | STRING | A non-empty value replaces the resolved positive prompt. | |
| external_seedopt | INT | Optional external seed that takes precedence over the node's Seed control. | |
| negative_textopt | STRING | Optional wildcard-aware negative prompt text. | |
| negative_prefixopt | STRING | External wildcard-aware text prepended to the negative prompt. | |
| negative_suffixopt | STRING | External wildcard-aware text appended to the negative prompt. |
Outputs (13)
| Name | Type | Description |
|---|---|---|
| Model (passthrough) | MODEL | Connected model, patched with prompt LoRAs when CLIP is also connected. |
| CLIP (passthrough) | CLIP | Connected CLIP, patched alongside the model when prompt LoRAs are applied. |
| Conditioning | CONDITIONING | Resolved positive prompt encoded with the connected CLIP. |
| Negative conditioning | CONDITIONING | Resolved negative prompt encoded with the connected CLIP. |
| Prompt | STRING | Final resolved prompt text, or the enhancer override when used. |
| Negative prompt | STRING | Final resolved negative prompt text. |
| Seed used | INT | Seed actually used for this resolution. |
| Wildcards used (JSON) | STRING | JSON list of wildcard files used during this resolution. |
| Raw text (unresolved) | STRING | Source prompt before wildcard resolution. |
| Wildcards used (count) | INT | Number of distinct wildcard files used during this resolution. |
| Used enhancer override | BOOLEAN | True when the enhancer override replaced the resolved prompt. |
| CLIP token count | INT | CLIP-L token count for the final prompt, or -1 when unavailable. |
| Prompt metadata (JSON) | STRING | Final and source prompts plus seed, wildcard, LoRA, and execution metadata. |