Skip to main content
Start a Chromium browser in a runtime, open a page, and switch tabs. The first browser is 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.
The rest of this page, and the CLI and cURL examples on the following pages, use the 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.
Navigate parameters 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. Use open when you need the id up front or a second browser.
  • A browser_id stays valid until close or the runtime is killed. Each open starts a new instance with new tabs; without profile_dir it also starts from an empty profile.
  • If the browser process dies, status reports exited and page calls return 400 — call open again rather than retrying.
  • Headless browsers still produce snapshots, screenshots, PDFs, and downloads — everything except a window on the display.

Endpoints