sandbox_draft

Sketches screens before you build them: each phone's screen is a piece of HTML you write in the call; the server shoots it, turns it gray and puts it in a hand-drawn phone frame (up to 3 boards of up to 6 phones, 2 per row; a desktop window takes a whole row). The pictures come back in the result and appear on the design's page in the person's app, where the person circles, talks and writes on them. No box is needed.

Input Output
topic (at most 80 characters, the same for every version), boards (1–3), optional css (at most 20,000 characters: styles every screen shares), optional note (at most 300 characters: what this version changed), optional id (a box, to show the design on that box's page too) ok, designId (dsg_…, the design), reviewId (dsn_…, this version), kind (draft), topic, version, appUrl, boxId when you passed id, next, warnings when there are any, fromHuman when the person left notes for this conversation; the pictures follow the JSON as image content, one per board (a smaller JPEG; no image URLs)

Its tool title (the MCP title, which some clients show for the tool) is Sketch screens; it is annotated readOnlyHint: false (each successful call saves a version), destructiveHint: false and openWorldHint: false.

When to use it

The order of work for anything new or changed is: sandbox_draft (screens) → sandbox_architecture (services) → sandbox_schema (stored data) → build in the box → sandbox_review. Skip a step only when the task does not touch it: a change with no screen has no draft.

Use sandbox_draft whenever the person asks for a draft, sketch, wireframe or mockup (草稿, ラフ), and before you build a new screen or change one, so the person judges the layout and the flow on their phone first. The screens' HTML goes in this tool's call; do not make separate web pages, SVG or image files for this instead, and do not build the screen in the box to show what it will look like: this tool draws it, keeps every version, and gives the person the tools to answer.

Look at the existing screens before you sketch changes to them (the running app with sandbox_shot, or the code).

The box

A design needs no box. It belongs to the person's account and to the conversation that draws it: you can draw, revise and get the person's feedback without sandbox_start, and a design stays when a box stops or its pictures are deleted.

id is optional: pass the box of this piece of work to show the design on that box's page too, under its Draft, Architecture or Schema tab; leave it out and the design stands on its own, on its page in the app (appUrl) and, until the person reports on it or it is final, under Ready for you. A design shows on the last box passed with it: a later version without id stays on that box, and a version with another box's id moves it there. An id that is not a box of this account fails the call.

Drawing happens on the server, not in a box: the call never wakes a frozen box or runs anything in it. With id naming a box that has not stopped, a successful call counts as use of that box: it moves lastUsedAt, which pushes back when the idle rules freeze and stop the box, the conversation that calls it holds the box (Box states), and the version is a step in its steps[]. A call that fails, or one without id, uses no box.

What to draw

Draw only what the person needs to judge. Every picture carries the same legend at the top right: red is new or changed, black and gray are what stays as it is (the legend's words are in the same language as what you write on the picture; see Fixed words on the picture).

  • Each phone (or desktop window) is one screen, written as HTML in html (see The screen below): write the real layout and leave colors alone; the whole picture turns gray.
  • class="new" marks what is new or different compared with the product as it is now: it is drawn red with everything inside it. It compares with the product as it is now, not with the previous version: a version after the first keeps class="new" on everything that is still new compared with what exists now, and note says what changed since the previous version.
  • Leave the rest without new: it is drawn black and gray.
  • scribble (gray lines) stands in for text that does not matter: write only the words that matter.
  • unchanged: true on a screen that stays as it is: it is drawn faint and stamped UNCHANGED in the middle (the stamp's word is in the same language as what you write on the picture).
  • Write every label in the language the person reads.

Characters the font lacks, such as emoji, are drawn as boxes and named in warnings: replace them (icons with the ic classes) and draw again. Common symbols in titles and notes are swapped for ones the font has (✓ becomes √, ✕ ×, ➜ →, ⭐ ★, ≈ ~, ≤ ≦, ≥ ≧, ☐ □, ☑ ■).

Fixed words on the picture

A few words on the picture are written by the drawing itself, not by you, on drafts and on sandbox_architecture diagrams. They are in the same language as what you write on the picture (Traditional Chinese, English, Japanese, Korean or Vietnamese): first the topic, the note, each board's title and the phone notes; if those show no language (only numbers and symbols), the words on the screens; if nothing does, the account's language (the language the person picked on the account page of the app; Traditional Chinese until they pick one). What you write (title, note, notes, the words in the screens' HTML and so on) is drawn as given, never translated, so write it in the language the person reads. The note goes under the title as given (red on a draft, blue on an architecture diagram), with nothing in front of it. warnings and error messages are always in English. A sandbox_schema is text, not a picture, and its few fixed words are always in English.

Where Traditional Chinese English Japanese Korean Vietnamese
Legend, line 1 (drafts) 紅字=這次加的或改的 Red = new or changed 赤字=今回追加・変更したもの 빨간 글자 = 이번에 추가·변경 Đỏ = mới hoặc đã sửa
Legend, line 1 (architecture diagrams) 藍色=這次加的或改的 Blue = new or changed 青=今回追加・変更したもの 파란색 = 이번에 추가·변경 Xanh = mới hoặc đã sửa
Legend, line 2 黑字、灰字=原樣 Black / gray = as it is 黒字・グレー=変更なし 검은 글자·회색 = 변경 없음 Đen / xám = giữ nguyên
Stamp on an unchanged: true screen 原樣 UNCHANGED 変更なし 변경 없음 GIỮ NGUYÊN

boards

Each board is drawn as one picture, its title numbered in a circle, the phones side by side with their notes under them.

Field Required Limit What it is
title yes 80 characters what this board shows ("Outer list: switch between sandboxes and designs")
phones yes 1–6 the phones, two side by side per row, left to right then down; a desktop window takes a whole row (a phone takes 1 place, a desktop window 2; at most 3 rows a board)

Each phone (or desktop window):

Field Required Limit What it is
html yes 30,000 characters the screen's HTML, <style> included, without <html>, <head> or <body> (see The screen below)
desktop true: a desktop window (Mac, Windows, web) instead of a phone; it takes a whole row
title 60 characters only with desktop: the words in the window's title bar
unchanged true: this screen stays as it is (see above)
notes 8, each text 150 characters notes under the phone, {"text": "…", "new": true}: red with new, gray without

The draft can also carry one css (at most 20,000 characters): every screen gets it first, so styles several screens share (chat bubbles, bottom bars, list rows) are written once.

The screen

  • Size: a phone screen is 390×878 CSS px (the frame draws the earpiece and the home bar around it), a desktop window 1280×736. position: fixed sits against the screen, so bottom input bars, floating buttons and drawers over the page go where they really are.
  • Content taller or wider than the screen is cut off as on a real phone, and warnings says so: move it to another phone or make it shorter.
  • A screen is a still picture: no <script> or on… event attributes, and no <iframe>, <form>, <link>, video or audio. Nothing is loaded from a link: pictures only as data: URLs or the placeholder <div class="img" data-caption="…"></div>; @import and url() pointing outside are errors that name the screen. <a href> is fine (it loads nothing), javascript: is not.

Ready classes (every screen gets them first; the font is Iansui, then Noto Sans TC for characters it lacks):

Class Drawn as
new red: new or changed, with everything inside it
muted gray text
scribble gray lines standing in for text that does not matter; style="--lines:3" for the number of lines
img an image placeholder (a frame with diagonals); data-caption is the small gray text at its bottom
switch a switch; add on for on
ic ic-NAME an icon: <i class="ic ic-search"></i>, sized by font-size

The icon names are also listed in the description of the tool's html parameter; a name that does not exist draws nothing, and warnings says so: search plus close more more-v back next down up arrow-left arrow-right arrow-up arrow-down menu sidebar settings sliders bell calendar mic send stop copy flag trash edit share heart star home user users chat comment bot image camera video clip file folder link external check check-circle x-circle filter sort refresh download upload lock eye clock history play pause sparkles wand bookmark pin tag globe chart bars grid list info alert help logout wallet cart map phone mail volume thumbs-up thumbs-down zap layers terminal code expand collapse gift trophy smile keyboard circle dot loader book box building briefcase target trend dollar key shield cloud database workflow moon sun.

A misspelled or unexpected field is skipped, and warnings names it with what is allowed; a title or note over its limit is cut to it, also with a line in warnings; html or css over its limit fails. Limits count characters (a CJK character is one). An empty optional string counts as not given. Everything in the call except id, topic and note is the drawing's spec, at most 512 KB of JSON.

Example

{
  "topic": "Sign-in page",
  "boards": [
    {
      "title": "Sign in with email",
      "phones": [
        {
          "html": "<h1 style='margin:24px 16px'>Sign in</h1><div class='new' style='margin:0 16px'>Email<div class='muted' style='border:1px solid #999;border-radius:8px;padding:12px;margin-top:6px'>you@example.com</div></div><button style='position:fixed;left:16px;right:16px;bottom:24px;height:48px;background:#333;color:#fff;border:0;border-radius:24px'>Sign in</button>",
          "notes": [ { "text": "The email field is new", "new": true } ]
        }
      ]
    }
  ]
}

The result

  • The pictures follow the JSON as image content, one per board: look at them before you tell the person anything. They are shrunk to JPEG for this conversation (a board of phones 640 px wide, one with a desktop window about 900 px), small enough to keep the conversation short and large enough to read; the person's app shows the full-size picture. Then tell them in one line what to look at; next says the same.
  • designId (dsg_…) is the design: every version of this kind and topic in the account has the same one. reviewId (dsn_…) is this version's id. The stdio adapter parallelsandbox-mcp registers reviewId the way it registers a sandbox_review round, so the person's report on this version comes back to this conversation (What automatic return needs), and adds a last text block to the result saying whether it will come back on its own.
  • version counts per account, kind and topic, whichever box you pass or none: 1 for a new topic, then 2, 3…
  • appUrl is the design's page in the person's ParallelSandbox app, https://app.parallelsandbox.com/design/<designId>; it opens without signing in, so the person can pass it to anyone, and only their account can circle and send feedback on it.
  • boxId is the box you passed as id; it is missing when you passed none.
  • warnings: the picture was drawn, but something needs fixing: a screen whose content was cut off, characters the font lacks, or an icon that does not exist.

In the person's app

Every design has its own page in the app (appUrl, /design/<designId>), with all its versions. Anyone with the link can look at it without signing in; another account, or someone not signed in, sees the versions only: no feedback, and not the box it shows on. Ready for you on the app's home page lists the designs waiting for the person (the latest version of each design that is not final and that they have not reported on yet) together with the boxes handed over, newest first, whether or not a design shows on a box and whatever state that box is in; the tags under it (Sandbox, Draft, Architecture, Schema, only the ones there are) narrow it to one kind with a tap, and another tap takes that off. Tapping a design opens its page.

A design passed with a box's id also shows on that box's page. Every box's page has the same four units, a row of four tabs at the top in the order of work: Draft, Architecture, Schema and Sandbox. A unit the box has nothing in yet is still there and says so in the app's language, naming the tool that fills it: "No drafts yet. Drafts appear here when AI draws one with sandbox_draft.", "No architecture diagrams yet. Diagrams appear here when AI draws one with sandbox_architecture." or "No schema yet. The schema appears here when AI writes one with sandbox_schema." A box opened from Sandboxes opens on Sandbox.

On a design's page, or in a box's unit after picking the design when the box has more than one of that kind, the person picks the version (the newest by default), reads its note, and under each picture reports on it with Report here: they circle on it, talk, and write text on it, then send. Tapping a draft's picture shows one phone at a time with the notes under it, starting at that picture's first phone, large enough to read on a phone without zooming and scrolling when it is tall: tapping the right half shows the next phone, the left half the previous one, going through the first picture's phones left to right and then the next picture's, and stopping at the first and the last (on a computer the arrow keys do the same, and Esc closes it). A draft version drawn before the app could show one phone at a time opens as the whole picture instead. An architecture picture opens whole, with pinch zoom. A schema is shown as text, not a picture (sandbox_schema).

A box's card shows the step the work is at: the kind of the last design shown on that box, or review once you have called sandbox_review after it.

Their feedback

When the person sends a report on a version, from the design's page or from a box's unit, it comes back to the conversation that drew that version, the way review feedback does, with or without a box:

  • In a conversation set up for app feedback (started with parallelsandbox-agent, or a client with ParallelSandbox's feedback hooks; see sandbox_review; designs need more, below), the report wakes this conversation with a message such as The person sent feedback in the ParallelSandbox app on design version <reviewId>. Call the parallelsandbox sandbox_report tool with exactly {"reportId":"<reportId>"} to read it, change what they asked, then call the same design tool again with the same topic for the next version. Read it with sandbox_report and reportId alone, no id.
  • Otherwise it arrives as fromHuman in the result of this conversation's next call to a design tool (this one included, with or without id) or to any tool on a box, and the person can paste Copy message for AI from the app's receipt here; it asks you to read the report with sandbox_report ({ "reportId": "<reportId>" } is enough for a design; a box id given with it does no harm).

The message names the design and its version: Feedback on draft "Sign-in page" v1: <what they wrote>. Read the attached report (annotated images, voice transcript, text written on the image in notes[].labels). Change it as asked, then call sandbox_draft again with the same topic for the next version. When they wrote nothing, <what they wrote> is N annotated notes and M recordings. Read the circled pictures, the voice transcript and the text they wrote on the picture (notes[].labels) before you change anything. The report's reviewId is the reviewId (dsn_…) of the version they looked at. A report on a design does not end a waiting sandbox_review card.

What automatic return needs

  • The stdio adapter parallelsandbox-mcp 0.6.0 or later for a design drawn without id, 0.5.4 or later for one drawn with a box's id; parallelsandbox-agent is in the same package, and a conversation started with it needs the same. Versions before 0.6.0 register a design version only together with its box, and versions before 0.5.4 register only sandbox_review, so then a report on a design comes back only the second way above (fromHuman, or Copy message for AI). The same holds for a connection to the HTTP endpoint without the adapter.
  • Claude Code and Gemini CLI also need ParallelSandbox's feedback hooks to cover the design tools. Hooks installed before 0.5.4 fire only for sandbox_review (in Claude Code, sandbox_review and sandbox_report) and miss reports on designs. 0.5.4 treats such old hooks as not installed: the server instructions and the design tools' results carry the install command, such as npx -y parallelsandbox-mcp install claude-code (install gemini for Gemini CLI; run the command exactly as the result gives it). Changing the person's user settings needs their consent: ask in this conversation, and run it once if they agree. It replaces only ParallelSandbox's own hooks, keeps the other settings and a backup of the previous file, and can be run again. Claude Code applies it at once, Gemini CLI from its next start. Cursor's hooks need no reinstall (they run the same package, so 0.5.4 or later is enough); Codex needs no hooks.
  • Only versions drawn after the hooks are installed wake this conversation on their own. A version drawn before does not. The install note in its result says so from adapter 0.5.5; 0.5.4's note says to call sandbox_review with its reviewId, which is meant for review cards: do not do that with a design's dsn_ id. For that version, ask the person to paste Copy message for AI from the app here, and read the report with sandbox_report.

The next version

Change what the person asked, then call sandbox_draft again with the same topic (and the same id if you passed one; a box is never required), the whole spec again (not only the changes) and a note: one sentence on what changed since the previous version, which is drawn in red under the title as you wrote it and is the first thing the person reads in the app. That call is the next version (v2, v3…), from any box or none; a new topic starts again at v1.

Final

A design is either not final or final. One that is not final stays under Ready for you in the person's app until they report on its latest version (a report takes it off, as a report on a review card does, and your next version puts it back); a final one leaves it and stays reachable by its link (appUrl) and on its box's page. When the person agrees, mark it final with sandbox_design_final; the person can also do it with one tap on the design's page. Going on to the next step does it by itself: drawing a later kind, or handing over with sandbox_review. Drawing a new version puts it back to not final.

Errors

The call fails with a message that names the field; nothing is saved, and it does not count as use of a box:

  • box not found (it must be one of yours; see sandbox_status or GET /v1/boxes): the id you passed is not a box of this account. Leave id out to draw without a box.
  • topic is required: …, topic is at most 80 characters, note is at most 300 characters, spec is at most 512 KB.
  • Anything the drawing does not accept comes back as <path>: <problem>, the path being the arguments of your call, such as boards[0].phones[0].html: <script> is not allowed (the screen is a still picture: nothing runs), boards[0].phones[1].html: <img src="https://…">: nothing is loaded from a link; … or css: @import is not allowed (nothing is loaded from outside: write the rules here); everything a screen may not have is listed at once. Every argument other than id, topic and note goes to the drawing (which calls them spec together), so a stray top-level argument is skipped with a line in warnings (spec: ignored unknown field "layout" (allowed: boards, css)), while a misspelled boards means no boards, which fails: boards: is required (array). Fix that field and call again.
  • another version of "<topic>" was saved at the same time; call again.

Every tool and topic is listed in the tool reference.