Skip to main content
Internal Service β€” This is not an HTTP endpoint. It’s called by the browser-session route.

Purpose

Connects to a Browserbase session via Playwright CDP and navigates to a URL. Runs as a background task so the API response isn’t blocked.

Function Signature

Parameters

What It Does

  1. Connect - Playwright connects via CDP (Chrome DevTools Protocol)
  2. Navigate - Go to URL, wait for DOM content loaded
  3. Polish - Hide scrollbars for cleaner embed
  4. Scroll Animation - Automated scrolling to simulate β€œscanning”

Scroll Animation Sequence

Background Task Pattern

Code Location