Interface SandboxExecutionRequest

Input to the sandbox executor for running a single sandboxed tool invocation.

interface SandboxExecutionRequest {
    code: string;
    input: unknown;
    allowlist: SandboxAPI[];
    memoryMB: number;
    timeoutMs: number;
}

Properties

code: string

Source code of the sandboxed module (same format as SandboxedToolSpec.code).

input: unknown

The argument object passed to the run(input) entry point.

allowlist: SandboxAPI[]

APIs the sandbox is permitted to call. Anything not listed is blocked.

memoryMB: number

Maximum heap memory in megabytes the sandbox process may consume. The executor terminates the process if this limit is exceeded.

Default

128
timeoutMs: number

Maximum wall-clock time in milliseconds before the sandbox is forcibly killed and an error is returned.

Default

5000