The two planes
Enable the display before opening a browser and the browser opens headed —
its window lives on the display, so both planes act on the same session:
snapshot to find an element’s box, then fall back to pixel input for whatever
the DOM cannot describe.
Requirements
Browser Use needs a runtime template that ships the browser and display stack — usebrowser-small. On a template without Chromium, browser.open returns
501; without the display server, display.enable returns 400.
$RT to hold a live runtime —
create one as above and skip the final kill until you are done.
Lifecycle
- Create a runtime on
browser-small. - Enable the display if you want a headed window, pixel input, or a live view of the screen.
- Open a browser — headed when the display is enabled, headless
otherwise.
sandbox.browser.goto(url)opens one on first use. - Act — navigate, snapshot, click, fill, screenshot, download, print.
- Close the browser when done. Killing the runtime stops its browsers;
each
openstarts a new instance.
IDs
Read
target_id and download_id from responses; they are generated per
session, so never hard-code them.
Objects
BrowserInfo — returned byopen and list (status returns the
{browser_id, state, targets} subset):
BrowserTargetInfo — a tab:
active and loading are populated in open, list, and status; the
targets endpoint reports both as false.
BrowserSnapshot — the interactable digest, described in
Snapshots & Actions.
ActionResult — every action returns it:
DisplayStatus — returned by
display.enable and display.status:
Errors
Limits and notes
- One runtime can host several browsers; each browser hosts several tabs. Tabs share the browser’s profile and cookies.
- A snapshot returns at most 500 elements. Refs are re-issued by every snapshot of a tab — act on refs from the latest one.
evaluateruns JavaScript with page privileges — treat the expression as code you ship, not as user input.fillacceptssecret_ref— the key of a secret in an Identity provider attached to the runtime — and types its value without it ever reaching your client.- Browser and display time is ordinary runtime time — it bills at the runtime’s rate while the sandbox runs.
- The browser honors the runtime’s network policy — pages can only reach what the sandbox can reach.
Next
Display
Enable the virtual screen, screenshot it, and drive raw mouse and keyboard input.
Browser Sessions
Open, navigate, and manage browsers and tabs.
Snapshots & Actions
The element digest and ref-based interactions — the model loop.
Capture & Downloads
Screenshots, PDFs, downloads, and live watch URLs.