Show Text With Title
A display node that tells you what it's showing
- STRING
Every ComfyUI user has ended up with a wall of "Show Text" nodes that all look identical, and spent a full minute figuring out which one holds the seed. Show Text With Title exists to kill that problem: it displays the text and changes its own node title to whatever text you feed it. You tell it what it's showing, and it wears that as its name on the canvas. For a debug display node, that's a surprisingly delightful feature.
What it does
It's a display node with one required input - text, the string to show after execution - and one optional input - title, the string to set as the node's title. Wire a filename builder into it and the node literally renames itself to the filename. Wire a prompt and it shows the prompt while its title says something like "Current positive prompt."
It also passes the text through: it has a STRING output that echoes what it displayed. So it's not purely a sink - you can hang it off a wire mid-pipeline to inspect a value without terminating the flow. The output is list-enabled, which fits the pack's habit of being liberal with outputs.
Inputs and outputs
text(required) - the content to display inside the node.title(optional) - the new title. If you don't connect it, it defaults to "AUN Show Text".- Output:
STRING- the displayed text, passed through.
One nice implementation detail: it stringifies whatever comes in. A tensor becomes Tensor(shape=..., dtype=...), a dict gets JSON'd, a list shows its entries - so it's more forgiving than a strict text-only display node. Drop a number or an object into it and you'll still see something useful.
How it works
On execution it sanitizes the text, sends a AUN.set_node_title message over the WebSocket to the frontend, and the browser renames the node. The display itself rides in the node's UI data, so after the run you see the text rendered inside the node body. It's instant and it happens at the end of each run, so the title always reflects the latest executed value - not the last time you manually typed something.
When it's the right tool
The pack's own description nails the use case: useful when selecting from a list of text inputs, to see which one was selected. Wire it to the label output of a Text Index Switch, and after every run the node's title tells you which prompt won. Do the same with a seed or filename and you get a workflow that narrates itself as it runs. It's also just a pleasant replacement for plain Show Text when you're debugging - one glance at the canvas and you know exactly what each display is.
Installing
It ships in the AUN ComfyUI Nodes pack:
cd ComfyUI/custom_nodes
git clone https://github.com/loz2754/AUN-ComfyUI-Nodes
Restart ComfyUI, or use ComfyUI Manager (search "AUN"). No models, no heavy dependencies - the pack's standard requirements are auto-installed by Manager or with pip install -r custom_nodes/AUN-ComfyUI-Nodes/requirements.txt after a manual clone.
One small caveat: the title it sets is a live value, so don't rely on the title for a static workflow name - it'll overwrite itself on every run. If you want a permanent label, name the node yourself; this one is for dynamic, run-to-run context.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | The text content to be displayed inside the node after execution. | |
| titleopt | STRING | The text to set as the node's title after execution. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |