Optional Readonlycreated_Timestamp when the sandbox was created.
Optional Readonlydataplane_URL for data plane operations (file I/O, command execution).
Optional ReadonlyidUnique identifier (UUID). Remains constant even if name changes.
ReadonlynameDisplay name (can be updated).
Readonlytemplate_Name of the template used to create this sandbox.
Optional Readonlyupdated_Timestamp when the sandbox was last updated.
Read a file from the sandbox.
File path to read. Supports both absolute paths (e.g., /tmp/file.txt) and relative paths (resolved from /home/user/).
Request timeout in seconds.
File contents as Uint8Array.
Execute a command in the sandbox.
Shell command to execute.
Execution options.
ExecutionResult with stdout, stderr, and exit_code.
Write content to a file in the sandbox.
Target file path in the sandbox.
File content (string or bytes).
Request timeout in seconds.
Represents an active sandbox for running commands and file operations.
This class is typically obtained from SandboxClient.createSandbox() and provides methods for command execution and file I/O within the sandbox environment.
Example