Text Debug Splicer (AIIA)
Five string outputs to read at once — this node does the joining for you
- combined_text
The most annoying part of debugging a prompt pipeline in ComfyUI isn't the math, it's the strings. You've got three different text outputs - a cleaned prompt, a tag stack, a wildcard expansion - and you want to see them next to each other, not in three separate widgets. This node staples up to three text inputs into one labeled, readable block, and it'll even save the result to a file for you.
It's a debug tool from the AIIA pack's utility drawer, and it does exactly one job: join. For each connected text input it builds a [title] section header followed by the text, then joins all the sections with a separator you choose, and hands you the combined string. Which means it doubles as a lightweight prompt builder - construct a complex prompt out of parts and inspect exactly what's going to the encoder.
The inputs that matter
Most of them are trivial, but here's the set:
- text_1 / text_2 / text_3 - the actual strings, wired in from upstream. All optional; it just skips whatever's not connected.
- title_1 / title_2 / title_3 - the labels. Default to "Text 1/2/3"; rename them so the output is readable.
- separator - one of
New Line (\n),Double New Line (\n\n),Dash Line (---),Hash Line (###),Star Line (***). The dash line reads best for debugging; the plain newline is what you want if you're building a prompt. - save_file (default on) - writes
<save_prefix>_<timestamp>.txtinto ComfyUI'soutputfolder. Great for recording an intermediate result before you change something. - return_text (default on) - whether the output should actually carry the string.
Output: combined_text (STRING). This is an output node, so if return_text is off it returns an empty string but the node still does its file-save job.
How it works
Plain string assembly: [title]\n<text> blocks joined by your separator. The only clever bit is the separator mapping - the dropdown labels map to real control characters behind the scenes (Dash Line becomes \n---\n, and so on). The file-save path uses save_prefix plus a timestamp so repeated runs never overwrite each other.
Install
It ships inside havvk/ComfyUI_AIIA, so it comes along with the whole pack:
cd ComfyUI/custom_nodes
git clone https://github.com/havvk/ComfyUI_AIIA.git
or search "ComfyUI_AIIA" in ComfyUI Manager, then restart. Zero extra dependencies, zero models. It's pure text manipulation.
Common issues
- "The output is empty." Check
return_text- it defaults to on, but if you flipped it to use the node purely as a file logger, there's nothing coming out the wire. That's by design. - Titles you forgot to change. The defaults ("Text 1") are honest but useless later. Rename them or your debug log reads like a ransom note.
- The .txt lands in
output/, not next to your workflow. That's ComfyUI convention, but it surprises people the first time they hunt for the file.
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| title_1 | STRING | Text 1 | — |
| title_2 | STRING | Text 2 | — |
| title_3 | STRING | Text 3 | — |
| separator | COMBO | Dash Line (---) | 5 options: New Line (\n), Double New Line (\n\n), Dash Line (---), Hash Line (###), Star Line (***) |
| save_prefix | STRING | debug_spliced | — |
| save_file | BOOLEAN | true | — |
| return_text | BOOLEAN | true | — |
| text_1opt | STRING | — | |
| text_2opt | STRING | — | |
| text_3opt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| combined_text | STRING | — |