Skip to main content
Glama

sandbox_shot

Screenshot the virtual display, its front window, a URL, or a tab already open in a browser on the box (returned inline and as a download URL valid for one hour), or start/stop an mp4 recording of the display or of one tab. capturedAt in the result is when the picture was taken; path is a copy on the box (under /work/.sbx/shots) to sandbox_pull. With target url or tab, pageErrors lists what the page itself reported: console errors, uncaught exceptions and failed requests (an unresolved host, a 404), so a page stuck loading shows why. While a person is on the box's screen, the result carries takeover: true. To check a page you are signed in to at phone size yourself, start Chromium with --remote-debugging-port=9222 and use target tab with width, height and mobile: the box holds that viewport until reset. That viewport is for checking the page; the person tries a page through sandbox_review open web. Some chat clients show the inline image only to the model: url is a plain link the person can open. Each screenshot is also kept for the person in their app, with the box's other steps, for 30 days, and each recording for 7 days; sandbox_media lists them across all of the account's boxes.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "sandbox_shot"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
tabNoWith target tab: which tab, by its id or a piece of its URL or title. Default: the tab whose viewport is held, else the most recently used one. The result's tab says which was captured
urlNoRequired when target is url, unless you pass urls
portNoWith target tab: the browser's debugging port, needed only when several browsers on the box have one
urlsNoWith target url: capture several pages in one call. Pages of the same size share one browser, so a set costs about what one costs. They are written to /work/.sbx/shots and the result lists each path, because a batch of images does not fit in a tool result; fetch the ones you want with sandbox_get
resetNoWith target tab: drop the held viewport, so the tab goes back to its window's size
widthNoWith target url: the viewport width in CSS pixels, default the box's screen width (1280 landscape, 390 portrait); the page lays out at exactly this width, even below Chromium's 500 px window minimum. With target tab: give that tab a viewport this wide and keep it until reset, the tab closes or the browser exits, so a phone layout holds while you keep working in it (Emulation.setDeviceMetricsOverride from your own CDP script is undone when its connection closes). Each call with width, height, deviceScaleFactor or mobile replaces the whole emulated viewport; one tab is held at a time
heightNoWith target url or tab: the viewport height, default the box's screen height for url (800 landscape, 844 portrait) and the window's own height for tab. fullPage captures however tall the page is
mobileNoWith target url or tab: emulate a phone, with touch: mouse input then acts as a finger, so nothing hovers. A page without <meta name=viewport> lays out 980 px wide, as on a real phone
recordNomp4; omit for a screenshot. start records the whole display (target screen, the default), or with target tab just that page in a browser on the box: the video is the tab's viewport times deviceScaleFactor, with no browser bar and nothing around the page (width 360, height 640, deviceScaleFactor 3 and mobile make a sharp 1080x1920 phone video, the same viewport the tab's screenshots then keep). tab, port, width, height, deviceScaleFactor and mobile work as for a tab screenshot; the viewport cannot change until stop
targetNoscreen (default); window (just the front window, without the desktop or the app's own menu bar; the result's window is x,y,width,height on the screen, so add x and y to image coordinates before clicking; a window larger than the screen is cut to the part on it; windows lists every window on the screen with its id, name, position and pid, to check that none of yours is left before you finish); url (a fresh, signed-out headless Chromium); or tab: a page already open in a browser on the box, still signed in, which needs that browser started with --remote-debugging-port=9222 (Electron takes the same flag). tab does not scroll or move the pointer, so hover states stay in the picture
waitForNoWith target url or tab: capture once this CSS selector matches a visible element, or, prefixed with js:, once this JavaScript expression is truthy (it may await). Waits up to 30 s; if it never holds you still get the screenshot, with waitFor.met false. target tab also waits up to 45 s for a browser that is still starting, so no sleep is needed after launching one
fullPageNoWith target url or tab: capture the whole page, not just the viewport, so a long article needs no guessed window height and no cropping
stableMsNoWith target screen or window: capture once the picture has not changed for this long, so a page transition or an animation is not caught half way. Gives up after 20 s and returns the last frame with stable.settled false
deviceScaleFactorNoWith target url or tab: device pixel ratio, e.g. 3 for an iPhone; the image is that many times the viewport

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / record / description
      Previous value: -"mp4; omit for a screenshot"New value: +"mp4; omit for a screenshot. start records the whole display (target screen, the default), or with target tab just that page in a browser on the box: the video is the tab's viewport times deviceScaleFactor, with no browser bar and nothing around the page (width 360, height 640, deviceScaleFactor 3 and mobile make a sharp 1080x1920 phone video, the same viewport the tab's screenshots then keep). tab, port, width, height, deviceScaleFactor and mobile work as for a tab screenshot; the viewport cannot change until stop"
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnly=false, destructive=false, openWorld=true), it discloses retention windows (30 days for screenshots, 7 days for recordings), the one-hour download URL lifetime, the /work/.sbx/shots copy path, the takeover flag, and timeout fallbacks (waitFor.met false after 30 s, stable.settled false after 20 s). It omits little that matters; the safety profile is otherwise carried by the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded correctly, but the body is a dense run-on of multi-clause sentences that mixes capture modes, return fields, retention, and workflow advice; it is informative but heavy and would benefit from structure given its length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 15 parameters and no output schema, the description steps in usefully: it names return fields (capturedAt, path, pageErrors, takeover, tab, window, waitFor.met, stable.settled) and explains what each means, so an agent can interpret results without a schema. Nothing essential for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 93%, so the baseline is 3, but the description adds cross-parameter meaning the schema states only in fragments: one call with width/height/deviceScaleFactor/mobile replaces the whole emulated viewport, only one tab is held at a time, and batching urls shares one browser so a set costs about one. It also clarifies how record interacts with the viewport parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names the specific verb (screenshot) and enumerates the exact resources it can capture (virtual display, front window, URL, existing tab) plus the alternate recording mode. It distinguishes itself from siblings like sandbox_review and sandbox_media later in the text, so an agent knows precisely what this tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly routes the agent: target tab is for pages it is signed in to and checking at phone size itself, while 'the person tries a page through sandbox_review open web' — a clear when-not. It also points to sandbox_pull for the on-disk copy and sandbox_media for retention history, and explains when a browser must be started with --remote-debugging-port=9222.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.