Member Junction
    Preparing search index...

    The minimal Browserbase service surface the import('./browserbase-remote-browser').BrowserbaseRemoteBrowser driver depends on. Production binds this to the real @browserbasehq/sdk + Stagehand; tests inject a FakeBrowserbaseClient.

    interface IBrowserbaseClient {
        Act(sessionId: string, intent: string): Promise<BrowserbaseActResult>;
        CreateSession(
            options: BrowserbaseCreateSessionOptions,
        ): Promise<BrowserbaseSessionHandles>;
        EndSession(sessionId: string): Promise<void>;
    }
    Index

    Methods

    • Delegates a natural-language intent to Browserbase Stagehand (act / extract / observe) against the live session.

      Parameters

      • sessionId: string

        The Browserbase session id to act within.

      • intent: string

        The natural-language intent (e.g. 'log in with the test account').

      Returns Promise<BrowserbaseActResult>

      The result Stagehand reported for the intent.

    • Ends a Browserbase session, releasing the backing browser. Should be idempotent / non-throwing for an already-released session so teardown is safe to run more than once.

      Parameters

      • sessionId: string

        The Browserbase session id to end.

      Returns Promise<void>