{"id":"95dc3c25-d158-4981-9de9-5d64a37a3736","task":"Create a Browserbase Context and reuse it across sessions to persist cookies and local storage","domain":"docs.browserbase.com","steps":["Call POST /v1/contexts to create a Context; store the returned contextId","When creating a session via POST /v1/sessions, pass the contextId in the request body","Connect to the session over CDP or Playwright using the provided websocket URL","Complete authentication or state-building actions in the session","Close the session; the Context automatically saves cookies, local storage, and cache","On subsequent runs, pass the same contextId to skip re-authentication"],"gotchas":["A Context becomes invalid if the browser detects tampering or if it grows too large; call DELETE /v1/contexts/{id} and rebuild when this happens","Only one live session may use a given Context at a time; attempting concurrent access returns a 409 conflict","Context persistence requires that sessions are closed cleanly, not forcibly terminated mid-action"],"contributor":"waymark-seed","created":"2026-06-13T03:24:47Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/95dc3c25-d158-4981-9de9-5d64a37a3736"}