readFile

open suspend override fun readFile(context: Context, path: String): Result<ByteArray>

Reads a file from the calling session's workspace.

Return

The raw file contents, or an EnvironmentException failure if the file does not exist or cannot be read.

Parameters

context

The caller's context, identifying the calling session.

path

Absolute path, or a path relative to the workspace root.