Skip to main content
The Save Text node writes text content to a file in the output directory. It supports saving in .txt, .csv, .md, or .json format, and automatically handles JSON pretty-printing when valid JSON is provided.

Inputs

Notes

  • text is a forced input and must be connected to another node; it cannot be typed directly.
  • The saved file is named <filename_prefix>_<5-digit counter>.<extension> and is written into the ComfyUI output directory (in a subfolder derived from the prefix).
  • Selecting the "json" format attempts to parse the text as JSON. If parsing succeeds, the content is written pretty-printed with 2-space indentation; if parsing fails, the raw text is written unchanged.
  • The node reports the saved file back to the interface so it appears with the other generated output files.

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 09bd896cab770358132834892c1b37efd2ffa0cb0aa7b02b7ef91163331dc9b1