Text Box
A multiline text field that actually behaves
- Text
Text Box is a multiline STRING input that returns exactly what you type. "Returns the given STRING, unmodified," says the README, and it means it. If you've ever fought with a node that needs a string over a wire but you just want to type a paragraph somewhere, this is the node.
Why you'd reach for it
ComfyUI's built-in text handling is genuinely fiddly. Some string sockets are widgets you can type into; others (the forceInput ones) demand a connection, and then you're stuck hunting for a text source. Text Box is the reliable source: a big multiline field where you can paste a long prompt, a chunk of negative-prompt boilerplate, a block of tags, or a template, and it hands the whole thing out as a STRING.
Because it's multiline, it's also the right home for prompts that span lines - and since it's a plain passthrough, whatever you put in is exactly what downstream gets. No truncation, no munging, no surprises.
How it works
A literal return of the input:
def text_box(self, Text):
return (Text,)
Input:
- Text - a multiline field, default empty.
Output:
- Text - the string, unchanged.
It's the string counterpart to Float Selector and Integer Selector in this pack's Basic category: create a value, hand it out. For the common "I need a prompt as a reusable node" case, it's the one you'll reach for, and it composes with the pack's Combine String and Prompt Combiner to build prompts from parts.
Where people get burned
The main gotcha is a mental one: Text Box outputs a STRING, not a prompt encoding. It feeds prompt-building nodes and string utilities, but it won't encode anything itself - run it through a CLIPTextEncode before it reaches the sampler. And remember that a string emitted by Text Box carries newlines if you typed them; depending on your model, stray line breaks in a prompt can behave differently than commas. Keep an eye on that if output looks off.
One more: since it's a passthrough with a widget, it does not accept a wired input - you can't feed a string into Text Box and out again. It's a source, not a relay. For a relay, use this pack's String Switch or Combine String.
Installing it
ComfyUI Manager → search "HavocsCall" → install → restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/HavocsCall/comfyui_HavocsCall_Custom_Nodes
Restart, under HavocsCall/Basic. No requirements.txt, no model downloads - instant.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| Text | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| Text | STRING | — |