Skip to main content
GET
Read File

Overview

Returns the base64-encoded content of a file in the session’s workspace. The workspace is a per-session scratch directory inside the sandbox; paths must be relative (no leading /, no .., no NUL byte, up to 4096 bytes). Large files are truncated at the sandbox-enforced read limit — check truncated in the response.

Path Parameters

string
required
Browser session ID (UUID).

Query Parameters

string
required
Workspace-relative file path, e.g. notes/todo.txt.

Example Request

Response

Success Response (200)

string
The requested workspace-relative path.
string
Base64-encoded file content.
integer
Decoded byte length of the file.
boolean
True when the content was truncated to the maximum read size.
Example Response:

Error Responses