Light-Tool: Simple Connect Text Strings
Two strings, one delimiter, and a hidden batch superpower
- string1
- text
The minimal member of this pack's text family: string1 plus delimiter plus string2, joined into one text output. If you only ever need to concatenate two pieces of text - a prefix and a suffix, a base prompt and a style tag - this is simpler to read in a graph than the eight-input Text Connect, because there's nothing to ignore. And it hides one genuinely useful trick: if string1 arrives as a list, it joins each item individually with the same string2, so one node turns a whole batch of fragments into a batch of combined strings.
What you set
string1- wildcard (*) input, so it accepts strings or lists. Default empty.string2- plain string, multiline, default empty. (The two inputs are intentionally asymmetric: the batch behavior keys offstring1.)delimiter- the separator, default empty, so by default it's pure concatenation.
Output is a single text - a string when string1 was a string, a list when string1 was a list. That automatic pass-through is the feature most people don't notice: wire a list of prompts in and get a list of joined prompts out, no per-item nodes.
Where it fits
Fast, readable string assembly. Append , masterpiece-style suffixes to a batch of base prompts in one node. Bolt a filename prefix onto a list of output names. Combine a variable with a fixed fragment inline. When your graph needs exactly two parts, this node is easier to audit at a glance than the eight-slot version - fewer empty boxes to wonder about. Pair it with this pack's Input Text / Show Text nodes and you have a complete tiny text pipeline.
Installing it
Part of ComfyUI-Light-Tool by Hmily. ComfyUI Manager → search "ComfyUI-Light-Tool" → Install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/ihmily/ComfyUI-Light-Tool
pip install -r requirements.txt
# restart ComfyUI
Pure Python, no models, offline.
Where people get burned
- Batch only keys off
string1. Want to join a list against a list, or havestring2be the batch? This node won't do it - feed the batch intostring1and keepstring2fixed, or use Text Connect. - Empty delimiter means no separator. If you expected a space or comma by default, add it explicitly.
- Type confusion on the output. Because the output is wildcard-typed, what comes out depends on what went in. If a downstream node demands a strict
STRINGand you fed a list, you'll get a type error - check the wiring.
A small node that does one job cleanly, with a batch bonus most packs charge extra for. It won't impress anyone on paper; in a real graph it quietly saves you from reaching for a bigger hammer.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| string1 | * | — | |
| string2 | STRING | — | |
| delimiter | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | * | — |