Skip to content

Read file

  • Type file.read
  • Group MZBase
  • Role action
  • Risk reads only
  • Side effect safe to repeat
  • Runs once per item

Reads a text, CSV, JSON or binary file from an allowed folder

Also available to AI agents and over MCP as a tool.

root

Folder · string · optional

The folder: empty = this workflow’s own folder, or one of the allowed folders from Settings → Workflows.

path

Path · string · required

Path of the file inside the chosen folder, e.g. accounts.csv. Expressions build it per item.

format

Format · string · required · default lines · one of text, lines, csv, json, binary

How to read it: text, lines (one item per line), CSV / JSON (one item per row or entry), or the raw file.

skipBlank

Skip blank lines · boolean · optional · default true

Shown when format is lines.

shuffle

Shuffle · boolean · optional · default false

Shuffle the lines or rows (with the seed, the same order per account).

Shown when format is lines.

seed

Randomness · object · optional · default {"mode":"random"}

Shown when format is lines.

Fields:

  • mode (string) Mode
  • value (integer) Value

delimiter

Delimiter · string · optional · default ,

Shown when format is csv.

First row is the header · boolean · optional · default true

Shown when format is csv.

encoding

Encoding · string · optional · default utf8 · one of utf8, utf16, latin1

into

Into field · string · optional · default data

  • main

← All nodes