Nodes/WeiLin-ComfyUI-prompt-all-in-one/WeiLin Positive Prompt To String
ComfyUI Node

WeiLin Positive Prompt To String

A prompt box that only looks like a passthrough

By weilin9999·Created 2 years ago·Updated about a year ago· 256
WeiLin Positive Prompt To String
    • 正向 STRING
    positive

    This node looks like the laziest thing in the pack - a text box in, a string out, no settings, no model, nothing. That's the point. The entire "prompt all in one" value lives in the box itself. This is where the pack's WebUI-style prompt editor attaches, and the node's only job is to hold that editor and hand a clean string to the rest of your graph.

    What it is

    A STRING passthrough. The Python is literally return (positive,) - it does no processing at all. What it does carry is the front end: danbooru-style tag autocomplete (borrowed from ComfyUI-Custom-Scripts), tag group toggling, translation, and a visual tag editor that opens in an iframe when you hit the "打开可视化PromptUI" button on the node. That editor is a port of Physton's famous sd-webui-prompt-all-in-one extension, the thing a lot of A1111 refugees miss most. It edits your prompt and writes the result back into the box; the node just ships it onward.

    Why you'd reach for it

    If you came from A1111 or Forge, the habit of building a prompt as a toggleable tag list is deeply wired in. In stock ComfyUI the prompt is a plain multiline text field, and a long anime-tag prompt becomes a wall of commas you have to edit blind. Drop this node in, and the box behaves like the WebUI prompt editor you remember: autocomplete as you type, click to toggle tags on and off, translate between languages, even a local LLM that continues your prompt where you stopped.

    That last one is fiddly - the model is a qwen1_5-4b-chat-q2_k.gguf the README hosts on a Chinese netdisk (Quark), which is genuinely painful to download outside China. Skip it; the editor works perfectly without the LLM.

    Inputs and outputs

    One input, positive (a multiline string). One output, 正向 STRING - that's "positive STRING", and yes, the output name is Chinese for everyone regardless of your language setting. Wire it into the positive slot of a CLIPTextEncode, or any node that takes a text prompt. That's the entire wiring diagram.

    Installing

    ComfyUI Manager → Custom Nodes Manager → search WeiLin-ComfyUI-prompt-all-in-one → Install → restart. Or, manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/weilin9999/WeiLin-ComfyUI-prompt-all-in-one
    

    On first start the pack pip-installs gradio and ruamel.yaml by itself and prints a bunch of startup banner lines - that's normal, let it finish.

    Where people get burned

    • The pack is dead. The README's opening line says it no longer accepts feedback or updates; the author points to the successor, WeiLin-Comfyui-Tools, which is not node-compatible (though your tag data can migrate). Install it knowing you're on a frozen snapshot that still works fine.
    • The UI is Chinese-first. The author's localization effort is real - node names do switch to English - but buttons, tooltips and settings lean heavily on Chinese, and the output port names stay Chinese for everyone. It's usable, just not pretty.
    • You don't need it for a plain string. If you're not going to use the tag editor, core ComfyUI text boxes do the same job with fewer moving parts. This node is only worth the dependency baggage if you actually edit tag-heavy prompts - mostly anime/SDXL-lineage work, where that editing workflow genuinely pays off.

    The community noticed the same split this node lives in: it's a small, useful thing that most people never hear about, because it's a ComfyUI port of a WebUI extension that arrived after the migration wave already peaked.

    CategoryWeiLin Nodes (WeiLin节点)

    Inputs (1)

    NameTypeDefaultDescription
    positiveSTRING

    Outputs (1)

    NameTypeDescription
    正向 STRINGSTRING