Create an ephemeral sandbox VM from a preset image
cpusinteger· uint32min 0
vCPU count; daemon/image default applies when omitted.
envstring[]
`"K=V"` entries injected into the VM's environment.
idle_timeout_secsinteger· uint64min 0
Auto-stop the VM after this many seconds of inactivity; daemon default applies when omitted.
imagestring*required
Catalog name of the image to boot. Bundled presets are `"python"` and `"node"`; pass either string verbatim. The only other accepted values are the literal keys of `sandbox.custom_images` in `iii.config.yaml` — set by the operator. Do NOT pass an OCI ref like `"ghcr.io/iii-hq/node:latest"` or `"docker.io/library/node:20"` unless that exact string is the catalog key. Unknown values return S100 with the allowed set in the error message.
memory_mbinteger· uint32min 0
Memory cap in MiB; daemon/image default applies when omitted.
namestring
Human label surfaced by `sandbox::list`; not an identifier.
networkboolean
Whether the VM gets outbound networking; daemon default when omitted.
sandbox_idstring*required
Execute a command inside a live sandbox
argsstring[]
Argv tail passed to `cmd` (each entry is one argv slot).
cmdstring*required
The binary to execute as a single string — NOT a shell line. `"node"` is correct; `"node -v"` is not (put `-v` in `args`). `handle_exec` rejects values containing whitespace with S001. Shell metacharacters (`;`, `|`, `&&`, `>`, etc.) in `cmd` are not interpreted — the runner spawns `cmd` literally. Use a wrapper script inside the VM if you need shell behavior.
envstring[]
`"K=V"` entries (NOT a map) added to the child's environment.
sandbox_idstring*required
UUID returned by `sandbox::create`.
stdinstring
Base64-encoded bytes piped to the child's stdin.
timeout_msinteger· uint64min 0
Kill-after window in ms; daemon default applies when omitted.
workdirstring
Working directory inside the sandbox; image default when omitted.
duration_msinteger· uint64*requiredmin 0
timed_outboolean*required
sandbox::fs::chmod
functionChange file permissions inside a sandbox
sandbox::fs::grep
functionSearch for a pattern in files inside a sandbox
List directory contents inside a sandbox
sandbox::fs::mkdir
functionCreate a directory inside a sandbox
Move or rename a path inside a sandbox
sandbox::fs::read
functionStream-download a file from a sandbox
Remove a file or directory inside a sandbox
Search-and-replace in files inside a sandbox
sandbox::fs::stat
functionStat a path inside a sandbox
sandbox::fs::write
functionStream-upload a file into a sandbox
List active sandboxes
sandboxesobject[]*required
age_secsinteger· uint64*requiredmin 0
exec_in_progressboolean*required
sandbox_idstring*required
Stop and remove a running sandbox
sandbox_idstring*required
waitboolean
Block until the VM is fully reaped before returning.
sandbox_idstring*required