Requirements
Usebrowser-small. browser.open returns 501 on a template without Chromium. desktop.enable returns 400 on a template without a display.
$RT from the example above. Leave the runtime running until you are done.
Enable the display before browser.open when you want the browser’s window on the screen. sandbox.browser.goto(url) opens a browser on first use and reuses it.
Which id to pass
Read
target_id and download_id from responses; they are generated per
session, so never hard-code them.
Errors
A snapshot returns at most 500 elements, and every snapshot issues new refs.
fill can take a secret_ref from an Identity provider attached to the runtime, so the secret never reaches your client. Pages can only reach hosts the runtime’s network policy allows.
Next
Sessions
Start a browser, open a page, and switch tabs.
Actions
Read the page, then click, type, and fill.
Capture
Save a screenshot, a PDF, or a download.
Events
Follow page, console, and network events.
State
Keep separate logins and reuse them later.
Cookies
Read, set, and clear the cookie jar directly.
Emulation
Override viewport, location, timezone, and locale per tab.
Network
Block or mock requests, and answer HTTP auth.
Extensions
Load an unpacked extension into a running browser.
CDP endpoint
Connect Playwright or Puppeteer to the browser.
Approvals
Park an action until an operator approves it.
Recordings
Capture a tab as video and export the artifact.
Profiles
Export the whole browser profile and resume later.
Replay + fork
Replay a sequence, or clone the session into a cohort.
Computer Use
See the screen and control windows the page cannot describe.