STRING Literal (Multiline)
STRING Literal (Multiline)
- STRING
Same job as this pack's plain STRING Literal, sized up for text that actually needs more than one line - think prompts, notes-to-self left inside a workflow, or a block of text you want to reuse in more than one place without retyping it. One multiline text box in, the identical string out, unchanged.
Why this exists as its own node instead of just using STRING Literal for everything: ComfyUI's multiline text widget behaves differently in the UI than the single-line one - it gives you a resizable box instead of a cramped one-line field, which matters the moment you're pasting in an actual prompt rather than a short filename fragment. Splitting the two into separate nodes keeps the single-line version compact for short values (a filename prefix, a path override) while this one gets out of the way for anything longer, including full multi-sentence prompts with their own line breaks.
Mechanism. Stores a string, returns it as-is. No parsing, no templating, no token substitution - whatever you type is exactly what comes out the other end, line breaks and all.
Inputs and outputs. One required string input (multiline STRING), one output typed STRING and named "STRING." Nothing else on the node - no character limit exposed, no formatting options.
Where this earns its keep over just typing straight into a CLIP Text Encode box: the moment you want the same block of text to feed two things at once - a prompt you're also dropping into a text-note node for documentation, or a shared style suffix appended to several different subject prompts elsewhere in the graph - a plain CLIP Text Encode can't do that for you, because its text widget only ever produces conditioning, not a reusable string. This node gives you the string itself as a first-class, reusable output.
Installing it. Part of TW-CUI-Util. ComfyUI Manager: search "TW-CUI-Util", install, restart. Or manually, git clone https://github.com/TW-CUI/TW-CUI-Util into ComfyUI/custom_nodes and restart. Nothing to download beyond the pack itself.
Troubleshooting. There's very little that goes wrong with a node this simple, but a few things are worth knowing.
- This is a plain passthrough, not a prompt encoder - plugging this straight into a KSampler's conditioning input won't work, because it outputs raw text (STRING), not CONDITIONING. If you want to actually use this text as a prompt, route it into a CLIP Text Encode node, or into this pack's own Prompts node, which does the encoding for you and hands the string back out alongside the conditioning.
- It's genuinely useful as a write-once, reuse-everywhere trick for anything you'd otherwise copy-paste between multiple nodes - a long negative prompt reused across several KSamplers in one graph, for instance. Wire one MultilineStringLiteral to all of them and you edit the text in exactly one place instead of hunting down every copy when you want to change it.
- If it disappears from your node search after an update, that's the pack failing to import rather than anything specific to this node - check your ComfyUI startup console for a
TW-CUI-Utilerror before assuming the node's gone for good.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| string | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |