Nodes/ComfyUI-iTools/Text Preview
ComfyUI Node

Text Preview

A print statement for your STRING outputs

By MohammadAboulEla·Created 2 years ago·Updated 11 days ago· 237
Text Preview
    • text
    text

    The simplest node in the pack, and arguably one of the most quietly useful: wire a STRING into it, and it shows you the text. That's the whole feature. ComfyUI's graph is easy to reason about visually but genuinely opaque when it comes to what's actually flowing through a string wire - this node is the fix, the equivalent of dropping a print statement into code to see what a variable actually holds mid-execution.

    Why you'd reach for it

    Almost every text-producing node in this pack is worth inspecting at least once before you trust it blindly: Prompt Styler's used_template output when you've left template selection on random, Load Image Plus's possible prompt when you're not sure the metadata search actually found anything, iTools KSampler's INFO settings string before you burn it onto an image with Add Text Overlay. Rather than guessing whether a wire is carrying what you think it is, or building out a whole downstream chain just to find out something upstream was empty, drop this node on the wire and look.

    How it works

    There's nothing more to the mechanism than reading a STRING and displaying it. It doesn't transform, validate, or reformat the text - it's a pure inspection point.

    The inputs and outputs that matter

    • text - the STRING to display. Typically wired from another node's output rather than typed by hand, since the point is inspecting something already flowing through your graph.

    Output: text - the same content, passed through, so you can keep this node in the middle of a chain for debugging without breaking the graph. It's marked as a list-capable output, so it'll display multiple strings if what's feeding it produces more than one at once, rather than only handling a single value.

    Installing it

    Via ComfyUI Manager: search "iTools" or "ComfyUI-iTools," install, restart. Manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/MohammadAboulEla/ComfyUI-iTools
    

    then restart. No dependencies beyond the base pack - there's nothing here to install specially.

    Troubleshooting

    Nothing shows up in the node. Check that something is actually wired into text - an unconnected input, or one wired to a node that hasn't run yet in the current queue, will just show blank. This node only displays what actually executed, not a live preview of an unconnected socket.

    Text looks truncated or cut off. If you're piping in something long - a full assembled prompt, or a KSampler INFO string with several settings packed in - the node's display area may not resize to show all of it comfortably. Resize the node itself on the canvas if the text is being clipped.

    You expected multiple lines and only got one. Since the output is list-capable, if your upstream node is producing a batch of strings rather than one, make sure you're actually looking at all of them and not just the first entry rendered - check whether the node's UI is scrollable or paginated for multi-item output before assuming the rest got dropped.

    You want to do something with the text, not just look at it. This node is read-only by design - it passes the text through unchanged. If you need to actually save what you're inspecting, wire the same source into Prompt Saver alongside this one rather than expecting Preview Text to do double duty.

    CategoryiTools

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING