Social BrowserProfiles, AI & automation

Browser API

Playwright with Social Browser

Connect Playwright to a Chromium CDP endpoint when your Playwright version supports connectOverCDP. Treat this as CDP interoperability and validate the workflow against your build.

Guidance

How to use this integration

const { chromium } = require("playwright"); const browser = await chromium.connectOverCDP("http://127.0.0.1:PORT"); const contexts = browser.contexts(); // Resolve the correct page/target for the current Social Browser workspace.

Identity

Runtime IDs are not stable resource IDs

Rediscover targetId, webContentsId and current WebSocket targets after restart or reconnect. Persist your own stable Profile/workflow identity instead.

Related

Continue in Browser API docs

Browser API overview

Choose the right integration path.

Overview →

External/CDP setup

Set up the API/CDP client and discovery flow.

Setup →

Examples

Use practical examples and target-selection patterns.

Examples →