π Save/Preview Text
Save/Preview Text
Save/Preview Text does exactly what it says: it takes a string and writes it to a .txt file in your output folder, showing you the text in the node as it does. Unglamorous, but it's the node that makes the captioning workflow fixable - it's how you get the machine-generated transcript out where you can read and correct it.
Why you'd reach for it
Most of Mana Nodes moves text around as strings inside the graph, where you can't easily see or edit it. This node is the escape hatch. The headline use is correcting speech-recognition output: transcription is never perfect, so you dump the timed framestamps_string to a file with this node, open it, fix the words the model misheard, and paste the corrected version back into the Text to Image Generator's text field - with the live transcription input disconnected. That save β edit β paste-back loop is the intended way to get clean captions, and this node is the "save" step.
It's also just handy for debugging: drop it on any string output to eyeball what's actually flowing through - a transcript, a framestamps blob, a generated prompt, whatever.
The inputs
Two, and that's the whole node:
string- the text to write. Wire any string output into it.filename_prefix- the output path, relative to theoutputfolder (defaulttext\text).
There are no outputs - it's a terminal (output) node. Its job is to write the file and preview the text, not to pass anything onward.
Installing it
Comes with the Mana Nodes pack. ComfyUI Manager β search Mana Nodes β install β restart. Or clone:
cd ComfyUI/custom_nodes
git clone https://github.com/ForeignGods/ComfyUI-Mana-Nodes.git
Install requirements and restart. There's nothing to download for this node - it's plain file I/O.
Common issues
There's not much to break here, which is the point. The usual "where did my file go" confusion is the filename_prefix path - it's relative to ComfyUI's output directory, and the default writes into a text subfolder, so look there rather than the root output folder. If the subfolder doesn't exist it's created for you.
The one conceptual thing to remember: this node saves, it doesn't hand the string to anything else. If you edit the saved file, those edits live in the file only - to use the corrected text you have to copy it back into the graph yourself (typically into the generator's text widget). Nothing auto-reimports it. Note the current pack also exposes this under the older name string2file; they do the same job.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| filename_prefix | STRING | text\text | β |
| string | STRING | β |
Outputs (0)
No outputs