Skip to main content

browser_click

Click an element on a ready sandbox’s page, by its ref from browser_snapshot, or a point (x and y, in CSS pixels in the viewport), with the mouse on its screen. When the click opens another page, it answers once that has loaded, with the page’s URL and title. REST: POST /v1/sandboxes/{sandbox_id}/page/click
string
left, right or middle; left when absent.
boolean
A double click.
integer
The element to click, by its ref in the page’s latest snapshot. It’s scrolled into view and clicked in its middle.
string
required
The sandbox, sbx_….
number
Or the point to click, in CSS pixels from the left of the viewport.
number
And from the top of the viewport.

browser_navigate

Open a URL in a ready sandbox’s browser, on its screen. It answers once the page has loaded (or after 30 seconds with what has loaded by then), with the page’s URL and title. Read the page with browser_snapshot. REST: POST /v1/sandboxes/{sandbox_id}/page/navigate
string
required
The sandbox, sbx_….
string
required
The URL to open, such as https://example.com. It answers once the page has loaded, or after 30 seconds with what has loaded by then.

browser_press_key

Press a key on a ready sandbox’s page, such as Enter, Tab, Escape, ArrowDown or PageDown, or a key with modifiers, such as Control+A or Shift+Tab. It answers with the page’s URL and title. REST: POST /v1/sandboxes/{sandbox_id}/page/press
string
required
The key, such as Enter, Tab, Escape, Backspace, ArrowDown, PageDown or a, with modifiers before it joined by +, such as Control+A, Shift+Tab or Meta+L.
string
required
The sandbox, sbx_….

browser_scroll

Scroll a ready sandbox’s page with the mouse wheel by dx and dy CSS pixels (dy 800 scrolls down 800), or scroll the element with ref (from browser_snapshot) into view. It answers with the page’s URL and title. REST: POST /v1/sandboxes/{sandbox_id}/page/scroll
number
CSS pixels to scroll right; negative scrolls left.
number
CSS pixels to scroll down; negative scrolls up.
integer
An element to scroll into view, by its ref in the page’s latest snapshot. With dx or dy, the mouse wheel then turns over it, which scrolls what it’s in; otherwise over the middle of the viewport.
string
required
The sandbox, sbx_….

browser_snapshot

Read the page on a ready sandbox’s screen: its accessibility tree as an indented outline, one element a line, such as - link "About" [ref=42]. Give an element’s ref to browser_click, browser_type or browser_scroll. Refs last until the page changes: take a new snapshot after navigating. REST: POST /v1/sandboxes/{sandbox_id}/page/snapshot · read-only
string
required
The sandbox, sbx_….

browser_type

Type text on a ready sandbox’s page: into the element with ref (from browser_snapshot), which is clicked first, or into the focused one. With submit, it presses Enter after, such as to search. It answers with the page’s URL and title. REST: POST /v1/sandboxes/{sandbox_id}/page/type
integer
The element to type into, by its ref in the page’s latest snapshot: it’s clicked and focused first. The focused element when absent.
string
required
The sandbox, sbx_….
boolean
Press Enter after the text, such as to submit a search.
string
required
The text to type.

get_recording

Get a sandbox’s recording: recording, done with the assets it made, or failed with why. REST: GET /v1/sandboxes/{sandbox_id}/recordings/{recording_id} · read-only
string
required
The recording, rec_….
string
required
The sandbox, sbx_….

get_sandbox

Get a sandbox: its state (starting, ready, stopping, stopped or failed) and, while it’s ready, a fresh cdp_url. While it’s starting, it waits up to 45 seconds for it to be ready before answering, with wait over REST and always over MCP: if it’s still starting, call again right away, with no pause. REST: GET /v1/sandboxes/{sandbox_id} · read-only
string
required
The sandbox, sbx_….
boolean
Answer once it’s ready (or failed), waiting up to 45 seconds, instead of at once.

list_recordings

List a sandbox’s recordings, oldest first. REST: GET /v1/sandboxes/{sandbox_id}/recordings · read-only
string
required
The sandbox, sbx_….

list_sandboxes

List the workspace’s sandboxes, newest first. REST: GET /v1/sandboxes · read-only
string
The next of the previous page.
integer
Sandboxes per page, 1 to 100; 20 when absent.

start_recording

Start recording a ready sandbox’s screen, and its audio unless audio is false. Its files upload as assets while it records, in a folder of its own in the sandbox’s folder. Stop it with stop_recording; stopping the sandbox stops it too. REST: POST /v1/sandboxes/{sandbox_id}/recordings
boolean
Record the browser’s audio too, as its own file; true when absent.
string
The folder in the sandbox’s folder its files go in, such as checkout-flow; the recording’s ID when absent.
string
required
The sandbox, sbx_….

start_sandbox

Start a sandbox: a browser on a GPU machine, for showing websites in videos. Drive it with Playwright (connectOverCDP), Puppeteer or any CDP client at its cdp_url, which it has once it’s ready. With wait, this answers once it’s ready, waiting up to 45 seconds; otherwise call get_sandbox until it is. Take screenshots with take_screenshot and record it with start_recording; their files land as assets in its folder. It stops itself after its timeout (an hour unless timeout says otherwise); stop it with stop_sandbox when you’re done. Its time is billed per second while it runs, at least a minute. REST: POST /v1/sandboxes
string
The folder its recordings and screenshots go in, ending in /; sandboxes/<id>/ when absent.
string
The project its recordings and screenshots go in; the workspace’s default project when absent.
integer
Seconds it runs before it stops itself, from 60 to 21600; 3600 (an hour) when absent.
object
The browser window; 1920×1080 at scale 1 when absent.
boolean
Answer once it’s ready (or failed), waiting up to 45 seconds, instead of at once.

stop_recording

Stop a recording. It answers once its files have finished uploading, with the assets it made: the screen’s video and, when it recorded audio, the browser’s audio as its own file. REST: POST /v1/sandboxes/{sandbox_id}/recordings/{recording_id}/stop
string
required
The recording, rec_….
string
required
The sandbox, sbx_….

stop_sandbox

Stop a sandbox. Recordings still recording finish uploading first. A stopped sandbox can’t be started again. REST: POST /v1/sandboxes/{sandbox_id}/stop · destructive
string
required
The sandbox, sbx_….

take_screenshot

Take a screenshot of a ready sandbox’s focused tab, and see it. It’s saved as an asset in the sandbox’s folder (under screenshots/ unless name says otherwise), so a document can use it. REST: POST /v1/sandboxes/{sandbox_id}/screenshots
string
png, jpeg or webp; png when absent.
boolean
The whole page rather than only what’s in view.
string
Its name in the sandbox’s folder, such as checkout.png; screenshots/<time>.<format> when absent.
string
required
The sandbox, sbx_….