Nodes/comfyUI-tool-2lab/output text 输出文字
ComfyUI Node

output text 输出文字

The 'return this' marker for a workflow2api graph

By AI2lab·Created 2 years ago·Updated 2 years ago· 23
output text 输出文字
    • STRING
    text

    Every program needs a return, and OutputText (2lab) is this pack's version of one. It takes a string in and pushes it out - but the real purpose is declared in its name and category: in a workflow2Api graph, this node marks what the endpoint hands back to whoever called it. Text in, text out, "this is the answer."

    Locally, it's a text passthrough with a terminal flavor. Feed it any STRING and it relays it. Where it earns its keep is as the contract of a workflow: if you're building a graph that ends in text - a prompt the workflow assembles, a translated string, a caption an LLM node wrote, a JSON-ish summary - dropping this node at the end tells anyone reading the graph (and, in the author's hosted design, the API layer) that this is the deliverable.

    How it works

    One required input, text - a STRING, usually wired from the last text-producing node in your chain.

    The output is also a string, with one notable detail: the schema marks it as a list (is_list: true). In practice that means it's structured to carry a collection of strings rather than a single one - which fits the API framing, where a single call might return several pieces of text (a prompt and its negative, a translation and the source, multiple caption variants). Feed it a list-capable source or treat the output as a list you can index or iterate downstream.

    So the honest summary: locally this node does what a wire already does, with the small bonus of explicit list handling. You wouldn't install a pack just for it. But if you're already using the pack's workflow2Api input nodes - the InputInt/InputText/InputImage family with their export flags - this is the matching terminal piece. Inputs declare what callers can change, and this declares what they get back. The pack never documents the hosted flow itself (the README is one word long), so you're inferring the design from the shape of the nodes, but the shape is consistent.

    Installing it

    From AI2lab/comfyUI-tool-2lab. ComfyUI Manager → search comfyUI-tool-2lab → Install → restart, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/AI2lab/comfyUI-tool-2lab
    

    Restart ComfyUI after. Nothing to download, no dependency fights - this whole pack is pure-python utilities from a Chinese dev whose nodes all carry 中文 labels. If you're assembling workflows that end in text and want the exit point to be obvious, this is your clean return statement.

    Category🦊2lab/workflow2Api

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING