ComfyUI Node

String (Multiline)

A big text box for prompts you can route as a wire

By jamesWalker55·Created 3 years ago·Updated about a year ago· 215
String (Multiline)
    • STRING
    text

    This is the one you actually want for prompts. JWStringMultiline is a large, newline-friendly text box that outputs its contents as a STRING wire - same idea as JWString, but with room to write real multi-line text instead of a single cramped line.

    Why route a prompt through a separate node instead of typing it into CLIP Text Encode like everyone else? A few honest reasons. You might want the same block of text feeding two encoders (positive-adjacent variations, or a base description shared across a couple of samplers). You might want your prompt living in one obvious box at the top of the graph rather than buried in an encoder deep in the pipeline. Or you're assembling a prompt from pieces - a multiline base here, a trigger word there, glued together with a concat node. In all of those, having the text as a first-class wire is the point. It's classic utility-node territory: the node generates nothing, it just makes the workflow easier to lay out and reuse.

    How it works

    You type into the widget - Enter gives you a new line, because multiline is on - and the node outputs the whole block, newlines and all, as a single STRING. No formatting, no stripping of whitespace, no encoding. It's a text area with an output socket.

    The inputs and outputs that matter

    • text (STRING, multiline) - your text, default empty. This is the multi-line variant, so paragraphs, line breaks, and long prompts all work.
    • Output: STRING - the exact text on a wire. Feed it into a CLIP Text Encode's text input, a concat node, a save-path builder, anywhere a string is accepted.

    That's it. One box, one wire out.

    How to install it

    It's part of jamesWalker55/comfyui-various, a pack of small utility nodes.

    • ComfyUI Manager: search "Various ComfyUI Nodes by Type", install, restart. If the node came in red with someone's workflow, use Install Missing Custom Nodes.
    • Manually:
      cd ComfyUI/custom_nodes
      git clone https://github.com/jamesWalker55/comfyui-various
      
      Restart after. No models, no extra dependencies.

    Once loaded it's under the jamesWalker55 category - double-click the canvas and type "String (Multiline)."

    Common issues

    • It doesn't do anything to my image. Right - a STRING is just text. To turn this into a prompt the model can use, wire it into a CLIP Text Encode node; that's what converts text into the conditioning the sampler reads. JWStringMultiline only supplies the words.
    • No variables or wildcards. This is literal text - it won't expand {a|b} style wildcards, insert a seed, or pull in a date. For dynamic prompts you'd combine it with dedicated nodes (a wildcard pack, JWDatetimeString, JWStringConcat) rather than expecting substitution here.
    • Node shows up red. The pack isn't installed. Install via Manager or clone the repo and restart ComfyUI fully.

    If you only need a single short line - a filename prefix, a trigger word - the smaller JWString keeps the node tidier. Reach for JWStringMultiline when the text is actually a paragraph.

    CategoryjamesWalker55

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING