String
A single-line text box you can reuse across a workflow
- STRING
JWString is the simplest text node in the pack: one line of text in, the same line of text out on a STRING wire. No prompt encoding, no CLIP, no magic - just a value you can define once and route wherever a string is needed.
Where it earns its place is anywhere you'd otherwise repeat the same short piece of text. A filename prefix. A trigger word you want to prepend to several prompts. A folder name shared by a load node and a save node. Define it once in a JWString, wire it out, and now there's a single source of truth instead of three widgets you have to keep matching by hand. This is the plumbing side of ComfyUI - nodes that don't generate anything, they just keep a growing graph honest. Small, unglamorous, genuinely useful.
How it works
You type text into the widget and the node outputs that exact string. It's single-line - press Enter and nothing happens, because line breaks aren't the job here. (If you want a paragraph with newlines, that's JWStringMultiline instead.) There's no transformation, no trimming, no interpolation. What you type is what comes out.
The inputs and outputs that matter
text(STRING) - your line of text, default empty. This is a single-line field (multiline: false).- Output:
STRING- the same text on a wire, ready for any string socket: a filename input, a path node, a concat node, a prompt box that accepts a string connection.
That's the full node. One input, one output.
How to install it
JWString ships in jamesWalker55/comfyui-various, a collection of small utility nodes.
- ComfyUI Manager: search "Various ComfyUI Nodes by Type", install, restart. Loaded someone's workflow and it's red? Install Missing Custom Nodes will grab it.
- Manually:
Then restart. Nothing to download, no dependencies.cd ComfyUI/custom_nodes git clone https://github.com/jamesWalker55/comfyui-various
Find it afterward under the jamesWalker55 category, or double-click the canvas and type "String."
Common issues
- You wanted multiline and got one line. JWString is deliberately single-line. If you're writing an actual prompt with line breaks, use JWStringMultiline - it's the same idea with a bigger, newline-friendly box.
- It won't plug into my prompt. JWString outputs a raw STRING, not a CONDITIONING. To use it as a prompt you still need a text-encode node (CLIP Text Encode) between JWString and the sampler - this node feeds the text, the encoder turns text into conditioning.
- Node is red / not found. The pack isn't installed. Install through Manager or clone the repo, then restart ComfyUI fully.
One thing to hold onto: this is a plain constant. It doesn't do variable substitution, doesn't pull in a date, doesn't randomize. If you need "insert today's date" or "glue two strings together," reach for JWDatetimeString or JWStringConcat and wire them together - JWString is just the box that holds the literal text.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |