List Extend
List Extend — comfyui_LLM_party
- list1
- list2
- list3
- list
If List Append is for turning loose values into a list, List Extend is for the next problem you hit: you've already got two or three separate lists on the graph and you need them flattened into one. This is the pack's answer to Python's list.extend() - merge, don't nest.
That distinction is the entire reason this node exists as a separate thing from List Append rather than the same node with more slots. comfyui_LLM_party builds agent workflows out of tool lists, document collections, and message histories, and it's common to end up with several of those built up in parallel branches of a graph - one list of tools from your knowledge-base nodes, another from your search/weather nodes - that need to become a single list before they hit whatever's consuming them, usually an agent or LLM node's tools input. Feed those separate lists into List Extend and you get one flat LIST out, with every element from every input list sitting at the same level, rather than a list of lists.
Inputs and output. All three inputs - list1, list2, list3 - are optional and typed LIST, so use as many as you actually have; leave the rest disconnected. The single output is list, also typed LIST. That's it - no chunk size, no dedup, no sort. It concatenates what you give it and hands back the result.
The gotcha worth flagging before you build around this: the inputs here are typed LIST, not the wildcard * that List Append uses. Plug a single loose value - a string, an image, whatever - directly into list1 and it won't work the way it does on List Append; this node expects each input to already be a list. If you're trying to combine raw values rather than existing lists, you want List Append instead, and if you've got more than three lists to merge, this pack also ships a Large List Extend node built for exactly that, with ten input slots instead of three - worth knowing it exists rather than chaining two List Extend nodes together to get past the three-slot limit.
Installing it. List Extend is part of the standard comfyui_LLM_party install - there's no separate step for it specifically. Install the pack through ComfyUI Manager (search "comfyui_LLM_party") or manually with cd ComfyUI/custom_nodes && git clone https://github.com/heshengtao/comfyui_LLM_party, then pip install -r requirements.txt from inside the project folder using your ComfyUI Python environment, and restart. It's a plain utility node with no external service or model file behind it, so on its own it has nothing to misconfigure. If it's missing after install, the cause is essentially always somewhere else in the pack's large dependency list failing to import and taking the whole node set down with it - check the ComfyUI startup console for the actual error rather than assuming this specific node is at fault.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| list1opt | LIST | — | |
| list2opt | LIST | — | |
| list3opt | LIST | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| list | LIST | — |