Finishing a box

How to end work on a box: sandbox_review when the person should try the result, sandbox_stop when there is nothing to see, and what each leaves behind.

Finish every box you start before you stop working on it:

  • Use sandbox_review when the person should try a running app. The box appears under Ready for you immediately, and the call waits for feedback or completion within the client's supported limit: up to 25 seconds for undeclared clients, or up to 30 minutes with long-wait configuration. Read the returned report before continuing; after timeout, resume with reviewId, or read a known report again with sandbox_report. A box waiting for review still freezes and is archived by the usual idle rules (Box states): the person opening the review wakes a frozen box. Archiving the box, or stopping it, closes a review still waiting for the person: it leaves Ready for you and its link no longer opens. So a review waits only while the box is alive, until 24 hours after its last use (each time the person opens it counts as use and starts that count again); do not sandbox_stop a box you handed over that the person still has to try, and hand the version over again when a review was closed before they tried it. The app lists a deleted box under All sandboxes → Stopped for 7 days, where its screenshots (kept 30 days after capture) and recordings (kept 7) can still be opened. Name what they open with open: web with the port the page is served on, or box for the box's screen. If a box review fails because nothing is on the screen, start the app on the box's display or on a device, then try again.
  • Use sandbox_stop when there is no running app for the person to try. The box is archived: its disk is kept 30 days, any call on it brings it back until then, and stopping it again deletes it for good. A review still waiting for the person is closed with it. Its result lists in unsavedWork what in /work is neither pushed to a git remote nor kept in a persistent folder; push or save what has to last longer than those 30 days (sandbox_stop). Its screenshots remain available for 30 days after capture and its recordings for 7, through sandbox_media and GET /v1/boxes/{id}/media.

A box left running without either shows in the person's app as AI stopped (below) and waits for them to decide what happens to it. A conversation can also end before it gets to either (a laptop shut, a client closed), so commit your work in /work as you go, with messages that say what is done and what is left, and push it or sandbox_pull it when it matters: steps[] records what was run, not the files. Keep the project in a git repository with a remote, or in a persistent folder, from the start: only those outlive the box, which is deleted 30 days after it is stopped or archived, and files fetched with sandbox_get are kept only about a day. The MCP server's instructions say the same to every client: give every sandbox_start a goal, finish every box with sandbox_review or sandbox_stop, and read sandbox_status before picking up a box another conversation left.

What a box leaves, and who can still see it once the box is deleted, 30 days after it is stopped or archived (details in the sections linked):

What Deleted Until the box is deleted (archived included) After it is deleted
Screenshots and recordings from steps and from sandbox_shot (sandbox_exec, sandbox_shot) Screenshots 30 days and recordings 7 days after each capture Screenshots & recordings in the app, sandbox_media and GET /v1/boxes/{id}/media All sandboxes → Stopped (last 7 days), sandbox_media and /media, until each expires
Files fetched with sandbox_get, including fetched recordings (sandbox_get) Automatically removed after about one day; not counted as stored files. URLs last one hour Request a fresh URL (an archived box is restored first), or download directly with sandbox_pull Only URLs still valid; no new URL can be requested
Frozen box posterUrl and sandbox_review card picture: only the newest of each is kept, replacing older pictures (Credits) With the account; currently no individual deletion in the app The app shows the latest pictures The Stopped list and GET /v1/boxes?all=1 can show the latest poster
A recording stopped for you that you have not fetched (sandbox_shot) With /work You, with sandbox_get; it is not in the app or in /media Gone
/work When the box is deleted: 30 days after it is stopped or archived, or at once when an archived box is stopped You, with sandbox_exec, sandbox_get and sandbox_pull (the first call restores an archived box) Gone
Persistent folders under /persist (sandbox_start) With DELETE /v1/persist/{name}, or with the account You, in the box; saved when the box stops or freezes, or with POST /v1/boxes/{id}/persist/{name}/save The next box that attaches them; GET /v1/persist/{name}/content downloads the saved copy

Every tool and topic is listed in the tool reference.