Text Combiner 2
Glue two prompt fragments into one
- text
This node takes two text inputs and joins them into one string. That's the whole thing, and its healthy click-through says a lot of people are looking for exactly this - a clean way to stitch prompt fragments together without a wall of string nodes.
The point isn't the combining itself, it's modularity. When you build prompts on anime models, you're assembling tags from separate concerns - a quality prefix, a character, a pose, a style, a location - and you want to swap those pieces independently. Keeping each fragment in its own node and gluing them at the end means you can rewire "pose A" for "pose B" without editing one giant text box. Text Combiner 2 is the simplest version of that: two in, one out.
How it works
You give it text1 and text2, and it concatenates them into a single text output. Either input can be a literal typed value or, more usefully, the output of another node - a Text Box, a character selector, a tagger, whatever. So the common pattern is: one input is your fixed boilerplate (quality tags, negative-safe stuff), the other is the variable part you keep changing, and the combined result feeds your CLIP Text Encode.
The inputs that matter
- text1 - the first fragment.
- text2 - the second fragment.
Both are strings; both are meant to be wired from upstream nodes as often as typed. Output is a single text.
Where it fits
Think of it as a two-way merge point in a prompt-building graph. Upstream you might have a character-select node producing tags and a Text Box holding your quality prefix; Text Combiner 2 joins them; downstream goes the CLIP encoder. If you need to merge more than two pieces, the pack has a six-input sibling (Text Combiner 6) for that - this one is deliberately the minimal case. And if you find yourself stacking several combiners, that's your cue to jump to the six-input version instead.
Install
ComfyUI Manager → Custom Nodes Manager → search ComfyUI_Mira → Install → restart. Or by hand: cd ComfyUI/custom_nodes && git clone https://github.com/mirabarukaso/ComfyUI_Mira.git, then restart ComfyUI. If the pack errors on load, run pip install -r requirements.txt in its folder. Nothing to download.
Common issues
The one thing to watch is separators. This node joins the two strings; if you want a comma-and-space between your fragments (which you almost always do for tag prompts), make sure one of your fragments ends with , - the combiner won't invent a delimiter you didn't provide, and two tag groups mashed directly together can produce a malformed tag at the seam. So end text1 with a trailing , and you're set. Beyond that, there's really nothing to break here.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| text1 | STRING | — | |
| text2 | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |