sandbox_review

Hands a tested version to the person and waits for their report or completion. The card and its product entry appear immediately in their app. The default wait is capped at 25 seconds for clients that have not declared support for longer waits; a configured client can wait up to 30 minutes.

Input Output
id; exactly one of what with open (new card) or reviewId (resume); open is web or box; port (integer 1–65535) and optional path (the page on that port's site the review opens, starting with /, at most 2048 characters) with open: "web" only; optional clearActivity (boolean) with what only; optional waitSec (integer 0–1800, within the client's supported wait limit; undeclared clients are capped at 25 seconds) ok, reviewId, shareUrl (the link to give the person: the review page with the product and the feedback tools), productUrl (the product itself), open (web or box), status, note, tellThePerson (what to put in your reply: the review link and how to give feedback) while the review waits, unopenedHandovers when the account's earlier handovers in a row were never opened, activityCleared when you passed clearActivity; after waiting, or when the round already has a report, outcome and, for a report, reportId, fromHuman and images; reviewer when the person's device can be told; for a new web review, the picture the platform took when it cold-loaded the page, the one on the card

Test the flow where the person will use it: tap and type on the box's screen for a phone or desktop app (sandbox_shot shows the result), or go through the web page from a fresh browser session, including its sign-in entry. Leave the product on the screen the person starts testing on, not its home page: signed in, with the data the test needs already there and no onboarding, consent or other dialog in the way; for a web page, path makes the review open there. Create a card with what, written in the person's language. Lead with what they should test, because the card shows only its first two lines: the screen it opens on and what to tap first, what to type, and what they see when it works. Then add one short sentence on what you tested yourself. The card holds this text, cut at 400 characters, a product picture and its opening button, which opens what you name in open (below). Call it for every tested version worth their time (Finishing a box).

{ "id": "<boxId>", "what": "Add a task, then go back to the list: the task you added is still there. I added a task and returned to the list in a fresh browser session myself.", "open": "web", "port": 5173 }

The call stays active within the supported wait limit. Use stdio adapter parallelsandbox-mcp 0.4.2 or later for wait negotiation, progress and cancellation forwarding. Progress includes reviewId, shareUrl and productUrl, immediately and then every 15 seconds.

Put tellThePerson in your reply, in the person's language with its link intact: it carries shareUrl and a sentence on how to give feedback, and on an account that has never opened a handover a line on how ParallelSandbox works (How it works is the person's side in full). With unopenedHandovers, the earlier handovers were never opened: ask whether the links reach the person before handing over again. Give the person shareUrl. While the review waits, it opens this review in the ParallelSandbox app without an account or sign-in, with the product and the tools to report on it, and colleagues can use the same link; once the review has ended it is the box's page in the app, which needs the account's sign-in. productUrl is the product itself: the page on port for open: "web", the same review page for open: "box". It has no feedback tools, so it is not the link to hand over. When they submit a report, outcome: "report" returns its complete fromHuman payload: notes, files with refreshed URLs, annotated images, recordings and timed transcripts. Read these before continuing in this conversation. Other outcomes are done, superseded, cancelled, timed_out and wait_cancelled; completion and delivery status describe the handoff, rather than approval of the product or work completed by the AI.

For a full 30-minute wait in Codex, both the host tool timeout and adapter timeout must allow it. When the person requests this longer wait, add these settings to their existing stdio server entry, keeping a larger timeout if already configured and preserving its other settings:

[mcp_servers.parallelsandbox]
tool_timeout_sec = 1920
env = { PSBX_TOOL_TIMEOUT_SEC = "1920" }

Merge PSBX_TOOL_TIMEOUT_SEC into an existing env map, then reconnect the client. The adapter declares the safe review wait limit to the server. Raising waitSec alone cannot extend the client's supported limit. Without that configuration, the shorter wait returns while the review card remains available.

Timeout or cancellation leaves the card and feedback available. Resume the exact round with its reviewId:

{ "id": "<boxId>", "reviewId": "<reviewId>" }

When that round already has the person's report, the call returns it at once, whatever waitSec says: outcome: "report", reportId and the complete fromHuman, with no need for sandbox_status and sandbox_report first.

A new what replaces the previous card; reviewId resumes it. For an explicit handoff that returns immediately, set waitSec: 0. A running review call can return feedback to the current conversation.

For automatic continuation after the AI finishes, start the native conversation with parallelsandbox-agent (Quick start). A persistent supervisor uses the Codex, Claude Code or Gemini driver to own a single native writer, and registers the reviewId returned by this tool with the original conversation ID. Submitting feedback in the app resumes that same ID after the AI's turn has ended; feedback waits if a turn is still running. The resumed AI calls sandbox_report to read this complete report, and the supervisor acknowledges read only after the native turn finishes successfully. This receipt records delivery and that completed turn, rather than completion of every requested change.

For an ordinary, unregistered MCP connection, continue the original conversation yourself: press Copy message for AI in the app and paste it into that conversation, resume waiting with its original reviewId, or reread a known reportId. See native session feedback setup for models, tool permissions and recovery of the original conversation.

