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
| Parameter | Type | Description |
|---|---|---|
connect_url | str | Browserbase WebSocket URL |
url | str | Target URL to navigate to |
session_id | str | Session ID for logging |
What It Does
- Connect - Playwright connects via CDP (Chrome DevTools Protocol)
- Navigate - Go to URL, wait for DOM content loaded
- Polish - Hide scrollbars for cleaner embed
- Scroll Animation - Automated scrolling to simulate βscanningβ