ComfyUI Node

Preview Prompt

See your prompt before you burn a render

By clouddreamfly·Created about a year ago·Updated 8 months ago· 4
Preview Prompt
    • text
    text

    You've assembled a prompt out of five builder nodes, translated it, combined it - and the only way to see the final string is to run the whole graph and pray. Preview Prompt fixes that. It's an output node that displays whatever text reaches it, right in the UI, without requiring a render. If you're building prompt pipelines, this is the node that tells you what you're actually about to send to the model.

    How it works

    In the source it's about ten lines: the text input is marked forceInput, so it must come from a wire - which is the point, you're previewing the end of a chain, not typing. The node is OUTPUT_NODE = True and declares OUTPUT_IS_LIST, and it returns the text to the UI for display while also passing it through as a text output. So it both shows you the string and lets you keep it in the graph - you can drop it inline in your chain and read the result without adding a dead-end branch.

    Inputs and output

    • text - a force-wired string from any upstream node (a Combine Prompt, a translator, a builder).
    • text - the same string, passed through, so the node is transparent if you wire it onward.

    Install

    ComfyUI Manager → Custom Nodes Manager → search ComfyUI-PromptWrapper → Install → restart, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/clouddreamfly/ComfyUI-PromptWrapper
    

    No dependencies, no models.

    Where people get burned

    The one gotcha is that it's not a normal text box - since text is force-input, you can't type into it; you have to wire a string into it (that's what the pack's Input Prompt node is for). Otherwise it's about as safe as a node gets. One honest nitpick: it's a display helper, so it's redundant once you've got the pack's Save Prompt writing files you can open - but for iterating on a prompt chain in the editor, the instant readout is worth having. The 50% click-through it gets on this site says people searching for it are looking for exactly this.

    CategoryPromptWrapper

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING