ComfyUI Node

String

A text box that stays text, even in a big graph

By adrianschubek·Created about a year ago·Updated about a year ago· 1
String
    • string
    value

    Text is where ComfyUI gets sloppy. A prompt box gives you a string, a filename node wants a string, a metadata writer wants a string - and then someone wires an integer into the middle of it and the graph silently does the wrong thing. ZeugStr is the boring fix: a multiline text input that only ever outputs a string.

    What it is

    ZeugStr lives in the zeug → Values menu. Its one input, value, is a STRING with a multiline widget (default empty), and its output is a typed string. Type a prompt, a filename base, a style tag, whatever - it comes out the other end unchanged. The node's string_value function is a straight pass-through; the entire personality is in the type contract.

    When you'd reach for it

    Anywhere you want a shared text value that several nodes read from, or a text input that's guaranteed to be text. Examples:

    • One ZeugStr holding your base prompt, feeding the positive conditioning, a metadata saver, and a filename builder at once.
    • A filename prefix that you can edit in one place instead of inside a save node's cramped widget.
    • Any spot where you're building strings from parts and want a clean anchor before you start joining.

    It pairs naturally with the pack's conversion and transform nodes: take ZeugStr output, run it through ZeugJoinStr or ZeugSplitStrList, and you've got a tiny text pipeline without installing a dedicated text-suite pack. For beginners, that's the real selling point - you get string handling without adopting a 200-node dependency.

    How it works

    Pass-through, full stop. The multiline flag is the one meaningful setting: unlike the single-line convert nodes, ZeugStr gives you a proper text area so you can paste in a long prompt or a chunk of tags and keep them readable. Whatever's in the box is what flows out.

    How to install it

    It ships in the comfyui-zeug pack (German for "gear" or "stuff"), a small GPL-3.0 collection by Adrian Schubek:

    • ComfyUI Manager: search zeug in the Custom Nodes Manager, install ComfyUI-Zeug.
    • Manual:
    cd ComfyUI/custom_nodes
    git clone https://github.com/adrianschubek/comfyui-zeug
    

    Restart ComfyUI after. Zero dependencies, no model files, nothing to download - just a folder in custom_nodes and a restart. Given how many ComfyUI installs turn into dependency marathons, that's a genuine comfort.

    Common issues

    The one thing that trips people up is wiring this into a node that expects a non-string type. ZeugStr is aggressively a string - feed it into an INT or FLOAT input and the connection will fail or behave oddly. That's not a bug; it's the type discipline doing its job. If you have text that's actually a number (say, "512" out of a text field), run it through ZeugStrToInt or ZeugStrToFloat to convert deliberately instead of hoping ComfyUI reads your mind.

    Otherwise there's nothing to troubleshoot. It's a text box. The hardest part of using it is remembering it exists.

    Categoryzeug/values

    Inputs (1)

    NameTypeDefaultDescription
    valueSTRING

    Outputs (1)

    NameTypeDescription
    stringSTRING