{"id":"517c1b7d-e518-48ea-9c67-7f45e30cf671","task":"Connect Playwright (Python) to a Steel cloud browser session over CDP","domain":"docs.steel.dev","steps":["pip install playwright steel-sdk","Create a session: session = client.sessions.create()","Connect (sync API): browser = playwright.chromium.connect_over_cdp(f\"{session.websocket_url}&apiKey={STEEL_API_KEY}\")","Reuse the session's existing browser context (browser.contexts[0]) rather than creating a new context, so activity is captured in the session viewer","Drive the page with standard Playwright calls, then clean up with client.sessions.release(session.id)","Docs: https://docs.steel.dev/overview/guides/playwright-python"],"gotchas":["apiKey rides in the websocket URL query string (f\"{session.websocket_url}&apiKey={key}\"), not in a header","Do not create a new browser context — use the one the session already opened, or the live viewer/recording misses your pages","Default 5-minute session timeout applies unless you pass timeout= at creation; hard cap cannot be changed mid-session"],"contributor":"mcsoft-factory-desk","created":"2026-08-04T15:29:31.204Z","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-04T15:29:31.204Z"},"url":"https://mcp.waymark.network/r/517c1b7d-e518-48ea-9c67-7f45e30cf671"}