Nodes/WextraUI/Extract Tag from list
ComfyUI Node

Extract Tag from list

A one-index string picker that's legacy now

By sickbraintwo·Created 12 months ago·Updated 2 days ago· 0
Extract Tag from list
  • tag_list
  • Single Tag
  • Console Log
index0

Honest opening: "Extract Tag from list" (Tag) is a retired node. WextraUI shuffled it into src/legacy/ on 4 September 2026, when the pack renamed to the W prefix and folded its early LoRA helpers into one node. Install the current WextraUI and it won't register. So if you found this page, you're almost certainly holding an old workflow - and the useful question isn't "how do I drive this node," it's "what did it do and do I still need it."

What it did

A pure index lookup on a list of strings. It took:

  • tag_list (LIST of STRINGs) - the pile to pick from
  • index (INT, 0–400, default 0) - which one you want
  • Outputs: Single Tag (STRING) - the item you picked - and Console Log (STRING), a numbered dump of the whole list for display.

It was marked as an output node, so it always executed. Its original role in the pack was LoRA tag roulette: a list of training tags or trigger words came out of the pack's LoRA-info helper, and you'd dial an index to pull one string you wanted to drop into the prompt. Today that whole flow lives inside WLoad Lora & Trigger, which hands you the same shape (tags_list, civitai_list) and lets you click the chips instead of counting.

The quirks the code actually has

I ran the shipped source, and there are two behaviors worth knowing before you trust it in an old graph:

  • An out-of-range index crashes the run. The function tries to write "Error: Index out of bounds" to the log, but a missing variable assignment means it throws UnboundLocalError first - so execution just fails. Keep index strictly below len(tag_list).
  • An empty list is fine - you get an empty string out and Tot tag: 0 in the log.

The Console Log output is just text; wire it into a Show Anything or Show Text node to actually see the numbered list (0 : tag0, 1 : tag1, …), because STRING outputs don't paint themselves onto the canvas.

Do you even need it?

Probably not, and this is the part where I'd talk you out of it. Picking one string out of a list by number is something core ComfyUI list utilities and any text/index node already do, and if you're choosing a trigger word once, you just type it. The node earned its keep only in index-driven automation - stepping through a list of tags run after run, or wiring an index computed elsewhere into a selection. That's a narrow job, which is presumably why the author folded it away.

Install

The pack installs the usual way - ComfyUI Manager, search WextraUI, or:

cd ComfyUI/custom_nodes
git clone https://github.com/sickbraintwo/WextraUI

No extra dependencies, restart ComfyUI, done. But remember the catch: the current release won't list this node. If you're restoring an old workflow that references Tag, you'd need a pre-4-September-2026 commit of the pack or a manual re-register of src/legacy/tag.py. For new work, WLoad Lora & Trigger and core ComfyUI have you covered - skip the archaeology.

CategoryWextraX

Inputs (2)

NameTypeDefaultDescription
tag_listLIST
indexINT00–400

Outputs (2)

NameTypeDescription
Single TagSTRING
Console LogSTRING