Light-Tool: Input Text List
Four text fields, one list output — for batch prompt plumbing
- strings
Light-Tool: InputTextList is a text-input convenience node: up to four plain string fields, and the output is a single list of whatever you filled in. Empty fields are skipped. It's the "let me type four prompts at once" node, and its whole reason for existing is to feed list-processing nodes downstream.
That output being a list is the entire point. ComfyUI's batch-oriented tooling increasingly accepts a list of strings where a single string used to go - a list of prompts to iterate over, a list of tags, a list of filenames. Most workflows achieve this with awkward per-item nodes or by manually batching; this node gives you a clean, human-readable input surface for it.
How it works
The implementation is short and exactly what it looks like: gather the four optional string inputs, keep the non-empty ones, and return them as a list. It's marked as an output node (it shows up in the node tree as a terminal that displays its result), so you can see exactly what list your inputs produce without extra plumbing.
One behavior worth knowing: the output only contains the fields you actually filled in. Leave string_2 blank and the list is ["value1", "value3", "value4"] - no empty-string placeholders. If you need positional integrity (a fixed-length list where every slot exists), this node will fight you, and you'd be better off assembling the list yourself.
The inputs
All four inputs are optional strings, so the node works with just one:
- string_1 … string_4 - plain text fields. Any combination filled in, in any order.
Output: strings, a list of the filled values.
Where it earns its keep
This is a "batch prompt" node in the best sense. Hook it up to a text-line iterator or a LoRA-stack router and you can type a handful of variations and run them in sequence. It pairs naturally with the rest of this pack's text tools - run each list item through TextReplace for a pattern, or pass the list into any downstream node that accepts string lists for per-item processing.
The honest caveat: if you're doing serious prompt scheduling, dedicated packs with more routing muscle exist. This node is for the 80% case - you want four-ish prompts or tags, typed by hand, consumed as a list, with zero setup. It does that cleanly and gets out of the way.
Install
Standard pack route: ComfyUI Manager → search ComfyUI-Light-Tool → Install, or:
cd ComfyUI/custom_nodes
git clone https://github.com/ihmily/ComfyUI-Light-Tool.git
pip install -r requirements.txt
Restart, and it's under ComfyUI-Light-Tool → Text. No models, no dependencies beyond the pack's standard numpy/Pillow stack.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| string_1opt | STRING | — | |
| string_2opt | STRING | — | |
| string_3opt | STRING | — | |
| string_4opt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| strings | * | — |