Entry points
- llms.txt is a condensed summary of this documentation.
- llms-full.txt is the entire documentation in one file.
- The OpenAPI schema describes every endpoint.
- The MCP server exposes the browser as tools an agent can call directly, with no HTTP client to write.
Rules worth encoding
- Always release the session in a
finallyblock. Sessions bill until released. - Reuse
browser.contexts()[0]and.pages()[0]instead of creating new ones. - Never cache
connect_url. Re-mint before every attach. - Treat
404on a release as success. - Retry only
429,502, and504, with backoff, and send anIdempotency-Keywhen retrying a session create. - Keep
idle_timeoutshort. - Auth failure is
403, not401. Handle both. - Prefer
content_okoverstatuson fetch results. - In
async_mode,ok: falsewithstatus: "pending"is not a failure.