b1. Pass that browser_id on later calls. An empty target_id means the current tab.
CLI and cURL examples use $RT for a browser-small runtime (Overview).
Open a browser
open starts a browser. It has a window when the display is already on, and runs headless otherwise. Pass headless: true to force headless. status returns the browser id, state, and tabs. list returns every browser. close stops one.
b1 browser opened here.
Open parameters
open returns the browser id, engine, and whether it has a window.
The CLI’s open exposes --url, --headless, --engine,
--profile-dir, and --arg (repeatable).
Open a page
navigate loads a URL in a tab (empty target_id = current tab) and waits
per wait_until. back, forward, and reload take the same optional
target_id.
Returns
{url, title, status, navigated, settled} — status is the HTTP
status of the response. back, forward, reload, and activate return
the tab’s BrowserTargetInfo.
Open another tab
targets lists a browser’s tabs. Pass url to open a new tab — the response’s
target_id is the new tab. The SDKs send activate: true by default, so a
tab opened through them becomes the current one immediately; on raw REST
activate defaults to false — pass "activate": true or call
/activate to make a tab the default for calls without a target_id (you
can also pass target_id to any page call: snapshot, screenshot, actions,
evaluate).
targets returns {target_id, targets} — target_id is the tab just opened
(empty when listing). The CLI opens a tab with targets --url (omit
--no-activate to make it the current tab at once).
Reuse a browser
sandbox.browser.goto(url)is the fast path — it opens a browser on first use, navigates it, and reuses it on later calls. Useopenwhen you need the id up front or a second browser.- A
browser_idstays valid untilcloseor the runtime is killed. Eachopenstarts a new instance with new tabs; withoutprofile_dirit also starts from an empty profile. - If the browser process dies,
statusreportsexitedand page calls return400— callopenagain rather than retrying. - Headless browsers still produce snapshots, screenshots, PDFs, and downloads — everything except a window on the display.