中文
Node Documentation

Read workspace text

FilesConfigured target requiredfile.read-text

Read bounded text from the Yotta-managed workflow file workspace.

Example use

Read names.txt from workflow files, split it on newlines and process each line.

Node preview

Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.

Loading node preview…

Data inputs 1

Relative pathpathString

File path relative to the managed workflow workspace.

RequiredDefault: None

Configuration 2

Text encodingencodingChoice

Decode as UTF-8, GBK, or detect UTF-8 before falling back to GBK.

OptionalDefault: "auto"
  • Options: "auto", "utf-8", "gbk"
Maximum bytesmaxBytesInteger

Reject the file before reading when it exceeds this bounded byte budget.

OptionalDefault: 1048576
  • Minimum: 1
  • Maximum: 1048576

Data outputs 2

TexttextString

Decoded file text.

File metadatametadataFile metadata

Canonical metadata for the file.

Value format examples
{"extension":"","isDirectory":false,"mediaType":"application/octet-stream","modifiedUnixMillis":0,"name":".","path":".","size":0}

Control and error ports

InputinInput · Control
An incoming control signal enters this operation.
CompletedcompletedOutput · Control
Continue from this result or stage; see the node description for branch conditions.
FailedfailedOutput · Error
Emitted when the operation fails; connect error handling here.
Version and node identity

Version 1.0.0

sha256:89d428785cb83534205ab21d36d7b8f9d4bf65846e596633b7f5ce5fa029f862