sandbox_status
Everything about one box: its state, goal, the last 30 steps done in it, whether the conversation using it is still at it, its wiring, services, running commands and credits. It only reads.
| Input | Output |
|---|---|
id, fields (optional) |
status, goal, steps[] (the last 30 things done in the box, oldest first), agent (whether the conversation that last used it is still at it), placement, boxd health, wiring table, services (each web service with its url, each published version with its run), externalBaseUrl, environment (the same summary sandbox_start returns, read again on each call: connections with rttMs, each service's keysCount and notable, and activeBoxes), running (foreground and background commands, busiest processes, containers), sceneUrl, webUrl, takeoverUrl, the open takeover, registry, credits, interrupted reason, links (this box's links to other boxes), linkedFrom (the boxes linked to this one), stopsAt (when the idle rules archive it unless it is used before then), restorableUntil and archived (at, until, storedBytes) on an archived box (until when its disk is kept; any call on it restores it), freeze (when it freezes and what keeps it awake), boxdVersion, imageId, persist (the persistent folders attached to it), egress (on a box with egress: "dedicated"), designs and stage (on a box with drafts, architecture diagrams or schemas) |
Returns everything the table above lists for one box. It only reads: it does not wake a frozen box or restore an archived one, and it does not make the box yours (nor does it push stopsAt back; see Box states). Three of its fields are for whoever continues the work:
goal: what the box is for, as given tosandbox_start; absent on a box started without one (over REST, or beforegoalwas required).steps[]: the last 30 things done in the box, oldest first: commands, directories and the notes given with them, never their output, screenshots or recordings. Each step's screenshots and recordings are elsewhere:sandbox_medialists the steps with pictures across all of the account's boxes by time, and REST'sGET /v1/boxes/{id}/mediaone box's, the newest 200 at most (see REST); screenshots are kept 30 days, recordings 7. Each step has:at: when, RFC3339.kind:exec,build,sync,wire,shot,device,start,stop,takeover,review,returnorsay.summary: what was done (the command, the service name, the message), at most 200 characters; a longer one is cut and ends in….target(optional): the directory uploaded (sync) or built (build).note(optional): thenotegiven with the call.actor(optional):humanwhen a person did it; absent for agents and ParallelSandbox.detail(optional):backgroundfor a command started withbackground: true,reusedfor a build whose output was restored,recordfor asandbox_shotrecording; forwire, the mode (boxorexternal),link to <box>orversion <label>.ms(optional): how long it took.ok: whether ParallelSandbox carried it out (the box answered); a command that ran and failed is stillok, with itsexitCode.exitCode,signal,timedOut(foreground commands only): how the command ended, as itssandbox_execreturned it. A background command has none here (it had just started);sandbox_procshas its end.error(optional): one line on what failed on ParallelSandbox's side, never the command's output: the box did not respond, or the call was closed before the command finished (with theexecIdto fetch its result withsandbox_procs).
- The adapter's own housekeeping (the commands and uploads under
/work/.psbx-sync/thatsandbox_syncuses to compare files) is left out. Steps are kept 7 days; a step that left a screenshot is kept 30 days. agent(live boxes only): whether the conversation that last used the box is still at it,{ "state": "left", "idleSec": 5400 }.stateisworking,away(the conversation is still open but has not used this box for 10 minutes),left(the conversation closed) oridle(the box has been unused for 1 hour); the rules are in Which conversation is using a box.thisConversation: trueis added when that conversation is the one calling.untracked: truemeans the calls that last used it carried no conversation id (an API-key script, REST, or a remote connection without the stdio adapter): itsstateis then only a guess from idle time, not a sign that another conversation is at it. Restarting your own client (Claude Code, Codex…) starts a new conversation identity, so a box you used before the restart showsleftwithoutthisConversationuntil you use it again; it is yours to continue.disk(running boxes only): what fills the box, for when space runs low.filesystemsgivessizeGb,usedGbandfreeGbfor/work, Docker's storage,/,/tmpand/dev/shm(a path on the same disk as one before it shows onlysameAs; do not add those up);workthe size in MB of each entry directly under/work(usually one project each), largest first;cachesthe package caches and shared browsers (/root/.cache,/root/.npm,/root/go, Gradle, pnpm, Playwright's browsers and the like);tempwhat is over 1 MB in/dev/shmand/tmp;dockerthe lines ofdocker system df(images, containers, volumes, build cache, each with what is reclaimable).sandbox_statuswaits at most about 5 seconds for it: what is not measured yet is listed innotMeasured, withmeasuring: true, and goes on being measured, so calling again a few seconds later gives the rest. A result is kept 30 seconds (measuredAt). Nothing is cleaned for you: delete what this task no longer needs. A box started before this field shipped has nodisk.fields:["goal", "agent", "steps"]returns only those top-level fields, plusidandstatus; a field name it does not know comes back inunknownFields. A message the person left for you (fromHuman) still comes with it. Use it when you look through several boxes another conversation left.freeze(boxes that freeze when idle, while ready or taken over):atis when the idle rules freeze it if nothing changes, andblockedBy[]what keeps it awake now beyond the usual 10 idle minutes.background(commands started withbackground: true),url(requests through its URLs after your last call),recording,person(the person has it open in the app) andwoken_ahead(the person opened the app and this box, waiting for their review, was woken ahead of them; not a use) count only until theiruntil;takeover,foreground(asandbox_execstill running),link(another box connected to it) andphone(an attached phone freezes first, then the box) last until they end, andatis then absent. See Box states.boxdVersion: the version of boxd in the box, asked live (correct right after a boxd restart too).imageId: the box image it started from (for a microVM box the image id,box-…). Boxes started before these were recorded have noimageId.services[].lastProxyError: when a request through that service's URL could not get through in the last 30 minutes, the box's last attempt:at,status(503 when nothing answered on its port, after the box retried for 3 seconds in case it was restarting; 502 for other failures; or the 5xx the service itself returned),error(dial tcp 127.0.0.1:5173: connect: connection refused, a timeout) andcount. A 503box is frozen(or another state) or a 502box unreachablecomes from in front of the box and says so in the response itself. The same records, with any URL that matched no service, are inhealth.sceneErrors.running.containers[]: each Docker container'sname,image,statusandports; a database started withpsbx-testdbalso hasenvFile, the file with its connection settings (. /work/.sbx/testdb/<name>.envexportsDATABASE_URLand the rest).persist: the persistent folders attached to the box (sandbox_start), each withname,path(/persist/<name>),bytes(the size of its saved copy, compressed),savedAt(when it was last saved; absent before the first save) andboxId.egress(only on a box withegress: "dedicated"):mode,publicIp(the account's fixed address) andpending: truewhile that address is not connected to the box yet, such as right after the box resumed on another machine: until then its new outbound connections are held, never sent from a shared address.designsandstage(only on a box thatsandbox_draft,sandbox_architectureorsandbox_schemawas given asid; designs need no box, and one drawn withoutidis on no box):designscounts the designs shown on this box, per kind,{"draft": 2, "schema": 1}, andstageis the step the work is at, the kind of the last design saved with this box (draft,architectureorschema), orreviewwhen asandbox_reviewcame after it. Each version saved with this box is also asaystep insteps[], such asDraft "Sign-in page" v2(in the account's language; Traditional Chinese while the account has not picked one).GET /v1/boxes/{id}/designslists every version with its pictures, or a schema's tables (REST).
Every tool and topic is listed in the tool reference.