Nodes/Skoogeer-Noise/Join Text List
ComfyUI Node

Join Text List

See the whole prompt list, not just the first line

By ttulttul·Created 9 months ago·Updated 3 months ago· 14
Join Text List
    • joined_text
    • count
    text_items
    separator\n

    Join Text List exists to fix one genuinely annoying ComfyUI quirk: when a node outputs a list of strings, the built-in Preview as Text shows you only the first item. If your Mustache Template just rendered twenty prompt variations, you're looking at prompt one and praying the rest are fine. This node joins them all into a single string so the preview shows the whole batch.

    It's the smallest node in the Skoogeer-Noise pack, and honestly it has nothing to do with noise - the pack is a grab bag, and the mustache templating half shipped alongside the procedural-noise half. Don't let that confuse you: this node is just a debug helper for text lists.

    How it works

    It takes a list-valued STRING input, inserts your chosen separator between every item, and outputs the concatenated result plus a count. The separator defaults to \n and escape sequences like \r and \t are decoded, so a separator of \n===\n gives you neat section breaks between prompts.

    Two inputs, two outputs - that's the whole node:

    • text_items - the list of strings. Plug a Mustache Template (or any list-valued string output) in here.
    • separator - what goes between items. Default \n is fine for reading; use \n===\n for visual grouping.
    • joined_text (STRING) - everything joined, ready for a preview node.
    • count (INT) - how many strings were joined. Handy if you want to check "did the sampler actually expand to 6 prompts" before running a 6-image batch.

    Typical wiring:

    Mustache Template -> Join Text List -> Preview as Text
    

    Installing it

    It ships in the Skoogeer-Noise pack. ComfyUI Manager: search "Skoogeer-Noise", install, restart. Or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/ttulttul/Skoogeer-Noise
    # restart ComfyUI
    

    Just the pack's standard dependencies (torch, numpy, einops, pyyaml) - nothing extra, nothing to download.

    Gotchas

    • It doesn't turn a list into a batch of images. That's not what this does. If your goal is to feed each rendered prompt to its own sampler run, you don't need this node at all - ComfyUI already maps list-valued outputs across downstream executions. Join Text List is purely for inspecting the list.
    • count can surprise you. If your template had no placeholders, the list still gets one entry per variable-set - join still reports that count, which is exactly the diagnostic you want when a permutation exploded to 100 prompts.
    • If a text preview still shows just one line after wiring this up, double-check you're reading the joined_text output and not the raw list socket.
    Categorytext/debug

    Inputs (2)

    NameTypeDefaultDescription
    text_itemsSTRINGList of text values to join into a single previewable string. Connect a list-valued STRING output such as Mustache Template here.
    separatorSTRING\nSeparator inserted between each text item. Escape sequences like \n, \r, and \t are decoded, so values like \n===\n work as expected.

    Outputs (2)

    NameTypeDescription
    joined_textSTRING
    countINT