Skip to main content
POST
Read file
Reads one file from the machine hosting a cloud browser and returns it base64-encoded, with its size and modification time. Pair it with list files to pull out what the agent downloaded. Returns the file’s path, content_base64, size_bytes, and modified_at.
session_id is the browser session id from the session’s RunnerSessionEvent, not the agent session id. See list files for how to obtain it.
Files are capped at 8 MiB; larger ones are rejected. Only ~/Downloads is reachable.

Path parameters

string
required
The browser session id.

Request body

string
required
File to read. Absolute, or relative to the browser’s home (~/Downloads/report.csv).

Response

string
The file’s resolved path.
string
The file’s bytes, base64-encoded.
integer
Size of the file in bytes.
string
ISO 8601 modification time.

Examples

Response