> ## Documentation Index
> Fetch the complete documentation index at: https://docs.browser-use.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Terminal Page

> HTML page the user opens in their browser → xterm.js terminal.

Renders the current window_id into a script tag so the JS knows
which tab is "active" without an extra round-trip. We don't render
the full window list here — the JS asks the parent for that on
mount via the bux-react postMessage protocol, so the list always
reflects the latest state (a tab created in another browser session
since the URL was minted shows up immediately).



## OpenAPI

````yaml /cloud/openapi/v3.json get /boxes/terminal/{token}
openapi: 3.1.0
info:
  title: Browser Use Public API v3
  summary: Browser Use session-based agent API (v3)
  version: 3.0.0
servers:
  - url: https://api.browser-use.com/api/v3
    description: Production server
security: []
paths:
  /boxes/terminal/{token}:
    get:
      tags:
        - Boxes
      summary: Terminal Page
      description: |-
        HTML page the user opens in their browser → xterm.js terminal.

        Renders the current window_id into a script tag so the JS knows
        which tab is "active" without an extra round-trip. We don't render
        the full window list here — the JS asks the parent for that on
        mount via the bux-react postMessage protocol, so the list always
        reflects the latest state (a tab created in another browser session
        since the URL was minted shows up immediately).
      operationId: terminal_page_boxes_terminal__token__get
      parameters:
        - name: token
          in: path
          required: true
          schema:
            type: string
            title: Token
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````