String Box
A plain single-line string input for when ComfyUI's primitive acts up
- text
The smaller, more cooperative cousin of Text Box
String Box (ETStringBoxNode) is a single-line string input from the Info Utils pack. You type a value, it comes out the other side unchanged. Nothing is done to it - it exists because the author hit a real annoyance and fixed it with a dozen lines of code.
The class docstring says it best: "A string primitive node. Useful for any type inputs where the official primitive nodes don't work as expected." If you've used ComfyUI's built-in Primitive node, you know it's a multipurpose widget - useful, but it has a tendency to misbehave in certain spots, especially when some custom node expects a STRING socket that the primitive doesn't like to feed. String Box sidesteps all of that: one input, one output, no personality.
How it works
The node takes a single required input, value (STRING, default empty) and outputs it as text (STRING). Its process method passes the value straight through. So the flow is:
value (type in the box) → text (wire it anywhere a STRING is expected)
The difference from its sibling Text Box is intentional: Text Box is multiline (built for long prompts), String Box is single-line (built for short values like filenames, tags, a model name, or a path). The single-line widget stays compact on the canvas, which is nice when you have a graph full of them.
How to install it
It ships in Info Utils (exectails/comfyui-et_infoutils) - no extra dependencies, no model files. Install via ComfyUI Manager by searching "Info Utils", or:
cd ComfyUI/custom_nodes
git clone https://github.com/exectails/comfyui-et_infoutils
Restart ComfyUI, then find String Box under exectails/Info in the node menu.
Where it actually helps
Honestly, if the official primitive has been fine for you, you can skip this node - it's a fix for a specific gripe, not a must-install. But two situations make it worth reaching for:
- Stubborn custom nodes. Some packs have STRING inputs that fight with the built-in primitive. String Box usually satisfies them without drama.
- Single-value cleanup. When you want a small, unambiguous text field for one short string and don't want a giant multiline box or a primitive with widgets you'll never touch.
One honest caveat: the output is a plain STRING, so wire it to STRING sockets only. For numbers you want the pack's Int Box instead.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |