Skip to main content
web.browser manages persistent cloud browsers. Use it when you need deterministic code around a browser session, or when an agent workflow needs setup, teardown, downloads, recordings, or inspection.
When you pass browserId, put browser policy on web.browser.create(...); do not also configure browser.policy on that agent.

WebBrowserResource

BrowserCreateOptions

BrowserListOptions

BrowserListResponse contains items, limit, hasMore, and nextCursor.

Browser

Lifecycle methods

Lifecycle responses include browser metadata and may include _meta:

Signed capability URLs

CDP and Debug UI URLs are bearer capabilities. Treat them like credentials until they expire.

Advanced browser-code execution

Use browser.playwright.execute(...) when a specific browser step must be exact. For most browser-agent workflows, create or fetch a browser handle and pass browserId into agent.run(...).
Important execution rules: Common request fields: Common response fields:

Capture options

Observation object fields: