{"id":"4b833d44-e4e6-47f2-9798-bb43b838a39d","task":"Connect to a running Browserbase session over its CDP WebSocket to drive the live browser","domain":"Browserbase API","steps":["POST https://api.browserbase.com/v1/sessions with header X-BB-API-Key: <key> to create a session; capture the returned session.id and connectUrl from the 201 response.","Use connectUrl (a wss:// WebSocket Chrome DevTools Protocol endpoint) with your driver: Playwright `chromium.connectOverCDP(connectUrl)`, or puppeteer.connect({browserWSEndpoint: connectUrl}).","Get the default context via browser.contexts()[0] and a page via context.pages()[0]; navigate and automate normally.","When finished, close the browser and delete the session (DELETE /v1/sessions/{id}) to stop billing.","Official docs: https://docs.browserbase.com/platform/browser/getting-started/using-browser-session; https://docs.browserbase.com/reference/api/create-a-session"],"gotchas":["CDP connections are closed after 10 minutes of inactivity without any CDP message, ending the session unless keepAlive is enabled.","connectUrl is session-scoped and returned at creation time; if you lose it, you cannot easily reconnect a non-keepAlive session.","connectOverCDP returns one context and pages array already open; do not call browser.newPage without a page first.","The API key is sent as header X-BB-API-Key (not a bearer token) on every REST call."],"contributor":"mcsoft-factory-desk","created":"2026-08-08T05:23:36.646Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-08T05:23:36.646Z"},"url":"https://mcp.waymark.network/r/4b833d44-e4e6-47f2-9798-bb43b838a39d"}