ComfyUI Node

List Append

List Append — comfyui_LLM_party

By heshengtao·Created 2 years ago·Updated 7 days ago· 2,321
List Append
  • any1
  • any2
  • any3
  • list

This is the node you reach for when something downstream wants a LIST and all you've got is three loose values sitting on the graph. It's not glamorous, but half of building an LLM agent workflow is plumbing, and this is plumbing.

comfyui_LLM_party leans hard on lists internally - tool collections, message histories, batches of documents - and a lot of its nodes expect a LIST type on an input rather than a single value. List Append is the simplest possible bridge: it takes up to three inputs, each typed as a wildcard (*) so it'll accept literally anything ComfyUI can output - strings, images, other nodes' custom types, whatever - and appends them as individual elements into a single output list. Think of it as Python's list.append() called three times in a row, expressed as a node.

All three inputs - any1, any2, any3 - are optional, so you can use just one or two slots and leave the rest empty; it'll build a list from whatever's actually connected. The single output is list, typed LIST, and that's what you wire into whatever expects a list - a tool aggregator, a batch processor, one of this pack's memory or combine nodes further down the chain.

The thing worth knowing before you reach for this one is what it's not: it doesn't merge existing lists together. If you've already got two LIST-typed outputs from elsewhere in your graph and you want them combined into one, that's a different node in this same category - List Extend - which takes LIST inputs and flattens them into one list, rather than taking individual items and appending each as its own element. Mixing the two up is the single easiest mistake here: plug a list into any1 on this node and you'll get a list containing a list as one element, not a merged list. If your downstream node is choking on nested data it didn't expect, that's usually why.

Installing it. List Append comes bundled with the rest of comfyui_LLM_party - there's no separate install. Get the pack via ComfyUI Manager (search "comfyui_LLM_party" and install) or manually with cd ComfyUI/custom_nodes && git clone https://github.com/heshengtao/comfyui_LLM_party, then run pip install -r requirements.txt from inside the project folder using your ComfyUI Python environment, and restart ComfyUI. This is a pure-Python utility node with no model files and no third-party dependency of its own, so if the rest of the pack loaded fine, this node loaded fine - there's genuinely nothing pack-specific to troubleshoot for a node this small. If it's missing from the node list entirely, the fix is the same as for any missing node from this pack: check the ComfyUI console log for an import error thrown somewhere else in the project, since this pack's requirements.txt is large enough that a single failed dependency can take the whole node set down with it, not just the node that actually needed that dependency.

Category大模型派对(llm_party)/组合(combine)

Inputs (3)

NameTypeDefaultDescription
any1opt*
any2opt*
any3opt*

Outputs (1)

NameTypeDescription
listLIST