gbox-sdk
    Preparing search index...

    Hierarchy

    • APIResource
      • Browser
    Index

    Constructors

    Properties

    _client: GboxClient

    Methods

    • This endpoint allows you to generate a pre-signed URL for accessing the Chrome DevTools Protocol (CDP) of a running box. The URL is valid for a limited time and can be used to interact with the box's browser environment

      Parameters

      Returns APIPromise<string>

      const response = await client.v1.boxes.browser.cdpURL(
      'c9bdc193-b54b-4ddb-a035-5ac0c598d32d',
      );
    • Retrieve a comprehensive list of all currently open browser tabs in the specified box. This endpoint returns detailed information about each tab including its id, title, current URL, and favicon. The returned id can be used for subsequent operations like navigation, closing, or updating tabs. This is essential for managing multiple browser sessions and understanding the current state of the browser environment.

      Parameters

      • boxID: string
      • Optionaloptions: RequestOptions

      Returns APIPromise<GboxClient.V1.Boxes.BrowserGetTabsResponse>

      const response = await client.v1.boxes.browser.getTabs(
      'c9bdc193-b54b-4ddb-a035-5ac0c598d32d',
      );