Input: String (lab)
The boring string node every workflow needs once
- string
Input: String (lab) is the most unglamorous node in the whole ComfyLab Pack, and that's fine. One text field in, one string out, no conversion, no file loading, no comment stripping. It exists because ComfyUI workflows constantly need a single value that several other nodes all read - a base seed, a shared filename stem, a prompt prefix - and typing the same thing into five different widgets is how workflows rot.
What it actually is
The string input is a plain single-line text box, and the node passes it straight through as the string output. That's the entire mechanism; the source code is basically a passthrough. Don't go looking for hidden features, there aren't any.
The value here is structural, not functional. Give the node a clear title, and it becomes the single source of truth for one value in your graph. When you want to change that value, you change it in one place. That's a real quality-of-life win when you're wiring a string into the filename of a Save Image node and the CFG scaling math at the same time.
When you'd reach for it (and when you wouldn't)
Use it when a value genuinely needs to be shared or kept prominent. Skip it when you're just typing one string into one widget - the built-in widget is right there, and adding a node to bounce a value back at you is noise.
It's also the single-line sibling of the pack's Input: Multiline (lab). If your text has multiple lines, that's the node; if it's one line, this one's cheaper on canvas space. Honest take: there are dozens of near-identical string nodes across other packs (every utility pack ships one), so if you already run a pack with a string provider you like, this isn't a reason to switch. But if you're building on ComfyLab's list/format/XY-plot tools, having the native one keeps the family consistent - and it plays cleanly with the pack's Format: String (lab) and Convert to Any (lab) when you want to pipe a string somewhere expecting *.
Install
It comes with the whole pack, so you're installing ComfyLab Pack either way. ComfyUI Manager: search ComfyLab Pack. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/bugltd/ComfyLab-Pack.git
cd ComfyLab-Pack
pip install -r requirements.txt
Restart ComfyUI after installing. No model downloads, light dependencies (the pack's one notable install is opencv-python). And that's the whole article - this node is simple, and it's supposed to be.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| string | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| string | STRING | — |