Text Passthrough (Widget)
A text box that turns one string into a shared wire
- text
The Text Passthrough with a box you can type into. Put a prompt (or a filename, or a note) in the widget, and the text output hands it to every node you wire it to - one place to edit the string, instead of the same text pasted into several widgets that can drift apart. It's the value-node pattern doing its simplest, most useful job.
This is the Widget variant of the string passthrough, and it lives under Tojioo Passthrough → Simple Passthrough → Widget Variants - the pack's home for the type-in versions of its primitive relays. The connect-only Text Passthrough and this one output the same thing; the difference is whether the value comes from a wire or from your keyboard. Type in the box, or connect a string wire and the wire wins.
How it works
Standard simple-passthrough machinery - the run function is return (kwargs.get("text"),) - minus the forceInput flag, which is what gives you the widget alongside the socket. Type, fan out, done. If nothing is connected and the box is empty, the output is None, same as every node in the pack.
Inputs and outputs
text(STRING) - a widget on the node, optionally overridable by a wire.text(STRING) out - the string, ready to feed any STRING socket.
Install
Manager → search "Tojioo Passthrough" → Install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/Tojioo/tojioo_passthrough.git
No models, no pip deps. Small single-maintainer pack, GPL-3.0.
Common issues
Variant confusion is the only real trap - the plain Text Passthrough has no box, this one does, and they're one menu level apart, so it's easy to grab the wrong one and wonder what's broken. And the shared gotcha applies: an unconnected, empty widget outputs None, so a downstream node reading a prompt that "isn't there" usually means you never typed anything in. Otherwise there's nothing to break - which is the entire point of the node.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| textopt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |