Nodes/Text Gen Nodes/Refine Text
ComfyUI Node

Refine Text

Sit between an upstream text node and downstream consumers to capture the upstream text into an editable multiline field. With lock off the node passes the upstream input through and repopulates the widget after each run. The lock flips on automatically the moment you type in the widget; while locked, the widget value is output and the upstream input is ignored. Untick lock to resync from upstream.

By cora-clanker·Created 3 months ago·Updated 3 months ago· 0
Refine Text
    • text
    lockfalse
    edited_text
    text
    Categorytext

    Inputs (3)

    NameTypeDefaultDescription
    lockBOOLEANfalseWhen on, output the edited text below instead of the upstream input. Auto-engages when you type in the widget.
    edited_textSTRINGEditable copy of the upstream text. Auto-populated after each run while unlocked; freely edited while locked.
    textoptSTRINGUpstream text. Socket-only; wire from Prompt Enhancer or any string source.

    Outputs (1)

    NameTypeDescription
    textSTRING