Skip to main content

Write Text File

Category: Files Write Text File block screenshot

Writes text to a file at path. Set append when new content should be added to existing file contents instead of replacing them. Set flushNow to force pending file changes to be written immediately.

Inputs

InputRequiredValue KindTypesEnum Values
pathyesexpressionfile-path-string
textyesexpressionstring
appendnoexpression
flushNownoexpression

Notes

No additional notes are available yet.

Examples

Write Text File At Fixed Path

Writes a short text file with `append=false` and `flushNow=true`, then reads it back to verify the exact content.

kind: Pattern · format: runtime-dsl · validation: MCP fixture

Topics: files, text output

Source: patterns/ex-files-write-text-file-fixed-path.json

Download JSON

Flush Buffered File Write With Sleep

Writes a text file into the runtime buffer, then uses sleep as a zero-delay sync point to flush buffered file writes before continuing.

kind: Pattern · format: runtime-dsl · validation: Schema only

Topics: files, synchronization

Source: patterns/ex-files-flush-buffered-write-with-sleep.json

Download JSON

Export Sequence Markers To YouTube Chapter Text

Prompts for the chapter title source and output mode, then exports active-sequence markers as YouTube chapter lines to the clipboard or a `.txt` file while skipping empty resolved text.

kind: Recipe · format: persisted-document · validation: Schema only

Topics: markers, YouTube chapters, text export, clipboard workflows, save dialogs, marker comments

Source: recipes/ex-markers-export-active-sequence-to-youtube-chapter-text.json

Download JSON