Interfaces

BrowserRunner

Interface: BrowserRunner

Defined in: src/adapters/types.ts:923

A browser an agent can drive — the PORT (9.68.0).

Deliberately small, and deliberately not a browser automation API. Page-level work (navigate, find an element, fill a form) is what CDP and Playwright already do far better than any interface here would; a session exposes BrowserSession.automationEndpoint so those attach directly. What this port carries is what an automation library CANNOT do on its own: open and release a managed session, reach the operating system above the page, and — the one that matters — hand the controls to a person and take them back.

Properties

id

readonly id: string

Defined in: src/adapters/types.ts:925

Stable id — reported on every tool-session event, so a row names its backend.

Methods

start()

start(req): Promise<BrowserSession>

Defined in: src/adapters/types.ts:932

Open a session.

key is the ISOLATION key the caller derived. An adapter may use it to name the remote session; it must never widen it.

Parameters

req
key

string

signal?

AbortSignal

Returns

Promise<BrowserSession>

On this page