Nodes/ComfyUI-Light-Tool/Light-Tool: Simple Connect Text Strings
ComfyUI Node

Light-Tool: Simple Connect Text Strings

Two strings, one delimiter, and a hidden batch superpower

By ihmily·Created 2 years ago·Updated 4 months ago· 20
Light-Tool: Simple Connect Text Strings
  • string1
  • text
string2
delimiter

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 off string1.)
  • 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 have string2 be the batch? This node won't do it - feed the batch into string1 and keep string2 fixed, 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 STRING and 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.

CategoryComfyUI-Light-Tool/Text

Inputs (3)

NameTypeDefaultDescription
string1*
string2STRING
delimiterSTRING

Outputs (1)

NameTypeDescription
text*