StringToolsText
The multiline text box this whole pack quietly revolves around
- STRING
The boring node that isn't actually boring
On paper, StringToolsText is the least interesting node in this pack: a multiline text box with a string output. You've seen a thousand of them. But in the String Tools world it's the official way to type text, and there's a reason. When you double-click an empty text slot on StringToolsConcat or StringToolsRandomChoice, ComfyUI doesn't create its usual PrimitiveNode - the pack's JS redirects that to a StringToolsText node instead. So this is the node that keeps appearing in front of you while you build a prompt graph. Get comfortable with it.
Why it exists
The pack's choice and concat nodes refuse connections from ComfyUI's PrimitiveNode (the thing "convert widget to input" produces). That's a deliberate design decision, not a bug, and it's spelled out in the README: the author supplies his own string source nodes so you never depend on PrimitiveNode behavior in this part of the graph. StringToolsText is the multiline half of that pair, alongside the single-line StringToolsString. Both are glorified pass-throughs - type text in, get the same text out - but they're the sanctioned input sources for the whole pack.
What it does
One required input, text (STRING, multiline), and one output, STRING. No parameters to fiddle with, no modes. Type a multi-line prompt or description, and it flows to whatever you connected downstream - a StringToolsConcat, a StringToolsRandomChoice, a CLIP Text Encode, a workflow note. The text is passed through literally; the node sets dynamicPrompts: false, so don't expect {2$$a|b} wildcard expansion here. If that's what you want, wildcard packs are the tool for it. This is for plain, controlled text.
Installing it
The whole pack comes in one install. Via ComfyUI Manager: "Install Custom Nodes", search ComfyUI String Tools (repo Taremin/comfyui-string-tools), install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/Taremin/comfyui-string-tools
Restart fully. No pip dependencies, no model files, no GPU anything - stdlib Python plus a small JS file, MIT license, release 0.0.7. It's from Taremin, the same developer behind the well-regarded WebUI Monaco Prompt editor.
Gotchas
- It's a source node, not a node that does anything. If you expected it to transform or format text, you're looking at the wrong tool - pair it with
StringToolsConcatif you need assembling. - Multi-line text that includes line breaks will carry those breaks wherever it goes, including into a prompt if you connect it straight to a CLIP encode. Usually fine; occasionally the blank line you didn't notice becomes a strange emphasis artifact.
- If you're only ever typing a single line,
StringToolsStringis the tidier sibling. But if you double-click a slot in the String Tools graph, you'll get this one whether you asked for it or not - that's by design.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |