ComfyUI Node Runs on cloud

Text Box

The multiline text/prompt node in Derfuu's pack

By Derfuu·Created 3 years ago·Updated 2 years ago· 455
Text Box
    • STRING
    Text

    A multiline text field that outputs a string. You type your prompt into it and it feeds that text wherever you wire the output. It's the current name for Derfuu's text node - if you've seen it as plain Text box in an older workflow, that's the same node before the pack picked up its DF_ class prefix.

    It belongs to Derfuu_ComfyUI_ModdedNodes, a utility pack for people who like to build workflows out of small reusable pieces.

    What it's for

    The value over typing directly into a CLIP Text Encode is separation. Keeping your prompt text in a dedicated, labeled node means one text source can feed multiple encoders, and anyone opening your workflow can find and edit the prompts without digging through encoder internals. In a large graph that readability is the entire benefit.

    How it works

    One widget, Text (STRING, multiline), one STRING output. The multiline box handles long prompts with line breaks comfortably. Wire the output into a CLIP Text Encode, a string operation, or anything downstream that takes text.

    From here it composes nicely with the pack's other string tools: assemble a prompt from fragments with String Concatenate, or check it for a keyword with Search In Text and branch on the result.

    An honest placement

    Text/string nodes are the single most duplicated primitive in the ComfyUI ecosystem - core ComfyUI has one, so do rgthree, WAS Node Suite, KJNodes, and basically every utility pack. They're interchangeable; pick whichever your workflow already has installed. DF_Text_Box is a perfectly good one, it's just not distinctive. If you specifically want dynamic-prompt wildcard syntax ({a|b|c}), that's a different node in this pack - the DynamicPrompts Text Box - not this plain one.

    Common issues & troubleshooting

    A workflow expects Text box (with spaces) and shows red. That's the pre-rename class. Derfuu has a documented pattern of deleting old node classes on pack reorganizations instead of leaving them deprecated, so old graphs break. Replace the red node with this current DF_Text_Box and re-wire - or swap in any other string node, they all behave the same.

    ModuleNotFoundError: No module named 'custom_nodes.Derfuu_ComfyUI_ModdedNodes'. An old workflow referencing a module path that shifted during a reorg. Update the pack via Manager, reload the graph, replace the stale node.

    Wildcards print literally. This is the plain text box; it doesn't expand {red|blue}. Use the pack's DynamicPrompts Text Box for that.

    Install: ComfyUI Manager → search "Derfuu" → install → restart, or cd ComfyUI/custom_nodes && git clone https://github.com/Derfuu/Derfuu_ComfyUI_ModdedNodes then restart. No models, no heavy dependencies - pure Python.

    CategoryDerfuu_Nodes/Variables

    Inputs (1)

    NameTypeDefaultDescription
    TextSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING