Multiline String
The 20-line node that every prompt workflow ends up needing
- STRING
Every so often ComfyUI makes you reach for a node that does almost nothing, and Multiline String is one of them. It gives you a big text box, keeps whatever you type as a string, and hands it to the next node. That's it. Twenty lines of code, one input, one output.
Why does that matter? Because ComfyUI's built-in text boxes live inside the nodes that consume them. When you want to edit a prompt without touching the KSampler, or feed the same paragraph to three different nodes, or keep a config block separate from the logic that reads it, a standalone text box is the right tool. This node is that box.
The one input
text - a multiline STRING with no default. Type a paragraph, paste a prompt, dump a JSON config; whatever's in the box comes out the output as a STRING. There are no other inputs, no settings, nothing to misconfigure. You connect it to anything that accepts a string - a CLIP text encode, a wildcard processor, a concat node, a file saver.
The honest take
This is the least exciting node in the Dados pack, and it should be. But "boring" is doing a lot of work here: it's the one text node you can always reach for when the built-in widgets get in the way. One genuinely handy pattern - keep your master prompt in a Multiline String at the top of the graph, run it through a wildcard processor or a concat node, and feed the result to the sampler. Now the thing you edit most often is a single obvious box instead of a widget buried in a node you have to dig open.
It doesn't strip anything, doesn't interpolate, doesn't parse {} wildcards on its own. If you want wildcard processing, run the output through the pack's Wildcards Processor. If you want to merge several strings, pipe it through a text concat node. This node's whole job is to be a clean source of text.
Install
It ships with Dados Nodes: ComfyUI Manager → search "Dados Nodes", or
cd ComfyUI/custom_nodes
git clone https://github.com/dadoirie/ComfyUI_Dados_Nodes.git
cd ComfyUI_Dados_Nodes
pip install -r requirements.txt
then restart. No models, no dependencies beyond the pack itself.
Common issues
There's basically one way this node can bite you, and it's the newline: the output preserves line breaks, and some string consumers treat a multi-line string differently from a single line. If you paste a prompt with hard line breaks and downstream text looks wrong, flatten it to one line in the box. Other than that, the only failure mode is the general Dados-pack one - if the node doesn't appear in your node list, update ComfyUI, since this pack targets the newer extension API. For everything else, it just holds your text and lets it go.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |