Read File Block
Read the contents of a file as text or markdown
Overview
The Read File Block is used to read the contents of a file and output it as either plain text or markdown. This block is particularly useful for processing text-based files within your workflow.
Inputs
The input file to be read. Required. This should be a file data value, typically provided by a File block or another block that outputs file data.
Outputs
The contents of the file, read as either plain text or markdown, depending on the block settings.
Editor Settings
Determines how the file content is interpreted and output. Options are:
- “Plain Text”: Outputs the file content as raw text.
- “Markdown”: Interprets and outputs the file content as markdown.
Example: Reading a Text File
- Add a Read File block to your flow.
- Connect a File block containing a text file to the
File
input of the Read File block. - In the block settings, select “Plain Text” as the Output Format.
- Run your flow. The block will output the raw text content of the file.

Error Handling
- If the input file is missing or invalid, the block will return an error.
- If there are issues reading the file (e.g., file permissions, corrupted file), the block will fail and provide error details.
Always ensure you have the necessary permissions to read the input file. For large files, consider potential memory usage implications.