ComfyUI Node

YC text box

Just a text box — the node you didn't know you wanted

By yichengup·Created 2 years ago·Updated 4 months ago· 48
YC text box
    • text
    texttext

    This is a text box. One input field, one STRING output, no processing, no options. It's the kind of node that feels pointless until you realize half your graph's clutter is text you've typed inline into a dozen different nodes, and you want one shared box that every consumer reads from. Wire YC_SingleTextNode's output to several prompts, a filename, and a caption at once, and you've got a single place to change a value that flows everywhere. That's the whole game.

    How it works

    There's genuinely nothing to explain mechanically - process_text returns the string unchanged. The value is in the plumbing: it's a multiline field, so it holds long prompts comfortably, and it exposes a standard STRING output you can branch to as many destinations as you like. Unlike a fixed widget, you can also feed into it from other nodes, turning it into a pass-through or a place to inspect an intermediate string mid-graph. Keep that in mind - a text box you can also read is more useful than it sounds.

    Inputs and output

    • text - multiline string, default "text". Type your prompt, note, filename prefix, or whatever.

    Output is text, a single STRING.

    Where it slots in

    The genuinely useful pattern is the "global prompt" box: one node at the top of the workflow, its output split to a CLIP text encode (positive), a metadata field, and a YC_Image_Save caption input. Change the prompt once, every consumer updates. It's also handy as an intermediate inspector when you're debugging a chain of text-manipulation nodes - drop it after a formatter, see what actually came out, and the multiline display makes long strings readable.

    It duplicates core ComfyUI's Text Multiline node almost exactly. If you're not already running this pack, you don't need to install anything for this. If you are running the pack (for the image-combination nodes, say), using this one keeps the graph's node set uniform and means one fewer pack in your load. That's a fair trade for a node whose entire job is being boring.

    Installing it

    Part of ComfyUI-YCNodes. ComfyUI Manager → search ComfyUI-YCNodes → install, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/yichengup/ComfyUI-YCNodes
    

    Restart, then look under YCNode/Text. No dependencies beyond the standard library.

    Gotchas

    The one thing that trips people up: because the output is a plain STRING and the node doesn't force an input connection, you can't always tell at a glance whether a downstream node is reading this value or its own inline text. If you change the box and nothing updates, check whether the consumer actually has a wire into it. That's a ComfyUI-wide confusion, but this node is pure enough that it's the only failure mode available - which, honestly, is the best you can say about a text box.

    CategoryYCNode/Text

    Inputs (1)

    NameTypeDefaultDescription
    textSTRINGtext

    Outputs (1)

    NameTypeDescription
    textSTRING