Nodes/AUN ComfyUI Nodes/Get Connected Node Titles
ComfyUI Node

Get Connected Node Titles

Read the names of whatever's plugged into it

By loz2754·Created 8 months ago·Updated a day ago· 5
Get Connected Node Titles
  • node_1
  • node_2
  • node_3
  • node_4
  • node_5
  • node_6
  • node_7
  • node_8
  • node_9
  • node_10
  • label1_out
  • label2_out
  • label3_out
  • label4_out
  • label5_out
  • label6_out
  • label7_out
  • label8_out
  • label9_out
  • label10_out
  • selected_title
index1
visible_inputs1

Sometimes you don't care what value a node outputs - you care which node is feeding you. AUNGetConnectedNodeTitles is the node for that. Plug anything into its universal sockets and it reads the title of every connected node, outputs each one as a labeled string, and also hands you a single selected_title chosen by an index. It's the "show your work" node: put it at the end of a route and it tells you what the route actually came from.

The sockets are deliberately generic - up to ten node_1node_10 inputs that accept any type, because the node only cares about the source of each connection, not the data. visible_inputs (1–10) trims how many sockets are shown, so you only expose the ones you're using, and the node's JavaScript keeps the socket count in sync with the widget. index (1–10) picks which connected node's title gets echoed out on the selected_title output.

Outputs: label1_out through label10_out, each carrying the title of the correspondingly numbered input's source node, plus the selected_title string. Because the inputs are lazy and the node reads the graph, titles track what's actually connected - disconnect something and its label goes quiet.

The classic use is a confirmation display: a Text Index Switch is picking among ten prompts, and you want to see which prompt the switch landed on. Wire the switch's text output into one of these sockets, hook label1_out to a Show Text node, and the preview shows you the title of the winning prompt node instead of an opaque index number. The same pattern labels model pickers, LoRA selectors, anything where "which one ran" is the information you actually want in front of you. Feed selected_title into a filename token and your filenames name their source automatically.

Mechanically it leans on the same graph-reading trick as the pack's other extractors, but there's a frontend twist: because the inputs are lazy any-type proxies, the node can harvest connection titles without forcing execution of whatever's upstream. It's a display/utility node, not a data transformer - the values it outputs are strings, so don't expect it to pass your image through.

Install with the pack: ComfyUI Manager (search "AUN") or cd ComfyUI/custom_nodes && git clone https://github.com/loz2754/AUN-ComfyUI-Nodes, then restart. Dependency-light, no models. If you find yourself squinting at index numbers and wishing they had names, this is the cheap upgrade.

CategoryAUN Nodes/Utility

Inputs (12)

NameTypeDefaultDescription
indexINT11–10Select which node title to output as 'selected_title'.
visible_inputsINT11–10How many input sockets to display on the node (1-10).
node_1opt*Connect any node to read its title from the workflow.
node_2opt*Connect any node to read its title from the workflow.
node_3opt*Connect any node to read its title from the workflow.
node_4opt*Connect any node to read its title from the workflow.
node_5opt*Connect any node to read its title from the workflow.
node_6opt*Connect any node to read its title from the workflow.
node_7opt*Connect any node to read its title from the workflow.
node_8opt*Connect any node to read its title from the workflow.
node_9opt*Connect any node to read its title from the workflow.
node_10opt*Connect any node to read its title from the workflow.

Outputs (11)

NameTypeDescription
label1_outSTRING
label2_outSTRING
label3_outSTRING
label4_outSTRING
label5_outSTRING
label6_outSTRING
label7_outSTRING
label8_outSTRING
label9_outSTRING
label10_outSTRING
selected_titleSTRING