Pass id, what and open. Choosing open is a hard rule, not a preference:

  • A web page: open: "web" with port, the port its front end is served on in the box, the port the process listens on (a dev server's 5173, for example). Run that front end in the box, connected to the backend you tested. They open it in their own browser on their own device. Pass path for the page they start testing on, such as /orders?tab=open or /#/inventory (default /): productUrl, the card's picture and the app's Use it all open it. Before handing it over, open that URL with the path in a fresh browser, sign in there and check it lands on that screen; put the test account in what. The result of a new web review carries the picture the platform took when it cold-loaded that page, the one on the card: if it shows a sign-in page, an empty list or a dialog instead, fix it and hand over again. A desktop app whose UI is loaded from a dev server (Electron with Vite, for example) is handed over this way too, with that dev server's port. If the port has no URL yet, it gets one in the same call: a service already declared on that port is marked web; otherwise a service named web-<port> is declared and marked web. On an older box whose boxd cannot give that port a URL, the call fails with 409 and guidance to start a new box that declares the service with web: true.
  • Only a native desktop or phone app: open: "box", without port: the card opens the box's screen, where they tap, swipe and type themselves on a desktop app (its window on DISPLAY=:99: Electron, GTK, Qt or a game) or on a phone app on a device from sandbox_device, on Android and on the iPhone simulator alike. Keep the app running on its display or device. If nothing is on the screen and no phone is ready, the call returns nothing is on this box's screen for a person to use: …; start the app, test it, then call sandbox_review again.
  • Whenever open: "web" is possible, handing over the box's screen is strictly forbidden. A page they will look at on a phone, or one that needs sign-in, is still web: their own browser lays it out at their phone's width, and you start the front end with the project's own dev auto-login or put the test account in what. A browser on the box's screen reaches them with its tab strip, address bar and --no-sandbox warning bar, at the box's size instead of their own screen's, which seriously damages their experience. Never choose box for your own convenience, such as the box's browser being signed in already or web needing one more step.
  • Check screens in the person's browser engine before handing over, and only that one: sandbox_start, sandbox_status and sandbox_review return reviewer when it can be told (device, engine as webkit, gecko or chromium, source, note). Every browser and app WebView on an iPhone is WebKit, and the box's default Chromium (also behind sandbox_shot) misses WebKit-only rendering problems such as animation glitches; when engine is not chromium, capture screens and motion in that engine as note says, with no second pass in Chromium. The device comes first from the caller's X-Psbx-Reviewer-User-Agent and X-Psbx-Reviewer-Platform headers (ios, android, mac, win, linux, web; sent by clients that know which device the person is using, such as CubeLV with the device the person is talking to the AI on, source: "client"), otherwise from the device recorded with this account's latest feedback (source: "lastReview"). With neither there is no reviewer, and the default Chromium applies.
{ "id": "<boxId>", "what": "Open the app and tap Settings, then Dark mode: every screen turns dark at once. I switched it on the box screen myself.", "open": "box" }

open and port are checked before the box is touched. open missing or invalid with what (open is required with what…), open: "web" without port (open: web needs port…), port with open: "box" (port goes with open: web…) and open, port or clearActivity with reviewId (open, port and clearActivity go with what (a new review)…) each return an error. web: true in sandbox_start.services or sandbox_wire still gives a service its own URL and the app's Use it button; it does not decide what sandbox_review opens.

Details:

  • The picture is a screenshot taken in the box when you call it: of that page's URL for web, of the box's screen for box (with a device attached, the phone's own screen). If that fails, the card goes out without one.
  • open reports the entry you named. A web card keeps the page's URL from the handoff; rewiring the service afterwards does not change it. Watching the AI's live screen is a separate app entry; sandbox_takeover lets the person operate that session for a step only they can complete.
  • While the person has a box card open they are operating the box, and every tool keeps working on it: sandbox_shot of the screen shows what they are doing (takeover: true, which means they are trying it, not that the box is broken). What you change meanwhile (a sandbox_sync that reloads a dev server, restarting the app, typing on the display) happens under their eyes, so do not reinstall or restart the app while they are trying it unless you need to.
  • A waiting card keeps nothing awake. The box and its devices freeze after 10 minutes with no use and are archived by the usual idle rules (Box states), as if no review were pending. When the person opens the review, in the app or through the share link, a frozen box wakes by itself and its devices come back with it (an iPhone simulator opens again the app that was in front), and an archived box is restored, in a minute or two and without its phones; the page says what it is waiting for meanwhile, nothing is needed from you, and while they keep it open the box does not freeze. Opening the app already wakes the boxes of the two newest waiting reviews ahead of the person, without counting as a use (Box states). Archiving does not end the review, nor does stopping the box, which archives it: its link keeps working for its 7 days. Only a box that has been deleted meanwhile (stopped again once archived, or its archived copy expired) ends the review, and you hand the version over again on a new box.
  • A handover marks the designs drawn in this conversation or on this box final, so they leave Ready for you; this conversation's designs that have no box move onto this box, and the person sees them on the box's page under Draft, Architecture and Schema (sandbox_design_final).
  • The card stays until the person submits a report, presses Done with this (POST /v1/boxes/{id}/review/done), you replace it, or the box is deleted. GET /v1/boxes shows a waiting card as review (id, what, url, shotUrl, createdAt).
  • The box's timeline in the app shows every earlier step to whoever opens the box, the share link included: each note you wrote and the command under it. When someone other than the person will open it, such as a reviewer who reads another language, pass clearActivity: true with what: before the card is created the box's earlier activity is hidden from whoever opens the box (the timeline steps with their screenshots and recordings in the app, and steps[] in sandbox_status), so the timeline starts at this review and later steps are recorded as usual. It cannot be undone. The hidden steps are not deleted: their screenshots and recordings stay available to the account through sandbox_media until they expire (screenshots 30 days, recordings 7); to delete the activity for good, use DELETE /v1/boxes/{id}/events. sandbox_say messages and the person's reports stay. If open or port is refused, nothing is deleted.
  • With web, their requests keep the box awake like any use of its URLs (Box states), and sandbox_scene reaches the page they have open.

Every tool and topic is listed in the tool reference.