Nodes/comfyui_gr85/Tag Injector Large
ComfyUI Node

Tag Injector Large

Ten placeholders, and two of them do nothing by default

By veighnsche·Created 2 years ago·Updated 8 months ago· 1
Tag Injector Large
    • tagged_text
    • placeholders
    templateIn a __location__ under a __weather__ sky, a __personality__ person shows __emotion__ while wearing __style__. The __time__ is perfect for a __action__ amidst __mood__.
    tag_1
    tag_2
    tag_3
    tag_4
    tag_5
    tag_6
    tag_7
    tag_8
    tag_9
    tag_10
    tag_name_1location
    tag_name_2color
    tag_name_3object
    tag_name_4emotion
    tag_name_5weather
    tag_name_6personality
    tag_name_7time
    tag_name_8action
    tag_name_9style
    tag_name_10mood

    Large is the biggest of the pack's tag-injector family - ten swappable placeholders instead of Single's one, Duo's two, or the base Tag Injector's three - and the README frames it plainly: "a larger template that injects multiple semantic placeholders such as __location__, __weather__, __style__, etc." It ships with a genuinely elaborate default template to demonstrate the idea: "In a __location__ under a __weather__ sky, a __personality__ person shows __emotion__ while wearing __style__. The __time__ is perfect for a __action__ amidst __mood__."

    How it works - same mechanism as the rest of the family, just wider. Write (or use the default) template string full of __placeholder__ markers, supply up to ten values through tag_1tag_10, and name each one via tag_name_1tag_name_10. The node swaps every matching named placeholder in the template for its value.

    A real gotcha worth flagging, straight from the schema. The ten tag_name defaults are location, color, object, emotion, weather, personality, time, action, style, mood. But count the placeholders actually present in the shipped default template - location, weather, personality, emotion, style, time, action, mood - that's only eight. color (tag_name_2) and object (tag_name_3) have no matching __color__ or __object__ anywhere in the default template text. Wire values into tag_2 or tag_3 out of the box and they'll do precisely nothing until you actually add __color__ and __object__ somewhere in your own template. This isn't a bug in the node - the tag names and the default template just aren't fully in sync - but it's exactly the kind of mismatch that costs you ten minutes wondering why two of your ten inputs seem to be ignored.

    Inputs and outputs. template (required, multiline, defaults to the eight-placeholder sentence above). tag_1tag_10 (optional multiline strings) and tag_name_1tag_name_10 (optional strings, the ten defaults listed above). Outputs: tagged_text (the result) and placeholders (undocumented beyond its name - a status string, not something you'd typically route onward).

    Installing it. No dependencies. Search "comfyui_gr85" in ComfyUI Manager, or git clone https://github.com/veighnsche/comfyui_gr85 into custom_nodes, then restart.

    Practical advice. Before wiring all ten tag inputs, either rewrite the default template to actually include __color__ and __object__ (or whichever placeholders you're using), or just check tagged_text after your first run to confirm every input you connected actually shows up substituted. And if you only need three or four placeholders, reach for the base Tag Injector or Duo instead - Large's ten sockets are a lot of graph real estate for a template that doesn't need them.

    The upside of the extra sockets, once your template actually uses them, is that you can build genuinely elaborate scene descriptions - location, weather, mood, wardrobe, action - as ten independently controllable pieces, each of which could itself be fed by a wildcard picker or a seed-based selector elsewhere in the graph rather than typed by hand every time.

    CategoryGR85/Prompt

    Inputs (21)

    NameTypeDefaultDescription
    templateSTRINGIn a __location__ under a __weather__ sky, a __personality__ person shows __emotion__ while wearing __style__. The __time__ is perfect for a __action__ amidst __mood__.
    tag_1optSTRING
    tag_2optSTRING
    tag_3optSTRING
    tag_4optSTRING
    tag_5optSTRING
    tag_6optSTRING
    tag_7optSTRING
    tag_8optSTRING
    tag_9optSTRING
    tag_10optSTRING
    tag_name_1optSTRINGlocation
    tag_name_2optSTRINGcolor
    tag_name_3optSTRINGobject
    tag_name_4optSTRINGemotion
    tag_name_5optSTRINGweather
    tag_name_6optSTRINGpersonality
    tag_name_7optSTRINGtime
    tag_name_8optSTRINGaction
    tag_name_9optSTRINGstyle
    tag_name_10optSTRINGmood

    Outputs (2)

    NameTypeDescription
    tagged_textSTRING
    placeholdersSTRING