components:
  schemas:
    BaseSuccess:
      description: Common REST success envelope.
      properties:
        data:
          description: Endpoint-specific payload.
          type: object
        success:
          enum:
            - true
          type: boolean
        timestamp:
          description: Local ISO-8601 timestamp without timezone suffix.
          type: string
      required:
        - success
        - timestamp
      type: object
    ErrorResponse:
      description: Common REST error envelope.
      properties:
        error:
          description: Human-readable failure reason.
          type: string
        success:
          enum:
            - false
          type: boolean
        timestamp:
          description: Local ISO-8601 timestamp without timezone suffix.
          type: string
      required:
        - success
        - error
        - timestamp
      type: object
    WebDriverError:
      description: W3C WebDriver error envelope.
      properties:
        value:
          properties:
            error:
              description: "WebDriver error code, e.g. \"invalid session id\"."
              type: string
            message:
              description: Human-readable detail.
              type: string
            stacktrace:
              type: string
          required:
            - error
            - message
          type: object
      required:
        - value
      type: object
    WebDriverValue:
      description: W3C WebDriver envelope.
      properties:
        value:
          description: Command result; null for commands with no return value.
      required:
        - value
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: API key (UUID v4) supplied in the X-Api-Key header.
      in: header
      name: X-Api-Key
      type: apiKey
    BearerAuth:
      bearerFormat: UUID
      description: "API key (UUID v4) supplied as: Authorization: Bearer <api_key>"
      scheme: bearer
      type: http
info:
  description: |-
    Unified API for **MetaDock**, a Windows power-user workspace app combining
    browser automation, native-app docking, workspace/layout management, and AI
    control. It covers the programmable surfaces exposed by the embedded local
    server:

    | Surface | Base path | Protocol | Scope token |
    |---------|-----------|----------|-------------|
    | REST API | `/api/...` | HTTP + JSON | `rest` |
    | Selenium / WebDriver | `/wd/hub/...` | HTTP + JSON (W3C WebDriver) | `selenium` |
    | CDP (Chrome DevTools Protocol) | `/json/...`, `/devtools/...` | HTTP discovery + WebSocket | `cdp` |
    | WebSocket events | `/ws` | WebSocket (JSON messages) | `websocket` |

    The WebSocket surface is documented separately in `asyncapi.yaml`. Availability of
    individual surfaces and operations depends on your MetaDock edition.

    ## Enabling surfaces
    Every surface is off by default. Each has its own toggle in MetaDock Settings ->
    API, Automation & AI (`api.rest.enable`, `selenium.enable`, `cdp.enable`,
    `api.websocket.enable`). Requesting a surface whose toggle is off is rejected
    regardless of credentials.

    Creating an API key is a separate step, and the server does not wait for one: a
    surface you have enabled accepts connections immediately and answers 401 to
    every request until a key exists, because nothing can authenticate against an
    empty key list.

    ## Authentication
    API keys are UUID v4 strings created in MetaDock Settings -> API, Automation & AI. A
    key carries a set of scopes (`rest`, `websocket`, `mcp`, `cdp`, `selenium`); a
    request is accepted only if the key's scope set allows the surface it targets.
    Two credential locations are accepted on HTTP surfaces:

    - `Authorization: Bearer <api_key>`
    - `X-Api-Key: <api_key>`

    Query-parameter authentication is not supported. First-time MCP connections may
    additionally require an in-app approval prompt unless "Allow All" is enabled, and
    repeated failed attempts trigger a per-IP lockout. A key may further be scoped to
    a set of profiles/layouts, in which case fleet-wide operations and out-of-scope
    browsers are rejected with 403.

    ## Response envelopes
    REST (`/api/...`) uses `{ "success": true, "data": { }, "timestamp": "..." }` on
    success and `{ "success": false, "error": "...", "timestamp": "..." }` on failure;
    `timestamp` is local ISO-8601 without a timezone suffix. Selenium uses the W3C
    `{ "value": ... }` envelope and CDP discovery returns raw Chrome DevTools
    Protocol JSON.

    ## Rate limiting
    There is no request quota on any surface: requests are not counted, metered or
    billed, and no endpoint returns 429. The only throttle is the per-IP lockout on
    repeated authentication failures described above, which answers 401.
  license:
    name: Proprietary
  title: MetaDock API
  version: 1.0.0
openapi: 3.0.3
paths:
  /api/adblock/lists:
    get:
      description: "List all adblock filter lists (id, name, url, enabled, rule_count, last_updated) and the auto-update schedule"
      operationId: listFilters
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          auto_update:
                            description: Whether enabled lists re-download periodically
                            type: boolean
                          auto_update_hours:
                            description: Hours between automatic updates
                            type: integer
                          count:
                            description: Number of filter lists
                            type: integer
                          lists:
                            description: "Filter lists (id, name, url, enabled, rule_count, last_updated)"
                            items:
                              additionalProperties: true
                              type: object
                            type: array
                        required:
                          - count
                          - lists
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List filters
      tags:
        - Adblock
    post:
      description: Add a new adblock filter list by URL
      operationId: addFilter
      requestBody:
        content:
          application/json:
            schema:
              properties:
                enabled:
                  description: Enable immediately and download (default true)
                  type: boolean
                name:
                  description: Display name for the list
                  type: string
                url:
                  description: Filter list URL
                  type: string
              required:
                - name
                - url
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Add filter
      tags:
        - Adblock
  "/api/adblock/lists/{id}":
    delete:
      description: Remove an adblock filter list by id
      operationId: removeFilter
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Remove filter
      tags:
        - Adblock
  "/api/adblock/lists/{id}/update":
    post:
      description: "Re-download one filter list by id, or every enabled list when id is omitted"
      operationId: updateFilter
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                id:
                  description: Filter list id (optional; omit for all enabled lists)
                  type: integer
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Update filter
      tags:
        - Adblock
  /api/adblock/override:
    get:
      description: "Get a profile's adblock override (on/off/inherit) and the effective enabled state"
      operationId: getOverride
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          effective_enabled:
                            description: Effective enabled state for the profile
                            type: boolean
                          override:
                            description: "Override value (on, off, or inherit)"
                            type: string
                          profile:
                            description: Profile name
                            type: string
                        required:
                          - profile
                          - override
                          - effective_enabled
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get override
      tags:
        - Adblock
    post:
      description: "Set a profile's adblock override"
      operationId: setOverride
      requestBody:
        content:
          application/json:
            schema:
              properties:
                override:
                  description: "Per-profile adblock override; 'inherit' follows the global adblock_enabled setting"
                  enum:
                    - "on"
                    - "off"
                    - inherit
                  type: string
                profile:
                  description: Profile name
                  type: string
              required:
                - profile
                - override
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set override
      tags:
        - Adblock
  /api/adblock/state:
    post:
      description: "Enable or disable a filter list (id + enabled) and/or set the auto-update schedule (auto_update, auto_update_hours). Pass only what changes; answers the same state as adblock_list"
      operationId: setState
      requestBody:
        content:
          application/json:
            schema:
              properties:
                auto_update:
                  description: Periodically re-download the enabled lists
                  type: boolean
                auto_update_hours:
                  description: Hours between automatic updates
                  maximum: 8760
                  minimum: 1
                  type: integer
                enabled:
                  description: "Enable or disable the list named by 'id'"
                  type: boolean
                id:
                  description: "Filter list id; needs 'enabled'"
                  type: integer
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          auto_update:
                            description: Whether enabled lists re-download periodically
                            type: boolean
                          auto_update_hours:
                            description: Hours between automatic updates
                            type: integer
                          count:
                            description: Number of filter lists
                            type: integer
                          lists:
                            description: "Filter lists (id, name, url, enabled, rule_count, last_updated)"
                            items:
                              additionalProperties: true
                              type: object
                            type: array
                        required:
                          - count
                          - lists
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set state
      tags:
        - Adblock
  /api/adblock/update:
    post:
      description: "Re-download one filter list by id, or every enabled list when id is omitted"
      operationId: updateAll
      requestBody:
        content:
          application/json:
            schema:
              properties:
                id:
                  description: Filter list id (optional; omit for all enabled lists)
                  type: integer
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Update all
      tags:
        - Adblock
  /api/adblock/whitelist:
    get:
      description: "Without host: list a profile's hosts excepted from adblocking. With host: check whether that host is excepted in the profile. Matching is subdomain-inclusive, so an entry for metadock.app covers www.metadock.app."
      operationId: getWhitelist
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        properties:
                          count:
                            description: "Without host: number of excepted hosts"
                            type: integer
                          host:
                            description: "With host: the normalized host that was checked"
                            type: string
                          hosts:
                            description: "Without host: excepted hosts, sorted"
                            items:
                              type: string
                            type: array
                          profile:
                            description: The profile the exceptions belong to
                            type: string
                          whitelisted:
                            description: "With host: whether it is excepted"
                            type: boolean
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get whitelist
      tags:
        - Adblock
    post:
      description: "Add or remove a host from a profile's adblock site exceptions. Adding a host that is already excepted is a no-op, reported as changed=false."
      operationId: setWhitelist
      requestBody:
        content:
          application/json:
            schema:
              properties:
                host:
                  description: Host to except. A full URL is accepted and reduced to its host.
                  type: string
                profile:
                  description: Profile whose site exceptions to use (default profile when omitted)
                  type: string
                whitelisted:
                  description: "true to except the host from adblocking, false to resume blocking on it"
                  type: boolean
              required:
                - host
                - whitelisted
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        properties:
                          changed:
                            description: False when the host was already in that state
                            type: boolean
                          host:
                            description: The normalized host that was written
                            type: string
                          profile:
                            description: The profile the exception belongs to
                            type: string
                          whitelisted:
                            description: The state requested
                            type: boolean
                        required:
                          - host
                          - whitelisted
                          - changed
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set whitelist
      tags:
        - Adblock
  /api/aliases:
    get:
      description: "List website aliases (short keyword -> URL shortcuts used in the omnibox)"
      operationId: listAliases
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          aliases:
                            description: "List of website aliases (id, alias, url)"
                            items:
                              additionalProperties: true
                              type: object
                            type: array
                          count:
                            description: Number of aliases returned
                            type: integer
                        required:
                          - count
                          - aliases
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List aliases
      tags:
        - Search
    post:
      description: Create or update a website alias
      operationId: setAlias
      requestBody:
        content:
          application/json:
            schema:
              properties:
                alias:
                  description: Alias keyword
                  type: string
                url:
                  description: Destination URL
                  type: string
              required:
                - alias
                - url
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          alias:
                            description: Alias keyword that was set
                            type: string
                          url:
                            description: Destination URL the alias points to
                            type: string
                        required:
                          - alias
                          - url
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set alias
      tags:
        - Search
  "/api/aliases/{alias}":
    delete:
      description: Delete a website alias
      operationId: deleteAlias
      parameters:
        - in: path
          name: alias
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Delete alias
      tags:
        - Search
    get:
      description: Resolve a website alias to its URL
      operationId: resolveAlias
      parameters:
        - in: path
          name: alias
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          alias:
                            description: Alias keyword that was resolved
                            type: string
                          url:
                            description: Destination URL the alias resolves to
                            type: string
                        required:
                          - alias
                          - url
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Resolve alias
      tags:
        - Search
  /api/apps:
    get:
      description: List native app docks mounted in a layout (full JSON)
      operationId: listApps
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          apps:
                            items:
                              additionalProperties: true
                              type: object
                            type: array
                          count:
                            type: integer
                          layout_uuid:
                            type: string
                        required:
                          - apps
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List apps
      tags:
        - App
    post:
      description: Mount a running native window as a dock in a layout
      operationId: mountApp
      requestBody:
        content:
          application/json:
            schema:
              properties:
                custom_title:
                  description: Custom dock title (optional)
                  type: string
                layout_uuid:
                  description: "Layout UUID (optional, defaults to first layout)"
                  type: string
                pid:
                  description: Specific process id to disambiguate (optional)
                  type: integer
                process_name:
                  description: Process/window name to mount
                  type: string
              required:
                - process_name
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          layout_uuid:
                            type: string
                          process_name:
                            type: string
                          uuid:
                            type: string
                        required:
                          - uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Mount app
      tags:
        - App
  /api/apps/processes:
    get:
      description: "List visible top-level OS windows that can be mounted as native app docks, including process name, PID, window title and whether the process is a game"
      operationId: listProcesses
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            type: integer
                          processes:
                            items:
                              additionalProperties: false
                              properties:
                                is_game:
                                  description: True when the process is a game (known list or launched by a game launcher)
                                  type: boolean
                                pid:
                                  type: integer
                                process_name:
                                  type: string
                                title:
                                  type: string
                              required:
                                - process_name
                                - pid
                                - title
                                - is_game
                              type: object
                            type: array
                        required:
                          - count
                          - processes
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List processes
      tags:
        - App
  "/api/apps/{uuid}":
    delete:
      description: Dismount (unembed) a native app dock by UUID
      operationId: dismountApp
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Dismount app
      tags:
        - App
    get:
      description: "Get the state of a mounted native app dock by UUID: process, title, layout, lock and whether it is still running"
      operationId: getApp
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          custom_title:
                            type: string
                          is_game:
                            description: True when the docked process is a game
                            type: boolean
                          is_locked:
                            type: boolean
                          is_running:
                            type: boolean
                          is_valid:
                            type: boolean
                          layout_uuid:
                            type: string
                          pid:
                            type: integer
                          process_name:
                            type: string
                          uuid:
                            type: string
                        required:
                          - uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get app
      tags:
        - App
  "/api/apps/{uuid}/click":
    post:
      description: "Click at a point inside a mounted native app, in the same pixel coordinates as native_app_screenshot. Best effort: some apps ignore synthesized clicks, so prefer native_app_uia_act when the element is in the control tree. Works while other windows cover MetaDock. The click is delivered asynchronously, so allow a moment before taking a screenshot to see its effect. Not available for games."
      operationId: clickApp
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                button:
                  description: Mouse button (default left)
                  enum:
                    - left
                    - right
                  type: string
                double:
                  description: Double-click (default false)
                  type: boolean
                uuid:
                  description: Native app UUID
                  type: string
                x:
                  description: X in window pixels
                  type: integer
                y:
                  description: Y in window pixels
                  type: integer
              required:
                - uuid
                - x
                - y
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          ok:
                            type: boolean
                          target_hwnd_class:
                            description: Window class (Windows) or accessibility role (macOS) that received the click
                            type: string
                          uuid:
                            type: string
                          x:
                            type: integer
                          y:
                            type: integer
                        required:
                          - uuid
                          - x
                          - y
                          - ok
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Click app
      tags:
        - App
  "/api/apps/{uuid}/key":
    post:
      description: "Press a single named key in a mounted native app, sent to whichever control has focus inside the app (focus one first with native_app_uia_act 'focus'). No modifier combinations such as Ctrl+S. Delivered asynchronously. Not available for games."
      operationId: pressAppKey
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                key:
                  enum:
                    - backspace
                    - delete
                    - down
                    - end
                    - enter
                    - escape
                    - home
                    - insert
                    - left
                    - page_down
                    - page_up
                    - right
                    - space
                    - tab
                    - up
                  type: string
                uuid:
                  description: Native app UUID
                  type: string
              required:
                - uuid
                - key
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          key:
                            type: string
                          ok:
                            type: boolean
                          target_hwnd_class:
                            description: Window class (Windows) or accessibility role (macOS) that received the key
                            type: string
                          uuid:
                            type: string
                        required:
                          - uuid
                          - key
                          - ok
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Press app key
      tags:
        - App
  "/api/apps/{uuid}/screenshot":
    get:
      description: "Capture the contents of a mounted native app window. At full size, image pixels match native_app_uia_tree rects and native_app_click points; when max_width shrinks the image, divide image coordinates by the returned scale to get window coordinates. On macOS the image is the whole window, title bar included, and needs the Screen Recording permission. Not available for games."
      operationId: screenshotApp
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          height:
                            description: Image height
                            type: integer
                          mime_type:
                            type: string
                          scale:
                            description: Image pixels per window pixel (1 at full size)
                            type: number
                          uuid:
                            type: string
                          width:
                            description: Image width
                            type: integer
                          window_height:
                            description: Window height in window pixels
                            type: integer
                          window_width:
                            description: Window width in window pixels
                            type: integer
                        required:
                          - uuid
                          - width
                          - height
                          - window_width
                          - window_height
                          - scale
                          - mime_type
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Screenshot app
      tags:
        - App
  "/api/apps/{uuid}/state":
    post:
      description: "Set a native app dock's lock and custom title. Pass only the fields to change; answers the resulting state"
      operationId: setAppState
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                locked:
                  description: Lock the dock against moving or closing
                  type: boolean
                title:
                  description: "Custom dock title; empty restores the window's own title"
                  type: string
                uuid:
                  description: Native app UUID
                  type: string
              required:
                - uuid
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          custom_title:
                            type: string
                          is_game:
                            description: True when the docked process is a game
                            type: boolean
                          is_locked:
                            type: boolean
                          is_running:
                            type: boolean
                          is_valid:
                            type: boolean
                          layout_uuid:
                            type: string
                          pid:
                            type: integer
                          process_name:
                            type: string
                          uuid:
                            type: string
                        required:
                          - uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set app state
      tags:
        - App
  "/api/apps/{uuid}/type":
    post:
      description: "Type text into a mounted native app as keyboard character input, sent to whichever control has focus inside the app (focus one first with native_app_uia_act 'focus'). Unlike native_app_uia_act 'set_value', rich editors register it as real typing. Use native_app_press_key for Enter, Tab and other named keys. Delivered asynchronously. Not available for games."
      operationId: typeAppText
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                text:
                  maxLength: 2000
                  minLength: 1
                  type: string
                uuid:
                  description: Native app UUID
                  type: string
              required:
                - uuid
                - text
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          length:
                            type: integer
                          ok:
                            type: boolean
                          target_hwnd_class:
                            description: Window class (Windows) or accessibility role (macOS) that received the text
                            type: string
                          uuid:
                            type: string
                        required:
                          - uuid
                          - length
                          - ok
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Type app text
      tags:
        - App
  "/api/apps/{uuid}/uia":
    get:
      description: "Read the control tree (UI Automation on Windows, Accessibility on macOS) of a mounted native app: buttons, fields, menus and their ids, names, rects and supported actions. Includes the app's open dialogs and menus. Prefer this plus native_app_uia_act over clicking by pixel. Not available for games."
      operationId: uiaTree
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          node_count:
                            type: integer
                          truncated:
                            description: True when max_depth/max_nodes cut the tree short
                            type: boolean
                          uuid:
                            type: string
                          windows:
                            items:
                              additionalProperties: true
                              properties:
                                automation_id:
                                  type: string
                                children:
                                  items:
                                    type: object
                                  type: array
                                control_type:
                                  type: string
                                enabled:
                                  type: boolean
                                id:
                                  description: Element id for native_app_uia_act; changes when the app rebuilds its UI
                                  type: string
                                name:
                                  type: string
                                patterns:
                                  description: Actions this element supports
                                  items:
                                    type: string
                                  type: array
                                rect:
                                  description: "x, y, width, height in window pixels"
                                  type: object
                                value:
                                  description: "Current text value, when the element has one (truncated)"
                                  type: string
                              type: object
                            type: array
                        required:
                          - uuid
                          - truncated
                          - node_count
                          - windows
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Uia tree
      tags:
        - App
  "/api/apps/{uuid}/uia/act":
    post:
      description: "Perform an action on a control-tree element of a mounted native app, by the id from native_app_uia_tree. Does not move the mouse or use the keyboard. set_value can bypass rich-text editors (chat boxes, web-based editors) so the app never sees the text; for those, use 'focus' here and then native_app_type. Not available for games."
      operationId: uiaAct
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                action:
                  enum:
                    - collapse
                    - expand
                    - focus
                    - invoke
                    - select
                    - set_value
                    - toggle
                  type: string
                element_id:
                  description: Element id from native_app_uia_tree
                  type: string
                uuid:
                  description: Native app UUID
                  type: string
                value:
                  description: Text to set (required for set_value)
                  type: string
              required:
                - uuid
                - element_id
                - action
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          action:
                            type: string
                          element_id:
                            type: string
                          ok:
                            type: boolean
                          uuid:
                            type: string
                        required:
                          - uuid
                          - element_id
                          - action
                          - ok
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Uia act
      tags:
        - App
  /api/bookmarks:
    get:
      description: "List bookmarks (id, name, url, category_id, tags). Optional profile filter. Supports limit + offset paging; response includes total."
      operationId: listBookmarks
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          bookmarks:
                            description: "Bookmarks (id, name, url, category_id, origin_profile_id, tags)"
                            items:
                              additionalProperties: true
                              type: object
                            type: array
                          count:
                            type: integer
                        required:
                          - count
                          - bookmarks
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List bookmarks
      tags:
        - Bookmark
    post:
      description: Create a bookmark
      operationId: createBookmark
      requestBody:
        content:
          application/json:
            schema:
              properties:
                category_id:
                  description: Category id (optional)
                  type: integer
                name:
                  description: Bookmark title
                  type: string
                profile:
                  description: Profile name (optional)
                  type: string
                tags:
                  description: Tags (optional)
                  items:
                    type: string
                  type: array
                url:
                  description: Bookmark URL
                  type: string
              required:
                - name
                - url
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          id:
                            type: integer
                          name:
                            type: string
                          url:
                            type: string
                        required:
                          - id
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Create bookmark
      tags:
        - Bookmark
  /api/bookmarks/categories:
    get:
      description: "List bookmark categories (id, name, parent_id, color, path, depth)"
      operationId: listCategories
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          categories:
                            description: "Categories (id, name, parent_id, color, path, depth)"
                            items:
                              additionalProperties: true
                              type: object
                            type: array
                          count:
                            type: integer
                        required:
                          - count
                          - categories
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List categories
      tags:
        - Bookmark
    post:
      description: "Create a bookmark category and return its id, which bookmark_create and bookmark_update take as category_id."
      operationId: createCategory
      requestBody:
        content:
          application/json:
            schema:
              properties:
                name:
                  description: Category name
                  type: string
                parent_id:
                  description: Parent category id to nest under (from bookmark_list_categories). Omit for a top-level category.
                  type: integer
                profile:
                  description: Profile name (optional)
                  type: string
              required:
                - name
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          category_id:
                            description: Id of the created category
                            type: integer
                          name:
                            type: string
                          parent_id:
                            description: Present only when the category was nested
                            type: integer
                          success:
                            type: boolean
                        required:
                          - success
                          - category_id
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Create category
      tags:
        - Bookmark
  "/api/bookmarks/categories/{p1}":
    delete:
      description: Delete a bookmark category. Fails if it still holds bookmarks or child categories unless delete_contents is true.
      operationId: deleteCategory
      parameters:
        - in: path
          name: p1
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          category_id:
                            type: integer
                          deleted_contents:
                            description: Whether contents were deleted along with the category
                            type: boolean
                          success:
                            type: boolean
                        required:
                          - success
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Delete category
      tags:
        - Bookmark
    put:
      description: Rename a bookmark category
      operationId: renameCategory
      parameters:
        - in: path
          name: p1
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                category_id:
                  description: Category id (from bookmark_list_categories)
                  type: integer
                name:
                  description: New category name
                  type: string
              required:
                - category_id
                - name
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          category_id:
                            type: integer
                          name:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Rename category
      tags:
        - Bookmark
  /api/bookmarks/tags:
    get:
      description: "List every distinct tag used across saved bookmarks, sorted alphabetically. Call this to discover valid values for the tags parameter on bookmark_create and bookmark_update. Unlike bookmark_list, this is not scoped to a profile - tags are shared across all bookmarks."
      operationId: listTags
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        properties:
                          count:
                            type: integer
                          tags:
                            description: "Distinct tag names, sorted"
                            items:
                              type: string
                            type: array
                        required:
                          - count
                          - tags
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List tags
      tags:
        - Bookmark
  "/api/bookmarks/{id}":
    delete:
      description: Delete a bookmark by id
      operationId: deleteBookmark
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Delete bookmark
      tags:
        - Bookmark
    put:
      description: "Update a bookmark's title, url, and/or category by id (unspecified fields keep their current value)"
      operationId: updateBookmark
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                category_id:
                  description: New category id (optional)
                  type: integer
                id:
                  description: Bookmark id
                  type: integer
                title:
                  description: New title (optional)
                  type: string
                url:
                  description: New URL (optional)
                  type: string
              required:
                - id
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Update bookmark
      tags:
        - Bookmark
  "/api/bookmarks/{id}/open":
    post:
      description: Open a bookmark in a new browser
      operationId: openBookmark
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                id:
                  description: Bookmark id
                  type: integer
                layout_uuid:
                  description: "Layout UUID (optional, defaults to first layout)"
                  type: string
                profile:
                  description: Profile to open under (optional)
                  type: string
              required:
                - id
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          bookmark_id:
                            type: integer
                          browser_uuid:
                            type: string
                          url:
                            type: string
                        required:
                          - bookmark_id
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Open bookmark
      tags:
        - Bookmark
  /api/browsers:
    get:
      description: "List the open browsers: uuid, url, title, custom title, profile and layout. layout_uuid narrows it to one layout."
      operationId: getAllBrowsers
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browsers:
                            description: Open browsers
                            items:
                              additionalProperties: true
                              properties:
                                custom_title:
                                  description: "Agent-set label, distinct from the document title"
                                  type: string
                                layout_uuid:
                                  type: string
                                profile:
                                  type: string
                                title:
                                  description: "Live document title, empty when the page has none"
                                  type: string
                                url:
                                  type: string
                                uuid:
                                  type: string
                              required:
                                - uuid
                              type: object
                            type: array
                          count:
                            description: Number of open browsers
                            type: integer
                        required:
                          - count
                          - browsers
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get all browsers
      tags:
        - Browser
  /api/browsers/close:
    post:
      description: "Close many browsers at once: every browser, or only those in layout_uuid, except keep_browser_uuid when given"
      operationId: executeBulkMcpAction2
      requestBody:
        content:
          application/json:
            schema:
              properties:
                keep_browser_uuid:
                  description: A browser to leave open (optional)
                  type: string
                layout_uuid:
                  description: Only close browsers in this layout (optional)
                  type: string
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          closed:
                            description: Browsers asked to close
                            type: integer
                          keep_browser_uuid:
                            type: string
                          layout_uuid:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - closed
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute bulk mcp action
      tags:
        - Browser
  /api/browsers/create:
    post:
      description: Create a new browser instance
      operationId: createBrowser
      requestBody:
        content:
          application/json:
            schema:
              properties:
                auto_refresh_interval:
                  description: Auto-refresh interval in seconds (0 = off)
                  type: integer
                beside_dock_uuid:
                  description: Open the new dock next to this open dock (any dock uuid from layout_get_state) of the same layout
                  type: string
                custom_title:
                  description: Custom title for browser tab
                  type: string
                direction:
                  description: "With beside_dock_uuid: a tab of its area (default), or a new area on that side of it. A floating dock takes only tab."
                  enum:
                    - tab
                    - left
                    - right
                    - up
                    - down
                  type: string
                disable_javascript:
                  description: Create the browser with JavaScript disabled
                  type: boolean
                headless:
                  description: "Create browser in headless mode (hidden, no UI - for automation)"
                  type: boolean
                hide:
                  description: "Create the browser blanked: its dock stays in the layout, titled \"Hidden window\", with the page covered and audio muted (the privacy hide). To keep a browser out of the layout entirely use headless."
                  type: boolean
                layout_uuid:
                  description: "Layout UUID to create browser in (optional, defaults to first layout)"
                  type: string
                lock:
                  description: Lock the dock against moving or closing
                  type: boolean
                mute:
                  description: Start the browser muted
                  type: boolean
                profile:
                  description: Browser profile name
                  type: string
                show_extended_titlebar_profile:
                  description: Show the profile name in the dock titlebar
                  type: boolean
                show_extended_titlebar_proxy:
                  description: Show the proxy in the dock titlebar
                  type: boolean
                toolbar_visible:
                  description: Show the browser toolbar
                  type: boolean
                url:
                  description: Initial URL to navigate to
                  type: string
                zoom_factor:
                  description: "Initial zoom factor (1.0 = 100%)"
                  type: number
              required:
                - url
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Create browser
      tags:
        - Browser
  /api/browsers/create-multiple:
    post:
      description: Create multiple browsers with different configurations
      operationId: createMultipleBrowsers
      requestBody:
        content:
          application/json:
            schema:
              properties:
                browsers:
                  description: Array of browser configurations
                  items:
                    properties:
                      custom_title:
                        description: Custom title for browser tab
                        type: string
                      headless:
                        description: "Create browser in headless mode (hidden, no UI - for automation)"
                        type: boolean
                      layout_uuid:
                        description: "Layout UUID to create browser in (optional, defaults to first layout)"
                        type: string
                      mute:
                        description: Mute audio
                        type: boolean
                      profile:
                        description: Browser profile name
                        type: string
                      proxy:
                        description: Proxy settings
                        type: string
                      toolbar_visible:
                        description: Show toolbar
                        type: boolean
                      url:
                        description: Initial URL to navigate to
                        type: string
                      zoom_factor:
                        description: "Zoom factor (1.0 = 100%)"
                        type: number
                    required:
                      - url
                    type: object
                  type: array
              required:
                - browsers
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Create multiple browsers
      tags:
        - Browser
  /api/browsers/gpu-presets:
    get:
      description: "List the GPU presets browser_set_fingerprint accepts as webgl.gpu_preset, with a description of each."
      operationId: getGpuPresets
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            description: Number of presets returned
                            type: integer
                          presets:
                            description: Available GPU presets
                            items:
                              additionalProperties: true
                              properties:
                                description:
                                  type: string
                                name:
                                  description: Value to pass as gpu_preset
                                  type: string
                              required:
                                - name
                              type: object
                            type: array
                        required:
                          - count
                          - presets
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get gpu presets
      tags:
        - Browser
  /api/browsers/run:
    post:
      description: "Run one action on many browsers: reload, stop, back, forward, navigate (url), execute (script; answers each result) or screenshot (saved; answers each screenshot_uuid for browser_get_screenshot; needs browser.capture). Selects the listed browser_uuids, every browser in layout_uuid, or every browser."
      operationId: executeBulkMcpActionPost
      requestBody:
        content:
          application/json:
            schema:
              properties:
                action:
                  enum:
                    - reload
                    - stop
                    - back
                    - forward
                    - navigate
                    - execute
                    - screenshot
                  type: string
                browser_uuids:
                  description: The browsers to act on
                  items:
                    type: string
                  type: array
                layout_uuid:
                  description: Every browser in this layout (when browser_uuids is absent)
                  type: string
                script:
                  description: "execute: JavaScript to evaluate (needs browser.script)"
                  type: string
                timeout_ms:
                  description: "execute: per-browser wait for the result (default 5000)"
                  type: integer
                url:
                  description: "navigate: http(s) URL"
                  type: string
              required:
                - action
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            type: integer
                          results:
                            description: "One entry per browser: browser_uuid, success, error, and the action's result"
                            items:
                              additionalProperties: true
                              type: object
                            type: array
                          succeeded:
                            type: integer
                        required:
                          - count
                          - succeeded
                          - results
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute bulk mcp action
      tags:
        - Browser
  "/api/browsers/screenshots/{p1}":
    get:
      description: Retrieve a saved screenshot by UUID. Use this after browser_screenshot with save=true. Screenshots expire after 5 minutes.
      operationId: getSavedScreenshot
      parameters:
        - in: path
          name: p1
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get saved screenshot
      tags:
        - Browser
  /api/browsers/set-state:
    post:
      description: "browser_set_state for many browsers: the listed browser_uuids, every browser in layout_uuid, or every browser when neither is given. Answers one result per browser."
      operationId: executeBulkMcpAction
      requestBody:
        content:
          application/json:
            schema:
              properties:
                adblock:
                  description: "This browser's ad-blocking override; 'inherit' follows its profile's override (adblock_set_override), then the global switch. Applies to new requests: reload to re-filter the page already shown. Kept with the workspace. Needs the adblock capability."
                  enum:
                    - inherit
                    - "on"
                    - "off"
                  type: string
                browser_uuids:
                  description: The browsers to act on
                  items:
                    type: string
                  type: array
                devtools_enabled:
                  description: Allow or block DevTools for the browser. Not reported in the state. Needs browser.devtools.
                  type: boolean
                devtools_open:
                  description: "true opens the DevTools window. WebView2 cannot close it programmatically, so false is refused. Not reported in the state. Needs browser.devtools."
                  enum:
                    - true
                  type: boolean
                dialog_policy:
                  description: "How JavaScript dialogs are answered, from the next navigation on. 'default' shows the native dialog, which blocks automation. Needs browser.interact."
                  enum:
                    - default
                    - accept
                    - dismiss
                  type: string
                headless:
                  description: true hides the browser (no UI); false docks it into its layout
                  type: boolean
                layout_uuid:
                  description: Every browser in this layout (when browser_uuids is absent)
                  type: string
                locked:
                  description: "Lock the browser's dock against moving and closing"
                  type: boolean
                muted:
                  type: boolean
                profile:
                  description: "Reload the browser into this existing profile. It reloads the page, so send zoom, scripts_enabled and dialog_policy in a separate call. Needs the profiles capability."
                  type: string
                prompt_text:
                  description: Text prompt() returns under the accept policy
                  type: string
                scripts_enabled:
                  description: The per-browser script toggle. Needs the browser.script capability.
                  type: boolean
                zoom:
                  description: "Zoom factor, 0.25 to 5.0 (1.0 = 100%)"
                  type: number
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            type: integer
                          results:
                            description: "One entry per browser: browser_uuid, success, error, and the action's result"
                            items:
                              additionalProperties: true
                              type: object
                            type: array
                          succeeded:
                            type: integer
                        required:
                          - count
                          - succeeded
                          - results
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute bulk mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/back":
    post:
      description: Navigate browser back in history
      operationId: goBack
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Go back
      tags:
        - Browser
  "/api/browsers/{uuid}/batch":
    post:
      description: Execute multiple browser operations in sequence on one or multiple browsers (100 operations per browser max)
      operationId: executeBatch
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                browsers:
                  description: Array of browser configurations for multi-browser operations
                  items:
                    properties:
                      browser_uuid:
                        description: Browser UUID
                        type: string
                      operations:
                        description: Operations for this browser (max 100 per browser)
                        items:
                          properties:
                            params:
                              description: Tool parameters
                              type: object
                            tool:
                              description: Tool name
                              type: string
                          required:
                            - tool
                            - params
                          type: object
                        type: array
                    required:
                      - browser_uuid
                      - operations
                    type: object
                  type: array
                continue_on_error:
                  description: "Continue executing if an operation fails (default: false)"
                  type: boolean
                operations:
                  description: Operations for single browser mode (max 100 per browser)
                  items:
                    properties:
                      params:
                        description: Parameters for the tool
                        type: object
                      tool:
                        description: "Tool name (e.g., 'navigate', 'click', 'type')"
                        type: string
                    required:
                      - tool
                      - params
                    type: object
                  type: array
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        description: "Single-browser mode reports browser_uuid and operations; multi-browser mode reports browsers, each with its own operations."
                        properties:
                          browser_uuid:
                            description: Present in single-browser mode only
                            type: string
                          browsers:
                            description: Per-browser results. Present in multi-browser mode only.
                            items:
                              additionalProperties: true
                              properties:
                                browser_index:
                                  description: Position of this browser in the submitted array
                                  type: integer
                                browser_uuid:
                                  type: string
                                failure_count:
                                  type: integer
                                operations:
                                  description: Per-operation results for this browser
                                  items:
                                    additionalProperties: true
                                    type: object
                                  type: array
                                success_count:
                                  type: integer
                                total_operations:
                                  type: integer
                              required:
                                - browser_uuid
                                - operations
                              type: object
                            type: array
                          continue_on_error:
                            description: Whether the batch was told to keep going past a failure
                            type: boolean
                          failed:
                            type: integer
                          operations:
                            description: "Per-operation results, in submission order. Present in single-browser mode only."
                            items:
                              additionalProperties: true
                              properties:
                                bytes:
                                  description: Encoded size of an image result
                                  type: integer
                                error:
                                  description: Failure message. Present only when success is false.
                                  type: string
                                mime_type:
                                  description: Present for image results
                                  type: string
                                operation_index:
                                  type: integer
                                structuredContent:
                                  additionalProperties: true
                                  description: "The sub-tool's own payload, whole and untruncated. Present when that tool emits one."
                                  type: object
                                success:
                                  type: boolean
                                text:
                                  description: "The sub-tool's text output, untruncated. Present when it emits no structured payload."
                                  type: string
                                tool:
                                  type: string
                                type:
                                  description: Set to image for screenshot operations
                                  type: string
                              required:
                                - operation_index
                                - tool
                                - success
                              type: object
                            type: array
                          screenshots:
                            description: "Number of image results. Present only when the batch captured any; the images themselves travel as content items, not in this payload."
                            type: integer
                          successful:
                            type: integer
                          total_browsers:
                            description: Present in multi-browser mode only
                            type: integer
                          total_operations:
                            description: Operations actually attempted
                            type: integer
                        required:
                          - total_operations
                          - successful
                          - failed
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute batch
      tags:
        - Browser
  "/api/browsers/{uuid}/cache/clear":
    post:
      description: "Clear this browser's HTTP cache (CDP Network.clearBrowserCache). Does not touch cookies."
      operationId: executeMcpAction21
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/clear":
    post:
      description: Clear an input field
      operationId: clearInput
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                selector:
                  description: CSS selector of input element
                  type: string
                timeout_ms:
                  description: "Timeout in milliseconds (default: 5000)"
                  type: number
              required:
                - selector
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Clear input
      tags:
        - Browser
  "/api/browsers/{uuid}/click":
    post:
      description: Click an element by CSS selector
      operationId: clickElement
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                selector:
                  description: CSS selector of element to click
                  type: string
                timeout_ms:
                  description: "Timeout in milliseconds (default: 5000)"
                  type: number
              required:
                - selector
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Click element
      tags:
        - Browser
  "/api/browsers/{uuid}/click-at":
    post:
      description: Click at raw viewport pixel coordinates using a real (trusted) mouse event. Use when you have coordinates rather than a CSS selector (e.g. from a screenshot or element box).
      operationId: executeMcpAction22
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                x:
                  description: X coordinate in CSS/viewport pixels
                  type: integer
                y:
                  description: Y coordinate in CSS/viewport pixels
                  type: integer
              required:
                - x
                - y
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/close":
    post:
      description: Close a browser instance
      operationId: closeBrowser
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Close browser
      tags:
        - Browser
  "/api/browsers/{uuid}/console":
    get:
      description: Get console messages from the browser
      operationId: getConsoleMessages
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          count:
                            description: Number of captured messages
                            type: integer
                          messages:
                            description: "Captured console messages, oldest first, as recorded text. Severity, source file and line number are not currently captured."
                            items:
                              type: string
                            type: array
                        required:
                          - browser_uuid
                          - count
                          - messages
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get console messages
      tags:
        - Browser
  "/api/browsers/{uuid}/console/clear":
    post:
      description: Clear console messages for the browser
      operationId: clearConsoleMessages
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Clear console messages
      tags:
        - Browser
  "/api/browsers/{uuid}/cookie":
    post:
      description: Set a cookie for the browser
      operationId: setCookie
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                domain:
                  description: Cookie domain (optional)
                  type: string
                name:
                  description: Cookie name
                  type: string
                value:
                  description: Cookie value
                  type: string
              required:
                - name
                - value
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set cookie
      tags:
        - Browser
  "/api/browsers/{uuid}/cookies":
    delete:
      description: "Delete the cookie named name for the current page's URL, or, with all: true, every cookie of the browser's profile on every site (it signs the profile out everywhere). Send exactly one of the two. A key limited to domains cannot delete them all."
      operationId: executeMcpActionDelete
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
    get:
      description: "Get the cookies sent to the current page's URL (HttpOnly included), as name and value, or only those named name"
      operationId: executeMcpActionGet
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          cookies:
                            description: Name and value of each cookie for the current URL
                            items:
                              additionalProperties: true
                              properties:
                                name:
                                  type: string
                                value:
                                  type: string
                              required:
                                - name
                              type: object
                            type: array
                          count:
                            description: Number of cookies returned
                            type: integer
                        required:
                          - browser_uuid
                          - count
                          - cookies
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/drag":
    post:
      description: "Drag from one element to another using real (trusted) mouse events: press at the source center, move in steps to the target center, release. Works for sliders, sortable lists, and canvas/custom drag handlers."
      operationId: executeMcpAction17
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                source_selector:
                  description: CSS selector of the element to drag from
                  type: string
                target_selector:
                  description: CSS selector of the element to drop onto
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              required:
                - source_selector
                - target_selector
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/element":
    post:
      description: "Read the first element matching a CSS selector in one call: text content, whether it is visible, its viewport box and key computed styles, and the value of attribute when one is named."
      operationId: executeMcpAction8
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                attribute:
                  description: Attribute to read into value (optional)
                  type: string
                selector:
                  description: CSS selector of the element
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              required:
                - selector
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          attribute:
                            description: The attribute that was requested
                            type: string
                          backgroundColor:
                            type: string
                          bottom:
                            type: number
                          browser_uuid:
                            type: string
                          color:
                            type: string
                          display:
                            description: Computed style value
                            type: string
                          fontSize:
                            type: string
                          found:
                            description: False when the selector matched nothing; the other fields are then absent
                            type: boolean
                          height:
                            type: number
                          left:
                            type: number
                          opacity:
                            type: string
                          position:
                            type: string
                          right:
                            type: number
                          selector:
                            type: string
                          text:
                            description: "The element's text content"
                            type: string
                          top:
                            type: number
                          value:
                            description: "The attribute's value; null when the element does not carry it"
                            type:
                              - string
                              - "null"
                          visibility:
                            type: string
                          visible:
                            description: "Displayed, not hidden, not fully transparent, and with a non-zero size"
                            type: boolean
                          width:
                            type: number
                          x:
                            description: "Viewport-relative position, in CSS pixels"
                            type: number
                          y:
                            type: number
                          zIndex:
                            type: string
                        required:
                          - browser_uuid
                          - selector
                          - found
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/emulation":
    post:
      description: "Change a browser's emulation in one call. Only the fields sent change; null clears a field back to the real value. device sets viewport, pixel ratio, touch and user agent together and survives navigation; a docked browser's own viewport snaps back to its dock, so use device for a stable page size. Answers the full state."
      operationId: executeMcpActionPost
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                device:
                  description: "Device to emulate, or null to clear device emulation. Spaces, hyphens and underscores are ignored. mobile: iPhone-class 375x812 @3x. tablet: iPad-class 768x1024 @2x. iphone15: 393x852 @3x. ipadpro: 1024x1366 @2x. pixel8: 412x915 @2.625x, Android/Chrome with client hints."
                  enum:
                    - mobile
                    - tablet
                    - iphone15
                    - ipadpro
                    - pixel8
                    - null
                  type:
                    - string
                    - "null"
                geolocation:
                  description: "Raw lat/lng override, not stored; null clears it. For the persisted per-profile override use browser_set_fingerprint's geo section."
                  properties:
                    latitude:
                      type: number
                    longitude:
                      type: number
                  type:
                    - object
                    - "null"
                offline:
                  type: boolean
                user_agent:
                  description: "User agent, or null to follow the profile again. With fingerprint identity on, this is stored as the profile's identity override."
                  type:
                    - string
                    - "null"
                viewport:
                  description: Resize the web view
                  properties:
                    height:
                      type: integer
                    width:
                      type: integer
                  type: object
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          adblock:
                            description: "This browser's own override"
                            enum:
                              - inherit
                              - "on"
                              - "off"
                            type: string
                          adblock_effective:
                            description: "Whether ads are blocked in this browser, after the browser, profile and global settings"
                            type: boolean
                          dialog_policy:
                            enum:
                              - default
                              - accept
                              - dismiss
                            type: string
                          emulated_device:
                            type:
                              - string
                              - "null"
                          found:
                            type: boolean
                          headers:
                            additionalProperties:
                              type: string
                            type: object
                          headless:
                            type: boolean
                          layout_uuid:
                            type: string
                          locked:
                            type: boolean
                          muted:
                            type: boolean
                          offline:
                            type: boolean
                          profile:
                            type: string
                          scripts_enabled:
                            type: boolean
                          title:
                            type: string
                          url:
                            type: string
                          user_agent:
                            description: Configured user agent; a fingerprint identity or device emulation may override what sites see
                            type: string
                          uuid:
                            type: string
                          viewport:
                            description: Live size; docking and resizing move it
                            type: object
                          zoom:
                            type: number
                        required:
                          - uuid
                          - found
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/execute":
    post:
      description: "Execute JavaScript code in browser. The value of the last expression is returned; a returned promise is awaited and top-level await works. A thrown exception, or a promise still pending at timeout_ms, is reported as an error."
      operationId: executeJavaScript
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                script:
                  description: JavaScript code to execute
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, including any awaited promise, in ms. Default 5000."
                  type: integer
              required:
                - script
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          result:
                            description: "The value the script evaluated to, decoded from its JSON form. Absent on timeout."
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute java script
      tags:
        - Browser
  "/api/browsers/{uuid}/execute-with-result":
    post:
      description: "Execute JavaScript code in browser. The value of the last expression is returned; a returned promise is awaited and top-level await works. A thrown exception, or a promise still pending at timeout_ms, is reported as an error."
      operationId: executeJavaScriptWithResult
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                script:
                  description: JavaScript code to execute
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, including any awaited promise, in ms. Default 5000."
                  type: integer
              required:
                - script
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          result:
                            description: "The value the script evaluated to, decoded from its JSON form. Absent on timeout."
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute java script with result
      tags:
        - Browser
  "/api/browsers/{uuid}/extract":
    post:
      description: "Structured, schema-driven extraction. Provide a 'fields' map of {fieldName: {selector, attr, all}} and get back JSON. attr: 'text' (default), 'html', or an attribute name like 'href'. all:true returns an array of matches."
      operationId: extractContent
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                fields:
                  description: "Map of fieldName -> {selector, attr, all}"
                  type: object
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              required:
                - fields
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          data:
                            additionalProperties: true
                            description: "One key per entry in the requested fields map. A field with all:true yields an array of matches, otherwise a single value, and null when nothing matched."
                            type: object
                        required:
                          - data
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Extract content
      tags:
        - Browser
  "/api/browsers/{uuid}/find":
    post:
      description: Find visible interactive elements whose role or accessible name matches a text query. Returns matches with CSS selectors usable by browser_click/browser_set_value.
      operationId: executeMcpAction5
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                frame:
                  description: Optional CSS selector for a same-origin iframe to search inside
                  type: string
                limit:
                  description: Max matches to return (0 = no limit)
                  type: integer
                query:
                  description: Text to match against element name/role
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              required:
                - query
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            description: Number of matches returned (see the limit parameter)
                            type: integer
                          matches:
                            description: Visible interactive elements whose role or accessible name matched the query
                            items:
                              additionalProperties: true
                              properties:
                                checked:
                                  description: Present only for checkboxes and radios
                                  type: boolean
                                disabled:
                                  description: Present only when the element is disabled
                                  type: boolean
                                href:
                                  description: Present only for links
                                  type: string
                                name:
                                  description: Accessible name
                                  type: string
                                role:
                                  description: "Explicit role attribute, or one derived from the tag and input type"
                                  type: string
                                selector:
                                  description: CSS selector usable by browser_click and browser_set_value
                                  type: string
                              required:
                                - role
                                - name
                                - selector
                              type: object
                            type: array
                        required:
                          - matches
                          - count
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/fingerprint":
    get:
      description: "Get a browser profile's fingerprint protection config, with its geolocation override under geo (including the last resolved result in auto mode)."
      operationId: getFingerprint
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          audio:
                            additionalProperties: true
                            type: object
                          canvas:
                            additionalProperties: true
                            type: object
                          client_rects:
                            additionalProperties: true
                            type: object
                          device:
                            additionalProperties: true
                            type: object
                          device_override:
                            additionalProperties: true
                            type: object
                          enabled:
                            type: boolean
                          font:
                            additionalProperties: true
                            type: object
                          geo:
                            additionalProperties: true
                            description: "The geolocation override, with the last resolved result in auto mode"
                            type: object
                          identity:
                            additionalProperties: true
                            type: object
                          media_prefs:
                            additionalProperties: true
                            type: object
                          navigator:
                            additionalProperties: true
                            type: object
                          network:
                            additionalProperties: true
                            type: object
                          permissions:
                            additionalProperties: true
                            type: object
                          platform:
                            type: string
                          preset:
                            type: string
                          randomize_on_refresh:
                            type: boolean
                          seed:
                            type: string
                          timing:
                            additionalProperties: true
                            type: object
                          webgl:
                            additionalProperties: true
                            type: object
                        required:
                          - enabled
                          - preset
                          - platform
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get fingerprint
      tags:
        - Browser
    post:
      description: "Change a browser profile's fingerprint protection, including its geolocation override. Only what is sent changes: a section (canvas, webgl, identity, network, ...) is merged field by field into the stored one. Turning canvas, webgl or audio on also turns protection on. A preset is a new baseline: the config restarts from that preset and the other fields sent apply on top. geo sets the geolocation, timezone and locale override (needs protection on; null removes it). reset: true clears the whole config. The config belongs to the browser's profile and applies to every open browser of it. A named GPU card sets platform to that card's OS, unless identity carries an explicit override_ua (follow_profile_ua=false): then the UA's OS is the platform and a card from another OS is reset to Auto. enabled=false also turns the geolocation override off. Answers the config, as browser_get_fingerprint does."
      operationId: setFingerprint
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                audio:
                  description: Audio fingerprint protection config
                  properties:
                    enabled:
                      type: boolean
                    noise_level:
                      enum:
                        - subtle
                        - moderate
                        - aggressive
                      type: string
                  type: object
                canvas:
                  description: Canvas fingerprint protection config
                  properties:
                    enabled:
                      type: boolean
                    noise_level:
                      enum:
                        - subtle
                        - moderate
                        - aggressive
                      type: string
                  type: object
                client_rects:
                  additionalProperties: true
                  description: getClientRects/getBoundingClientRect noise config
                  type: object
                device:
                  additionalProperties: true
                  description: "Device surfaces: battery, plugins, screen orientation, media capabilities, speech voices"
                  type: object
                device_override:
                  additionalProperties: true
                  description: Explicit device value pins overriding the sampled persona
                  type: object
                enabled:
                  description: Enable fingerprint protection
                  type: boolean
                font:
                  additionalProperties: true
                  description: Font enumeration/metrics protection config
                  type: object
                geo:
                  description: "Geolocation, timezone and locale override, merged into the stored one; null removes it. Fields: enabled, mode (auto = from the proxy IP, manual), manual_latitude, manual_longitude, manual_timezone (IANA), manual_locale, manual_accuracy (metres). Persisted per profile, unlike browser_set_emulation's raw geolocation."
                  properties:
                    enabled:
                      type: boolean
                    manual_accuracy:
                      type: number
                    manual_latitude:
                      type: number
                    manual_locale:
                      type: string
                    manual_longitude:
                      type: number
                    manual_timezone:
                      type: string
                    mode:
                      enum:
                        - auto
                        - manual
                      type: string
                  type:
                    - object
                    - "null"
                identity:
                  additionalProperties: true
                  description: "User-Agent identity: enabled, follow_profile_ua, override_ua"
                  type: object
                media_prefs:
                  additionalProperties: true
                  description: prefers-color-scheme / reduced-motion / contrast overrides
                  type: object
                navigator:
                  additionalProperties: true
                  description: "navigator surface protection config (hardwareConcurrency, deviceMemory, ...)"
                  type: object
                network:
                  additionalProperties: true
                  description: "Network surfaces: webrtc_enabled, webrtc_mode (disable|strip-host|strip-srflx|proxy-only), connection_*, accept_language_*"
                  type: object
                permissions:
                  additionalProperties: true
                  description: "Permissions API answers: camera_state, microphone_state, geolocation_state, notifications_state"
                  type: object
                platform:
                  description: Claimed OS for the persona
                  enum:
                    - windows
                    - macos
                    - linux
                  type: string
                preset:
                  description: "Restart from this preset: none, balanced, maximum, custom"
                  enum:
                    - none
                    - balanced
                    - maximum
                    - custom
                  type: string
                randomize_on_refresh:
                  description: Generate new random fingerprint on every page load
                  type: boolean
                reset:
                  description: Clear the whole config (protection off). Send nothing else with it.
                  enum:
                    - true
                  type: boolean
                seed:
                  description: Custom seed (blank = auto from profile)
                  type: string
                timing:
                  additionalProperties: true
                  description: "Clock quantization: clock_quantization_enabled, quantization_ms"
                  type: object
                webgl:
                  description: WebGL fingerprint protection config
                  properties:
                    custom_profile:
                      description: Custom GPU profile fields; sending one chooses Custom
                      type: object
                    enabled:
                      type: boolean
                    gpu_preset:
                      description: "GPU profile to emulate. Use browser_list_gpu_presets for the full set, or Custom with custom_profile."
                      type: string
                  type: object
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          audio:
                            additionalProperties: true
                            type: object
                          canvas:
                            additionalProperties: true
                            type: object
                          client_rects:
                            additionalProperties: true
                            type: object
                          device:
                            additionalProperties: true
                            type: object
                          device_override:
                            additionalProperties: true
                            type: object
                          enabled:
                            type: boolean
                          font:
                            additionalProperties: true
                            type: object
                          geo:
                            additionalProperties: true
                            description: "The geolocation override, with the last resolved result in auto mode"
                            type: object
                          identity:
                            additionalProperties: true
                            type: object
                          media_prefs:
                            additionalProperties: true
                            type: object
                          navigator:
                            additionalProperties: true
                            type: object
                          network:
                            additionalProperties: true
                            type: object
                          permissions:
                            additionalProperties: true
                            type: object
                          platform:
                            type: string
                          preset:
                            type: string
                          randomize_on_refresh:
                            type: boolean
                          seed:
                            type: string
                          timing:
                            additionalProperties: true
                            type: object
                          webgl:
                            additionalProperties: true
                            type: object
                        required:
                          - enabled
                          - preset
                          - platform
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set fingerprint
      tags:
        - Browser
  "/api/browsers/{uuid}/forms":
    post:
      description: "Enumerate forms and their fields {name, id, type, label, placeholder, required, options, selector}. Lets you fill forms by known field names instead of guessing selectors. Password/sensitive values are never returned."
      operationId: executeMcpAction3
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                frame:
                  description: Optional CSS selector for a same-origin iframe to read inside
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            description: Number of forms returned
                            type: integer
                          forms:
                            description: Forms in document order
                            items:
                              additionalProperties: true
                              properties:
                                action:
                                  type:
                                    - string
                                    - "null"
                                fields:
                                  description: Visible fields. Hidden inputs are omitted.
                                  items:
                                    additionalProperties: true
                                    properties:
                                      id:
                                        type:
                                          - string
                                          - "null"
                                      label:
                                        description: "Associated label text, truncated to 200 characters"
                                        type: string
                                      name:
                                        type:
                                          - string
                                          - "null"
                                      options:
                                        description: Present only for select fields. Capped at 50 options.
                                        items:
                                          additionalProperties: true
                                          properties:
                                            label:
                                              type: string
                                            value:
                                              type: string
                                          type: object
                                        type: array
                                      placeholder:
                                        type:
                                          - string
                                          - "null"
                                      required:
                                        type: boolean
                                      selector:
                                        description: CSS selector usable by browser_set_value
                                        type: string
                                      type:
                                        description: "Input type, or the tag name for select and textarea"
                                        type: string
                                      value:
                                        description: "Current value, truncated to 200 characters. Omitted entirely for password and other sensitive fields."
                                        type: string
                                    required:
                                      - type
                                      - selector
                                      - required
                                    type: object
                                  type: array
                                id:
                                  type:
                                    - string
                                    - "null"
                                index:
                                  description: Position of the form in the document
                                  type: integer
                                method:
                                  description: "Lowercased submit method, defaulting to get"
                                  type: string
                                name:
                                  type:
                                    - string
                                    - "null"
                                selector:
                                  description: CSS selector for the form
                                  type: string
                              required:
                                - index
                                - selector
                                - method
                                - fields
                              type: object
                            type: array
                        required:
                          - forms
                          - count
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/forward":
    post:
      description: Navigate browser forward in history
      operationId: goForward
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Go forward
      tags:
        - Browser
  "/api/browsers/{uuid}/headers":
    get:
      description: List the custom request headers currently applied to a browser. Readable counterpart to browser_set_headers. These are session-only and do not survive a restart.
      operationId: getCustomHeaders
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        properties:
                          browser_uuid:
                            type: string
                          count:
                            type: integer
                          headers:
                            additionalProperties:
                              type: string
                            description: Header name to value
                            type: object
                        required:
                          - browser_uuid
                          - headers
                          - count
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get custom headers
      tags:
        - Browser
    post:
      description: "Add, change or remove custom HTTP request headers sent by this browser on subsequent requests. headers maps each name to its value, or to null to remove it. Every name is checked first; Authorization, Cookie, Host and Proxy-Authorization are refused. Session-only. Answers the headers now applied."
      operationId: executeMcpAction2
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                headers:
                  additionalProperties:
                    type:
                      - string
                      - "null"
                  description: "Header name to value, or to null to remove it"
                  type: object
              required:
                - headers
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        properties:
                          browser_uuid:
                            type: string
                          count:
                            type: integer
                          headers:
                            additionalProperties:
                              type: string
                            type: object
                        required:
                          - browser_uuid
                          - headers
                          - count
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/history/go":
    post:
      description: "Move within the browser's session history by a relative delta (e.g. -1 = back, 1 = forward, -2 = back twice)."
      operationId: executeMcpAction7
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                delta:
                  description: "Relative history offset (negative = back, positive = forward)"
                  type: integer
              required:
                - delta
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/hover":
    post:
      description: "Hover the pointer over an element (dispatches pointer/mouse enter+over+move events), triggering hover menus and tooltips. Scrolls the element into view first."
      operationId: executeMcpAction12
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                selector:
                  description: CSS selector of the element to hover
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              required:
                - selector
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/inject":
    post:
      description: "Add CSS (css) or an external script by URL (script_url, http or https) to the current page. Send exactly one."
      operationId: executeMcpAction11
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                css:
                  description: CSS to add
                  type: string
                script_url:
                  description: http(s) URL of a script to add
                  type: string
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/last-dialog":
    post:
      description: "Get the most recent JavaScript dialog captured for this browser (only captured while a non-default dialog policy is active): {policy, kind, message, uri, captured}."
      operationId: executeMcpAction23
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          captured:
                            description: Whether a dialog has been captured for this browser
                            type: boolean
                          kind:
                            description: "Dialog kind, empty when nothing has been captured"
                            type: string
                          message:
                            description: Dialog message text
                            type: string
                          policy:
                            description: "Active dialog policy (browser_set_state dialog_policy): default, accept or dismiss"
                            type: string
                          registered:
                            description: Whether dialog interception is currently registered
                            type: boolean
                          uri:
                            description: Page that raised the dialog
                            type: string
                        required:
                          - browser_uuid
                          - policy
                          - captured
                          - registered
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/links":
    post:
      description: "Extract all hyperlinks on the page as a compact list of {text, href, rel}. Deduplicated. A token-cheap navigation map instead of raw HTML."
      operationId: getLinks
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                frame:
                  description: Optional CSS selector for a same-origin iframe to read inside
                  type: string
                limit:
                  description: Max links to return (0 = no limit)
                  type: integer
                selector:
                  description: Optional CSS selector to scope link collection
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            description: Number of links returned (see the limit parameter)
                            type: integer
                          links:
                            description: Deduplicated hyperlinks in document order
                            items:
                              additionalProperties: true
                              properties:
                                href:
                                  description: Absolute URL
                                  type: string
                                rel:
                                  description: "The rel attribute, null when absent"
                                  type:
                                    - string
                                    - "null"
                                text:
                                  description: "Link text or aria-label, truncated to 300 characters"
                                  type: string
                              required:
                                - text
                                - href
                              type: object
                            type: array
                        required:
                          - links
                          - count
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get links
      tags:
        - Browser
  "/api/browsers/{uuid}/metadata":
    get:
      description: "Get page metadata: title, description, canonical URL, author, published/modified dates, language, favicon, Open Graph + Twitter cards, word count and reading time."
      operationId: getMetadata
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          metadata:
                            additionalProperties: true
                            description: Page metadata. String fields are null when the page does not declare them.
                            properties:
                              author:
                                type:
                                  - string
                                  - "null"
                              canonical:
                                description: "Canonical URL from link[rel=canonical]"
                                type:
                                  - string
                                  - "null"
                              description:
                                type:
                                  - string
                                  - "null"
                              favicon:
                                description: "Declared icon, falling back to the origin's /favicon.ico"
                                type: string
                              image:
                                type:
                                  - string
                                  - "null"
                              lang:
                                description: The lang attribute on the document element
                                type:
                                  - string
                                  - "null"
                              modified:
                                description: "article:modified_time, as declared by the page"
                                type:
                                  - string
                                  - "null"
                              og:
                                additionalProperties: true
                                description: "Open Graph properties, keyed without the og: prefix"
                                type: object
                              published:
                                description: "article:published_time, as declared by the page"
                                type:
                                  - string
                                  - "null"
                              readingTimeMin:
                                description: "Estimated reading time in minutes at 200 words per minute, minimum 1"
                                type: integer
                              siteName:
                                type:
                                  - string
                                  - "null"
                              title:
                                type: string
                              twitter:
                                additionalProperties: true
                                description: "Twitter card properties, keyed without the twitter: prefix"
                                type: object
                              type:
                                description: "The og:type value"
                                type:
                                  - string
                                  - "null"
                              url:
                                description: "The page's current location"
                                type: string
                              wordCount:
                                description: Whitespace-delimited word count of the rendered body text
                                type: integer
                            required:
                              - title
                              - url
                              - favicon
                              - wordCount
                              - readingTimeMin
                            type: object
                        required:
                          - metadata
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get metadata
      tags:
        - Browser
  "/api/browsers/{uuid}/navigate":
    post:
      description: Navigate a browser to a specific URL
      operationId: navigate
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                url:
                  description: URL to navigate to
                  type: string
              required:
                - url
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Navigate
      tags:
        - Browser
  "/api/browsers/{uuid}/network":
    post:
      description: "List the network requests the page has made (from the Resource Timing API): url, type, protocol, size, and duration, plus navigation timing. Note: does NOT include status codes, headers, or response bodies."
      operationId: executeMcpAction15
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                filter:
                  description: Only requests whose URL contains this substring (optional)
                  type: string
                limit:
                  description: Max requests to return (0 = all)
                  type: integer
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            description: Number of requests returned (see the filter and limit parameters)
                            type: integer
                          navigation:
                            additionalProperties: true
                            description: Navigation timing for the current document. Absent when the browser reports no navigation entry.
                            properties:
                              domContentLoadedMs:
                                type: integer
                              durationMs:
                                type: integer
                              loadEventMs:
                                type: integer
                              type:
                                description: "How the document was reached, for example navigate, reload or back_forward"
                                type: string
                              url:
                                type: string
                            type: object
                          requests:
                            description: "Resource Timing entries. Excludes status codes, headers and response bodies."
                            items:
                              additionalProperties: true
                              properties:
                                decodedSize:
                                  type: integer
                                durationMs:
                                  type: integer
                                encodedSize:
                                  type: integer
                                protocol:
                                  description: "Next-hop protocol, null when the origin does not expose it"
                                  type:
                                    - string
                                    - "null"
                                startMs:
                                  description: Start time in milliseconds relative to navigation start
                                  type: integer
                                transferSize:
                                  description: "Bytes over the wire, 0 for cached responses"
                                  type: integer
                                type:
                                  description: "What initiated the request, for example script, img or fetch"
                                  type: string
                                url:
                                  type: string
                              required:
                                - url
                                - type
                                - startMs
                                - durationMs
                              type: object
                            type: array
                        required:
                          - requests
                          - count
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/pdf":
    post:
      description: Print page to PDF. Output is restricted to your Documents or Downloads folder.
      operationId: printToPdf
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                file_path:
                  description: "Absolute path ending in .pdf, inside your Documents or Downloads folder. Paths elsewhere, relative paths and UNC paths are rejected. WSL users: use Windows paths (C:\\Users\\<you>\\Documents\\file.pdf), readable at /mnt/c/Users/<you>/Documents/file.pdf"
                  type: string
              required:
                - file_path
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Print to pdf
      tags:
        - Browser
  "/api/browsers/{uuid}/press-key":
    post:
      description: "Send a real (trusted) key press to the focused element via native input. Accepts a named key or a single printable character. Named keys (case-insensitive): Enter/Return, Tab, Escape/Esc, Backspace, Delete/Del, Space, Up/ArrowUp, Down/ArrowDown, Left/ArrowLeft, Right/ArrowRight, Home, End, PageUp, PageDown, Insert, and F1-F24 (F1-F20 on macOS, where Home/End also keep their Mac meaning: they scroll instead of moving the caret). Use this for Enter-to-submit / Tab-between-fields where synthetic JS key events do not work. Modifier combos (Ctrl+A etc.) are not yet supported."
      operationId: executeMcpAction6
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                key:
                  description: "A named key from the tool description (e.g. Enter, Tab, ArrowDown, F5) or a single printable character. Anything else is rejected."
                  type: string
              required:
                - key
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/read":
    post:
      description: "Read the page as clean, LLM-friendly content instead of raw HTML. Strips boilerplate (article mode), converts to markdown or plain text, and supports paging via max_chars + offset. Prefer this over browser_get_source."
      operationId: readContent
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                format:
                  description: Output format. Default markdown.
                  enum:
                    - markdown
                    - text
                  type: string
                frame:
                  description: Optional CSS selector for a same-origin iframe to read inside (cross-origin frames are not accessible)
                  type: string
                include_images:
                  description: Keep images in markdown (default false)
                  type: boolean
                include_links:
                  description: Keep links in markdown (default true)
                  type: boolean
                max_chars:
                  description: Max characters to return (0 = no limit). Use with offset to page.
                  type: integer
                mode:
                  description: article = main content only (boilerplate stripped); full = whole page cleaned; text = plain readable text (lightest). Default article.
                  enum:
                    - article
                    - full
                    - text
                  type: string
                offset:
                  description: Character offset to start from (for paging)
                  type: integer
                selector:
                  description: Optional CSS selector to scope extraction to a subtree
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          base_url:
                            description: "Page URL the content was read from, used to resolve relative links"
                            type: string
                          browser_uuid:
                            type: string
                          content:
                            description: "The windowed content, without the paging footer that the text block carries"
                            type: string
                          format:
                            description: The output format that was applied
                            type: string
                          max_chars:
                            description: "The requested window size, 0 when unlimited"
                            type: integer
                          mode:
                            description: The read mode that was applied
                            type: string
                          offset:
                            description: "Character offset this window starts at, clamped to the content length"
                            type: integer
                          returned_chars:
                            description: Length of the content field
                            type: integer
                          total_chars:
                            description: "Length of the converted content, before windowing"
                            type: integer
                          truncated:
                            description: True when more characters remain past this window
                            type: boolean
                        required:
                          - browser_uuid
                          - mode
                          - format
                          - total_chars
                          - offset
                          - returned_chars
                          - truncated
                          - content
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Read content
      tags:
        - Browser
  "/api/browsers/{uuid}/reload":
    post:
      description: Reload the current page
      operationId: reload
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Reload
      tags:
        - Browser
  "/api/browsers/{uuid}/right-click":
    post:
      description: Right-click (context-menu) an element by dispatching mousedown/mouseup/contextmenu with the secondary button. Scrolls the element into view first.
      operationId: executeMcpAction13
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                selector:
                  description: CSS selector of the element to right-click
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              required:
                - selector
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/screenshot":
    post:
      description: "Take a screenshot of the page - returns base64-encoded PNG image data. Use save=true for batch operations to reduce token usage (returns UUID instead of image data, use browser_get_screenshot to retrieve)."
      operationId: takeScreenshotPost
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                format:
                  description: "Output format (default: 'jpeg')"
                  enum:
                    - png
                    - jpeg
                  type: string
                full_page:
                  description: "Capture entire scrollable page (default: false)"
                  type: boolean
                height:
                  description: "Viewport height in pixels (default: 1080)"
                  maximum: 16384
                  minimum: 1
                  type: number
                quality:
                  description: "JPEG quality (default: 90, ignored for PNG)"
                  maximum: 100
                  minimum: 0
                  type: number
                save:
                  description: "If true, store screenshot server-side and return UUID only (RECOMMENDED for batch operations to reduce token usage). Use browser_get_screenshot to retrieve. Screenshots expire after 5 minutes. (default: false)"
                  type: boolean
                width:
                  description: "Viewport width in pixels (default: 1920)"
                  maximum: 16384
                  minimum: 1
                  type: number
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Take screenshot
      tags:
        - Browser
  "/api/browsers/{uuid}/screenshot/element":
    post:
      description: "Screenshot a single element (scrolls it into view, captures just its bounding box). Returns an image. Far smaller than a full-page screenshot when you only need one component."
      operationId: executeMcpAction16
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                format:
                  description: Image format (default png)
                  enum:
                    - png
                    - jpeg
                  type: string
                quality:
                  description: JPEG quality (ignored for png)
                  maximum: 100
                  minimum: 0
                  type: integer
                selector:
                  description: CSS selector of the element to capture
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              required:
                - selector
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/scroll":
    post:
      description: "Scroll the page to x, y (page coordinates, not negative), or by x, y when relative is true"
      operationId: executeMcpAction10
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                relative:
                  description: "Scroll by x, y instead of to them (default false)"
                  type: boolean
                x:
                  description: "Horizontal position, or offset when relative"
                  type: integer
                y:
                  description: "Vertical position, or offset when relative"
                  type: integer
              required:
                - x
                - y
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/set-value":
    post:
      description: Set value of an input element
      operationId: setInputValue
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                selector:
                  description: CSS selector of input element
                  type: string
                timeout_ms:
                  description: "Timeout in milliseconds (default: 5000)"
                  type: number
                value:
                  description: Value to set
                  type: string
              required:
                - selector
                - value
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set input value
      tags:
        - Browser
  "/api/browsers/{uuid}/snapshot":
    post:
      description: "Token-efficient interactive snapshot: a compact list of visible interactive elements (links, buttons, inputs, selects) each with role, accessible name and a CSS selector usable by browser_click/browser_set_value, plus a heading outline. Far cheaper than a screenshot for driving a page."
      operationId: executeMcpAction4
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                frame:
                  description: Optional CSS selector for a same-origin iframe to snapshot inside
                  type: string
                limit:
                  description: Max interactive elements to return (0 = no limit)
                  type: integer
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            description: Number of interactive elements returned (see the limit parameter)
                            type: integer
                          headings:
                            description: "Heading outline in document order, capped at 100 entries"
                            items:
                              additionalProperties: true
                              properties:
                                level:
                                  description: "Heading level, 1 through 6"
                                  type: integer
                                text:
                                  description: "Heading text, truncated to 200 characters"
                                  type: string
                              required:
                                - level
                                - text
                              type: object
                            type: array
                          interactive:
                            description: Visible interactive elements
                            items:
                              additionalProperties: true
                              properties:
                                checked:
                                  description: Present only for checkboxes and radios
                                  type: boolean
                                disabled:
                                  description: Present only when the element is disabled
                                  type: boolean
                                href:
                                  description: Present only for links
                                  type: string
                                name:
                                  description: Accessible name
                                  type: string
                                role:
                                  description: "Explicit role attribute, or one derived from the tag and input type"
                                  type: string
                                selector:
                                  description: CSS selector usable by browser_click and browser_set_value
                                  type: string
                              required:
                                - role
                                - name
                                - selector
                              type: object
                            type: array
                          title:
                            description: Live document title
                            type: string
                          url:
                            description: "The page's current location"
                            type: string
                        required:
                          - title
                          - url
                          - headings
                          - interactive
                          - count
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/source":
    get:
      description: Get raw page source HTML. Token-heavy - prefer browser_read for clean content. Supports clean (strip script/style/svg/etc.) and max_chars + offset paging to avoid dumping the whole document.
      operationId: getPageSourceGet
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          clean:
                            description: Whether the noise-stripping mode was applied
                            type: boolean
                          max_chars:
                            description: "The requested window size, 0 when unlimited"
                            type: integer
                          offset:
                            description: "Character offset this window starts at, clamped to the document length"
                            type: integer
                          returned_chars:
                            description: Length of the source field
                            type: integer
                          source:
                            description: "The windowed HTML, without the paging footer that the text block carries"
                            type: string
                          total_chars:
                            description: "Length of the whole document, before windowing"
                            type: integer
                          truncated:
                            description: True when more characters remain past this window
                            type: boolean
                        required:
                          - browser_uuid
                          - total_chars
                          - offset
                          - returned_chars
                          - truncated
                          - source
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get page source
      tags:
        - Browser
  "/api/browsers/{uuid}/state":
    get:
      description: "Get a browser's full state: identity, navigation, every field browser_set_state and browser_set_emulation set (zoom, muted, locked, scripts_enabled, adblock, profile, headless, dialog_policy, user_agent, viewport, emulated_device, offline), whether ads are blocked (adblock_effective) and custom request headers. The raw geolocation override is not readable."
      operationId: getBrowserState
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          adblock:
                            description: "This browser's own override"
                            enum:
                              - inherit
                              - "on"
                              - "off"
                            type: string
                          adblock_effective:
                            description: "Whether ads are blocked in this browser, after the browser, profile and global settings"
                            type: boolean
                          dialog_policy:
                            enum:
                              - default
                              - accept
                              - dismiss
                            type: string
                          emulated_device:
                            type:
                              - string
                              - "null"
                          found:
                            type: boolean
                          headers:
                            additionalProperties:
                              type: string
                            type: object
                          headless:
                            type: boolean
                          layout_uuid:
                            type: string
                          locked:
                            type: boolean
                          muted:
                            type: boolean
                          offline:
                            type: boolean
                          profile:
                            type: string
                          scripts_enabled:
                            type: boolean
                          title:
                            type: string
                          url:
                            type: string
                          user_agent:
                            description: Configured user agent; a fingerprint identity or device emulation may override what sites see
                            type: string
                          uuid:
                            type: string
                          viewport:
                            description: Live size; docking and resizing move it
                            type: object
                          zoom:
                            type: number
                        required:
                          - uuid
                          - found
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get browser state
      tags:
        - Browser
    post:
      description: "Change any part of a browser's state in one call: locked, muted, zoom, scripts_enabled, adblock, profile, headless, dialog_policy, devtools_enabled, devtools_open. Only the fields sent change; every field is checked before any changes. Answers the full state, as browser_get_state does."
      operationId: executeMcpAction
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                adblock:
                  description: "This browser's ad-blocking override; 'inherit' follows its profile's override (adblock_set_override), then the global switch. Applies to new requests: reload to re-filter the page already shown. Kept with the workspace. Needs the adblock capability."
                  enum:
                    - inherit
                    - "on"
                    - "off"
                  type: string
                devtools_enabled:
                  description: Allow or block DevTools for the browser. Not reported in the state. Needs browser.devtools.
                  type: boolean
                devtools_open:
                  description: "true opens the DevTools window. WebView2 cannot close it programmatically, so false is refused. Not reported in the state. Needs browser.devtools."
                  enum:
                    - true
                  type: boolean
                dialog_policy:
                  description: "How JavaScript dialogs are answered, from the next navigation on. 'default' shows the native dialog, which blocks automation. Needs browser.interact."
                  enum:
                    - default
                    - accept
                    - dismiss
                  type: string
                headless:
                  description: true hides the browser (no UI); false docks it into its layout
                  type: boolean
                locked:
                  description: "Lock the browser's dock against moving and closing"
                  type: boolean
                muted:
                  type: boolean
                profile:
                  description: "Reload the browser into this existing profile. It reloads the page, so send zoom, scripts_enabled and dialog_policy in a separate call. Needs the profiles capability."
                  type: string
                prompt_text:
                  description: Text prompt() returns under the accept policy
                  type: string
                scripts_enabled:
                  description: The per-browser script toggle. Needs the browser.script capability.
                  type: boolean
                zoom:
                  description: "Zoom factor, 0.25 to 5.0 (1.0 = 100%)"
                  type: number
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          adblock:
                            description: "This browser's own override"
                            enum:
                              - inherit
                              - "on"
                              - "off"
                            type: string
                          adblock_effective:
                            description: "Whether ads are blocked in this browser, after the browser, profile and global settings"
                            type: boolean
                          dialog_policy:
                            enum:
                              - default
                              - accept
                              - dismiss
                            type: string
                          emulated_device:
                            type:
                              - string
                              - "null"
                          found:
                            type: boolean
                          headers:
                            additionalProperties:
                              type: string
                            type: object
                          headless:
                            type: boolean
                          layout_uuid:
                            type: string
                          locked:
                            type: boolean
                          muted:
                            type: boolean
                          offline:
                            type: boolean
                          profile:
                            type: string
                          scripts_enabled:
                            type: boolean
                          title:
                            type: string
                          url:
                            type: string
                          user_agent:
                            description: Configured user agent; a fingerprint identity or device emulation may override what sites see
                            type: string
                          uuid:
                            type: string
                          viewport:
                            description: Live size; docking and resizing move it
                            type: object
                          zoom:
                            type: number
                        required:
                          - uuid
                          - found
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/stop":
    post:
      description: Stop loading the current page
      operationId: stop
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Stop
      tags:
        - Browser
  "/api/browsers/{uuid}/storage":
    post:
      description: "Read the page's localStorage or sessionStorage. With a key, returns that value; without, returns all entries for the origin."
      operationId: executeMcpAction18
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                key:
                  description: Specific key to read (optional; omit for all entries)
                  type: string
                store:
                  description: Which store (default local)
                  enum:
                    - local
                    - session
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          count:
                            description: Number of entries in the store. Present only when reading all entries.
                            type: integer
                          entries:
                            additionalProperties:
                              type: string
                            description: All key/value pairs for the origin. Present only when no key was requested.
                            type: object
                          key:
                            description: The key that was read. Present only when a key was requested.
                            type: string
                          store:
                            description: Which store was read
                            type: string
                          value:
                            description: "Value for the requested key, null when the store has no such key. Present only when a key was requested."
                            type:
                              - string
                              - "null"
                        required:
                          - browser_uuid
                          - store
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/storage/clear":
    post:
      description: "Clear the page's localStorage or sessionStorage. With a key, removes just that key; without, clears the whole store for the origin."
      operationId: executeMcpAction20
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                key:
                  description: Specific key to remove (optional; omit to clear all)
                  type: string
                store:
                  description: Which store (default local)
                  enum:
                    - local
                    - session
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/storage/set":
    post:
      description: "Set a key in the page's localStorage or sessionStorage."
      operationId: executeMcpAction19
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                key:
                  description: Key to set
                  type: string
                store:
                  description: Which store (default local)
                  enum:
                    - local
                    - session
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
                value:
                  description: Value to store
                  type: string
              required:
                - key
                - value
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/submit":
    post:
      description: Submit a form
      operationId: submitForm
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                selector:
                  description: CSS selector of form element
                  type: string
                timeout_ms:
                  description: "Timeout in milliseconds (default: 5000)"
                  type: number
              required:
                - selector
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Submit form
      tags:
        - Browser
  "/api/browsers/{uuid}/tables":
    post:
      description: "Extract HTML tables as markdown (default), CSV, or JSON rows. Avoids the model parsing <td> soup."
      operationId: getTables
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                format:
                  description: Output format. Default markdown.
                  enum:
                    - markdown
                    - csv
                    - json
                  type: string
                selector:
                  description: Optional CSS selector to scope which tables are read
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          content:
                            description: "The tables rendered as markdown or CSV. Absent for format json, whose rendering is the rows themselves."
                            type: string
                          count:
                            description: Number of tables found
                            type: integer
                          format:
                            description: How the text block was rendered. The structured rows below are the same in every format.
                            type: string
                          tables:
                            description: "Tables in document order, as rows rather than rendered text"
                            items:
                              additionalProperties: true
                              properties:
                                caption:
                                  description: "Table caption, empty when it has none"
                                  type: string
                                headers:
                                  description: Header cells
                                  items:
                                    type: string
                                  type: array
                                index:
                                  description: Position of the table in the document
                                  type: integer
                                rows:
                                  description: "Body rows, each an array of cell values"
                                  items:
                                    items:
                                      type: string
                                    type: array
                                  type: array
                                selector:
                                  description: CSS selector for the table
                                  type: string
                              required:
                                - index
                                - headers
                                - rows
                              type: object
                            type: array
                        required:
                          - count
                          - tables
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get tables
      tags:
        - Browser
  "/api/browsers/{uuid}/type":
    post:
      description: Type text at current cursor position
      operationId: typeText
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                text:
                  description: Text to type
                  type: string
              required:
                - text
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Type text
      tags:
        - Browser
  "/api/browsers/{uuid}/upload":
    post:
      description: "Attach files to a file <input> element. You supply the file CONTENT as base64 (not a local path), so the tool never reads the machine's disk. Each file is materialized in-page and assigned to the input."
      operationId: executeMcpAction14
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                files:
                  description: Files to attach
                  items:
                    properties:
                      content_base64:
                        description: "File contents, base64-encoded"
                        type: string
                      mime_type:
                        description: "MIME type (optional, default application/octet-stream)"
                        type: string
                      name:
                        description: Filename to present to the page
                        type: string
                    required:
                      - name
                      - content_base64
                    type: object
                  type: array
                selector:
                  description: "CSS selector of the <input type=file> element"
                  type: string
                timeout_ms:
                  description: "Max time to wait for the in-page result, in ms"
                  type: integer
              required:
                - selector
                - files
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/browsers/{uuid}/wait":
    post:
      description: "Wait for something on the page. for: element (selector appears; default timeout 5000), load (the page finishes loading; default 30000), or network_idle (loaded and no new requests for idle_ms; default 30000). Use after a navigation or an action that loads content, before reading."
      operationId: executeMcpAction9
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                for:
                  description: What to wait for
                  enum:
                    - element
                    - load
                    - network_idle
                  type: string
                idle_ms:
                  description: "network_idle: quiet period with no new requests that counts as idle (default 500)"
                  type: integer
                selector:
                  description: CSS selector; required for element
                  type: string
                timeout_ms:
                  description: "Max time to wait, in ms"
                  type: integer
              required:
                - for
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            type: string
                          error:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Browser
  "/api/docks/{uuid}/move":
    post:
      description: "Move a dock beside its neighbour in a direction (or to that edge of the layout), or send it to another open layout. Send recreates the dock there, so it answers the dock's new uuid. A locked layout refuses both."
      operationId: executeDockActionPost
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                direction:
                  enum:
                    - left
                    - right
                    - up
                    - down
                  type: string
                target_layout_uuid:
                  description: An open layout to send the dock to (instead of direction)
                  type: string
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          dock_uuid:
                            description: "The dock's uuid after the move (new when sent to another layout)"
                            type: string
                          layout_uuid:
                            type: string
                        required:
                          - dock_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute dock action
      tags:
        - Other
  "/api/docks/{uuid}/state":
    post:
      description: "Change one dock's state: focus it (also selects its tab), float or re-dock it, maximize it (show it alone), gather its neighbouring areas into tabs (tabbed: true) or split its tabs into panels (tabbed: false), or resize its area (width, height) by moving the splitters beside it; the other docks share the change. Applied in the order floating, tabbed, width, height, maximized, focused; stops at the first that fails. A locked layout refuses floating, tabbed, width and height."
      operationId: executeDockAction
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                floating:
                  type: boolean
                focused:
                  description: true to focus the dock
                  enum:
                    - true
                  type: boolean
                height:
                  description: Area height in pixels; needs a dock above or below it. Clamped the same way.
                  maximum: 16384
                  minimum: 50
                  type: integer
                maximized:
                  type: boolean
                tabbed:
                  type: boolean
                width:
                  description: Area width in pixels; needs a dock beside it. Clamped so every dock keeps 50 px.
                  maximum: 16384
                  minimum: 50
                  type: integer
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          dock:
                            additionalProperties: true
                            properties:
                              area:
                                description: Index of the dock area holding it; docks sharing an index are tabs of one area. -1 when floating or hidden behind a maximized dock.
                                type: integer
                              current:
                                description: The visible tab of its area
                                type: boolean
                              floating:
                                type: boolean
                              focused:
                                type: boolean
                              height:
                                description: "Its area's height in pixels; 0 when it has no area"
                                type: integer
                              maximized:
                                type: boolean
                              tabbed:
                                description: Its area holds more than one dock
                                type: boolean
                              title:
                                type: string
                              type:
                                description: "browser, native, video, downloads, history, bookmarks, new_window, ..."
                                type: string
                              uuid:
                                type: string
                              width:
                                description: "Its area's width in pixels; 0 when it has no area"
                                type: integer
                            required:
                              - uuid
                              - type
                            type: object
                          layout_uuid:
                            type: string
                        required:
                          - dock
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute dock action
      tags:
        - Other
  /api/downloads:
    get:
      description: "List active/recent downloads (uuid, filename, url, status, bytes, speed, profile). Supports limit + offset paging; response includes total. Pass uuid for just that one download, and profile to list only that profile's downloads."
      operationId: listDownloads
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            type: integer
                          downloads:
                            items:
                              additionalProperties: true
                              properties:
                                end_time:
                                  type: string
                                error:
                                  type: string
                                filename:
                                  type: string
                                profile:
                                  type: string
                                received_bytes:
                                  type: integer
                                save_path:
                                  type: string
                                speed_bps:
                                  type: number
                                start_time:
                                  type: string
                                status:
                                  type: string
                                total_bytes:
                                  type: integer
                                url:
                                  type: string
                                uuid:
                                  type: string
                              type: object
                            type: array
                        required:
                          - count
                          - downloads
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List downloads
      tags:
        - Download
  /api/downloads/clear:
    post:
      description: "Remove finished downloads (completed, cancelled, failed) from the list, or every download, cancelling running ones first, when completed_only is false"
      operationId: clearDownloads
      requestBody:
        content:
          application/json:
            schema:
              properties:
                completed_only:
                  description: Only finished downloads (default true)
                  type: boolean
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Clear downloads
      tags:
        - Download
  /api/downloads/start:
    post:
      description: "Start a managed download to the app's configured download directory and return its UUID and initial state. The transfer can be observed and controlled with the other download tools. There is intentionally no destination-path parameter, and the request does not use a browser login session. With profile, the download belongs to that profile and goes through its proxy; a key limited to profiles must name one of them."
      operationId: startDownload
      requestBody:
        content:
          application/json:
            schema:
              properties:
                profile:
                  description: Profile that owns the download and whose proxy it uses (optional; none when omitted)
                  type: string
                url:
                  description: http(s) URL of the file to download
                  type: string
              required:
                - url
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          filename:
                            type: string
                          status:
                            type: string
                          success:
                            type: boolean
                          url:
                            type: string
                          uuid:
                            type: string
                        required:
                          - success
                          - uuid
                          - url
                          - filename
                          - status
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Start download
      tags:
        - Download
  "/api/downloads/{uuid}":
    delete:
      description: "Act on one download: pause or resume it, cancel it, or remove it from the list (cancelling it first if it is still running)"
      operationId: removeDownload
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          action:
                            type: string
                          success:
                            type: boolean
                          uuid:
                            type: string
                        required:
                          - success
                          - uuid
                          - action
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Remove download
      tags:
        - Download
    get:
      description: "List active/recent downloads (uuid, filename, url, status, bytes, speed, profile). Supports limit + offset paging; response includes total. Pass uuid for just that one download, and profile to list only that profile's downloads."
      operationId: getDownload
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            type: integer
                          downloads:
                            items:
                              additionalProperties: true
                              properties:
                                end_time:
                                  type: string
                                error:
                                  type: string
                                filename:
                                  type: string
                                profile:
                                  type: string
                                received_bytes:
                                  type: integer
                                save_path:
                                  type: string
                                speed_bps:
                                  type: number
                                start_time:
                                  type: string
                                status:
                                  type: string
                                total_bytes:
                                  type: integer
                                url:
                                  type: string
                                uuid:
                                  type: string
                              type: object
                            type: array
                        required:
                          - count
                          - downloads
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get download
      tags:
        - Download
  "/api/downloads/{uuid}/perform":
    post:
      description: "Act on one download: pause or resume it, cancel it, or remove it from the list (cancelling it first if it is still running)"
      operationId: performDownload
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                action:
                  enum:
                    - pause
                    - resume
                    - cancel
                    - remove
                  type: string
                uuid:
                  description: Download uuid
                  type: string
              required:
                - uuid
                - action
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          action:
                            type: string
                          success:
                            type: boolean
                          uuid:
                            type: string
                        required:
                          - success
                          - uuid
                          - action
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Perform download
      tags:
        - Download
  "/api/extensions/{profile}":
    get:
      description: "List a profile's browser extensions: id, name, enabled, and whether it has an options page."
      operationId: listExtensions
      parameters:
        - in: path
          name: profile
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            type: integer
                          extensions:
                            items:
                              properties:
                                enabled:
                                  type: boolean
                                has_options_page:
                                  type: boolean
                                id:
                                  type: string
                                name:
                                  type: string
                              type: object
                            type: array
                          profile:
                            type: string
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List extensions
      tags:
        - Extension
  "/api/extensions/{profile}/install":
    post:
      description: "Install an extension into a profile, from the Chrome Web Store or Edge Add-ons (store + store_id), or from an unpacked folder on this machine (folder, which is copied). Send one source, not both. The extension runs on every page of the profile."
      operationId: installExtension
      parameters:
        - in: path
          name: profile
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                folder:
                  description: Absolute path of an unpacked extension folder containing manifest.json
                  type: string
                store:
                  description: Store to download from; needs store_id
                  enum:
                    - chrome
                    - edge
                  type: string
                store_id:
                  description: The 32-letter id from the store page URL
                  type: string
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          extension_id:
                            type: string
                          name:
                            type: string
                          profile:
                            type: string
                          success:
                            type: boolean
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Install extension
      tags:
        - Extension
  "/api/extensions/{profile}/remove":
    post:
      description: "Uninstall one of a profile's extensions and delete its files."
      operationId: removeExtension
      parameters:
        - in: path
          name: profile
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                extension_id:
                  description: Extension id (from extension_list)
                  type: string
              required:
                - extension_id
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          extension_id:
                            type: string
                          profile:
                            type: string
                          success:
                            type: boolean
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Remove extension
      tags:
        - Extension
  "/api/extensions/{profile}/state":
    post:
      description: "Enable or disable one of a profile's extensions."
      operationId: setExtensionState
      parameters:
        - in: path
          name: profile
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                enabled:
                  description: "true enables the extension, false disables it"
                  type: boolean
                extension_id:
                  description: Extension id (from extension_list)
                  type: string
              required:
                - extension_id
                - enabled
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          enabled:
                            type: boolean
                          extension_id:
                            type: string
                          profile:
                            type: string
                          success:
                            type: boolean
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set extension state
      tags:
        - Extension
  /api/history:
    delete:
      description: "Clear browsing history: one profile's, a time range's, or both. With no arguments, clears all history across every profile. A profile-limited key must name its profile."
      operationId: clearHistory
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Clear history
      tags:
        - History
    get:
      description: "List/search browsing history visits (visit_id, uri, title, host, profile, visit_time, counts)"
      operationId: listHistory
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            description: Number of visits returned in this page
                            type: integer
                          total:
                            description: Total matching visits across all pages
                            type: integer
                          visits:
                            description: "History visit rows (visit_id, uri, title, host, profile, visit_time, counts)"
                            items:
                              additionalProperties: true
                              type: object
                            type: array
                        required:
                          - count
                          - total
                          - visits
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List history
      tags:
        - History
  /api/history/profiles:
    get:
      description: List distinct profiles that have history visits
      operationId: listProfilesGet
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            description: Number of distinct profiles
                            type: integer
                          profiles:
                            description: Distinct profile names with history
                            items:
                              type: string
                            type: array
                        required:
                          - count
                          - profiles
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List profiles
      tags:
        - History
  /api/history/remove-uri:
    post:
      description: Remove all history for a specific URL
      operationId: removeUri
      requestBody:
        content:
          application/json:
            schema:
              properties:
                uri:
                  description: Exact URL to forget
                  type: string
              required:
                - uri
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Remove uri
      tags:
        - History
  "/api/history/visit/{visitId}":
    delete:
      description: Delete a single history visit by visit_id
      operationId: deleteVisit
      parameters:
        - in: path
          name: visitId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Delete visit
      tags:
        - History
  /api/layouts:
    get:
      description: List all available layouts/docks
      operationId: listLayouts
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            type: integer
                          layouts:
                            description: "Layouts (uuid, name)"
                            items:
                              additionalProperties: true
                              type: object
                            type: array
                        required:
                          - count
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List layouts
      tags:
        - Layout
    post:
      description: Create a new layout/dock
      operationId: addLayout
      requestBody:
        content:
          application/json:
            schema:
              properties:
                name:
                  description: Name for the new layout
                  type: string
              required:
                - name
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          name:
                            type: string
                          success:
                            type: boolean
                          uuid:
                            type: string
                        required:
                          - success
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Add layout
      tags:
        - Layout
  /api/layouts/close-all:
    post:
      description: "Close all dock widgets of specified types, or exactly the docks dock_uuids names (any dock uuid from layout_get_state). Use to bulk-close browsers, native apps, video players, etc. With dock_uuids an unknown or closed uuid, or one outside layout_uuid, refuses the call and nothing closes."
      operationId: closeAllDocks
      requestBody:
        content:
          application/json:
            schema:
              properties:
                dock_uuids:
                  description: Close exactly these docks instead of by type
                  items:
                    type: string
                  minItems: 1
                  type: array
                layout_uuid:
                  description: "Layout UUID to close widgets in (optional, defaults to all layouts)"
                  type: string
                types:
                  description: "Dock types to close. If omitted (and dock_uuids is too), closes every type."
                  items:
                    enum:
                      - browser
                      - native
                      - video
                      - bookmarks
                    type: string
                  type: array
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          closed:
                            type: integer
                          success:
                            type: boolean
                          total:
                            type: integer
                          types:
                            type: string
                        required:
                          - success
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Close all docks
      tags:
        - Layout
  "/api/layouts/{uuid}":
    delete:
      description: Delete a layout/dock
      operationId: deleteLayout
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          success:
                            type: boolean
                          uuid:
                            type: string
                        required:
                          - success
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Delete layout
      tags:
        - Layout
    get:
      description: "Get a layout's full state: lock, fullscreen, window state, size and fixed resolution, mute, new-dock placement, workspace-switch sync, UI toggles, and every dock with its area, focus, floating, maximized and tabbed state. layout_set_state takes the same fields."
      operationId: executeMcpAction24
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          docks:
                            items:
                              additionalProperties: true
                              properties:
                                area:
                                  description: Index of the dock area holding it; docks sharing an index are tabs of one area. -1 when floating or hidden behind a maximized dock.
                                  type: integer
                                current:
                                  description: The visible tab of its area
                                  type: boolean
                                floating:
                                  type: boolean
                                focused:
                                  type: boolean
                                height:
                                  description: "Its area's height in pixels; 0 when it has no area"
                                  type: integer
                                maximized:
                                  type: boolean
                                tabbed:
                                  description: Its area holds more than one dock
                                  type: boolean
                                title:
                                  type: string
                                type:
                                  description: "browser, native, video, downloads, history, bookmarks, new_window, ..."
                                  type: string
                                uuid:
                                  type: string
                                width:
                                  description: "Its area's width in pixels; 0 when it has no area"
                                  type: integer
                              required:
                                - uuid
                                - type
                              type: object
                            type: array
                          fullscreen:
                            type: boolean
                          locked:
                            type: boolean
                          maximized_dock:
                            type:
                              - string
                              - "null"
                          muted:
                            description: Every browser in the layout is muted (false with no browsers)
                            type: boolean
                          muted_browsers:
                            type: integer
                          name:
                            type: string
                          placement:
                            enum:
                              - auto
                              - right
                              - below
                            type: string
                          resolution:
                            description: "The fixed resolution, or null when the window sizes freely"
                            type:
                              - object
                              - "null"
                          size:
                            properties:
                              height:
                                type: integer
                              width:
                                type: integer
                            type: object
                          sync_workspace_switching:
                            type: boolean
                          ui:
                            additionalProperties: true
                            type: object
                          uuid:
                            type: string
                          window:
                            enum:
                              - normal
                              - minimized
                              - maximized
                            type: string
                        required:
                          - uuid
                          - docks
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Layout
  "/api/layouts/{uuid}/open-dock":
    post:
      description: "Open a non-browser dock in the layout: downloads, history, bookmarks (the layout's profile), or a new-window panel. Settings is a floating panel, not a dock; change settings with settings_set. beside_dock_uuid opens it next to an open dock of the same layout instead of where new docks normally go. Answers the new dock's dock_uuid, which layout_move_dock and layout_set_dock_state take."
      operationId: executeMcpAction27
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                beside_dock_uuid:
                  description: Open the new dock next to this open dock (any dock uuid from layout_get_state) of the same layout
                  type: string
                direction:
                  description: "With beside_dock_uuid: a tab of its area (default), or a new area on that side of it. A floating dock takes only tab."
                  enum:
                    - tab
                    - left
                    - right
                    - up
                    - down
                  type: string
                type:
                  description: Which dock to open
                  enum:
                    - downloads
                    - history
                    - new_window
                    - bookmarks
                  type: string
              required:
                - type
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        properties:
                          dock_uuid:
                            description: UUID of the dock just opened
                            type: string
                          success:
                            type: boolean
                          type:
                            type: string
                          uuid:
                            description: Layout UUID
                            type: string
                        required:
                          - success
                          - uuid
                          - dock_uuid
                          - type
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Layout
  "/api/layouts/{uuid}/perform":
    post:
      description: "Run a layout action: equalize (share space evenly between the tiled docks), reset (re-dock everything into the automatic grid) or restore_closed (reopen the most recently closed browser; answers its browser_uuid)."
      operationId: executeMcpAction26
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                action:
                  enum:
                    - equalize
                    - reset
                    - restore_closed
                  type: string
              required:
                - action
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          action:
                            type: string
                          browser_uuid:
                            description: restore_closed only
                            type: string
                          layout_uuid:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Layout
  "/api/layouts/{uuid}/screenshot":
    get:
      description: Screenshot the layout window at its exact dimensions. Captures dock chrome only - content areas come out black. Use browser_screenshot for page content.
      operationId: getLayoutScreenshot
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get layout screenshot
      tags:
        - Layout
  "/api/layouts/{uuid}/state":
    post:
      description: "Change any part of a layout's state in one call. Every field is optional and only the fields sent change. Answers the full state, as layout_get_state does."
      operationId: executeMcpAction25
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                fullscreen:
                  type: boolean
                locked:
                  description: "Lock docks against moving, resizing and closing"
                  type: boolean
                muted:
                  description: Mute or unmute every browser in the layout
                  type: boolean
                name:
                  description: Rename the layout
                  type: string
                placement:
                  description: "Where new docks open: the auto grid, beside or below the focused dock"
                  enum:
                    - auto
                    - right
                    - below
                  type: string
                resolution:
                  description: "{width, height} (at least 100 each) fixes the window size; null returns it to free sizing"
                  properties:
                    height:
                      type: integer
                    width:
                      type: integer
                  type:
                    - object
                    - "null"
                sync_workspace_switching:
                  description: Switch workspace together with the other synced windows
                  type: boolean
                ui:
                  properties:
                    browser_toolbars:
                      description: Toolbar mode for every browser in the layout
                      enum:
                        - always_show
                        - auto_hide
                        - always_hide
                      type: string
                    interface_hidden:
                      description: Hide every dock and mute the layout (privacy hide). Showing it again is refused while a privacy password is set.
                      type: boolean
                    toolbar:
                      description: "Show the layout's action toolbar"
                      type: boolean
                  type: object
                window:
                  description: "Window state; leaves fullscreen first. Not with fullscreen: true."
                  enum:
                    - normal
                    - minimized
                    - maximized
                  type: string
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          docks:
                            items:
                              additionalProperties: true
                              properties:
                                area:
                                  description: Index of the dock area holding it; docks sharing an index are tabs of one area. -1 when floating or hidden behind a maximized dock.
                                  type: integer
                                current:
                                  description: The visible tab of its area
                                  type: boolean
                                floating:
                                  type: boolean
                                focused:
                                  type: boolean
                                height:
                                  description: "Its area's height in pixels; 0 when it has no area"
                                  type: integer
                                maximized:
                                  type: boolean
                                tabbed:
                                  description: Its area holds more than one dock
                                  type: boolean
                                title:
                                  type: string
                                type:
                                  description: "browser, native, video, downloads, history, bookmarks, new_window, ..."
                                  type: string
                                uuid:
                                  type: string
                                width:
                                  description: "Its area's width in pixels; 0 when it has no area"
                                  type: integer
                              required:
                                - uuid
                                - type
                              type: object
                            type: array
                          fullscreen:
                            type: boolean
                          locked:
                            type: boolean
                          maximized_dock:
                            type:
                              - string
                              - "null"
                          muted:
                            description: Every browser in the layout is muted (false with no browsers)
                            type: boolean
                          muted_browsers:
                            type: integer
                          name:
                            type: string
                          placement:
                            enum:
                              - auto
                              - right
                              - below
                            type: string
                          resolution:
                            description: "The fixed resolution, or null when the window sizes freely"
                            type:
                              - object
                              - "null"
                          size:
                            properties:
                              height:
                                type: integer
                              width:
                                type: integer
                            type: object
                          sync_workspace_switching:
                            type: boolean
                          ui:
                            additionalProperties: true
                            type: object
                          uuid:
                            type: string
                          window:
                            enum:
                              - normal
                              - minimized
                              - maximized
                            type: string
                        required:
                          - uuid
                          - docks
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute mcp action
      tags:
        - Layout
  /api/permissions:
    get:
      description: "List a profile's remembered site permission decisions (profile, host, permission_type, label, allowed). Decisions are per profile."
      operationId: listPermissions
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            description: Number of remembered permissions
                            type: integer
                          permissions:
                            description: "Remembered permissions (profile, host, permission_type, label, state, allowed, created, updated)"
                            items:
                              additionalProperties: true
                              type: object
                            type: array
                        required:
                          - count
                          - permissions
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List permissions
      tags:
        - Permission
  /api/permissions/clear:
    post:
      description: "Forget every remembered permission decision of a profile, for all hosts"
      operationId: clearPermissions
      requestBody:
        content:
          application/json:
            schema:
              properties:
                profile:
                  description: Profile the decisions belong to (default profile when omitted)
                  type: string
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Clear permissions
      tags:
        - Permission
  /api/permissions/remove:
    post:
      description: "Forget one of a profile's remembered permission decisions for a host. permission_type is the stored value from permission_list or permission_list_types"
      operationId: removePermission
      requestBody:
        content:
          application/json:
            schema:
              properties:
                host:
                  description: Host the permission was remembered for
                  type: string
                permission_type:
                  description: Stored permission type (from permission_list)
                  type: string
                profile:
                  description: Profile the decisions belong to (default profile when omitted)
                  type: string
              required:
                - host
                - permission_type
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Remove permission
      tags:
        - Permission
  /api/permissions/remove-host:
    post:
      description: "Forget every one of a profile's remembered permission decisions for a host"
      operationId: removeHostPermissions
      requestBody:
        content:
          application/json:
            schema:
              properties:
                host:
                  description: Host to forget all permissions for
                  type: string
                profile:
                  description: Profile the decisions belong to (default profile when omitted)
                  type: string
              required:
                - host
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Remove host permissions
      tags:
        - Permission
  /api/permissions/set:
    post:
      description: "Remember a profile's permission decision for a host, as if the user had answered a prompt with 'remember this choice'. Takes effect immediately, without a restart."
      operationId: setPermission
      requestBody:
        content:
          application/json:
            schema:
              properties:
                allowed:
                  description: "true to grant, false to deny"
                  type: boolean
                host:
                  description: "Host the decision applies to, e.g. metadock.app"
                  type: string
                permission_type:
                  description: Permission type (from permission_list_types)
                  type: string
                profile:
                  description: Profile the decisions belong to (default profile when omitted)
                  type: string
              required:
                - host
                - permission_type
                - allowed
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set permission
      tags:
        - Permission
  /api/permissions/types:
    get:
      description: "List every permission type that can be granted or denied, with a human-readable label. Call this to discover valid permission_type values for permission_set and permission_remove."
      operationId: listPermissionTypes
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            description: Number of permission types
                            type: integer
                          permission_types:
                            description: Permission types
                            items:
                              additionalProperties: true
                              properties:
                                label:
                                  description: "Human-readable name, e.g. Camera"
                                  type: string
                                permission_type:
                                  description: Value to pass as permission_type
                                  type: string
                              required:
                                - permission_type
                                - label
                              type: object
                            type: array
                        required:
                          - count
                          - permission_types
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List permission types
      tags:
        - Permission
  /api/profiles:
    get:
      description: "List the usable browser profiles: which one is the default, which are temporary, and which have a proxy configured; locked names the profiles the plan's profile limit locks. Does not return proxy values - the stored form embeds credentials."
      operationId: listProfiles
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            type: integer
                          locked:
                            description: "Profiles left out of the active set by this plan's profile limit; profile_set_state active: true makes one usable"
                            items:
                              type: string
                            type: array
                          profiles:
                            description: Profiles
                            items:
                              additionalProperties: true
                              properties:
                                color:
                                  description: "#rrggbb; empty when the profile follows the theme accent"
                                  type: string
                                is_default:
                                  description: Whether this is the default profile (see profile_set_state)
                                  type: boolean
                                is_temporary:
                                  description: "Whether the profile was created with profile_create temporary: true"
                                  type: boolean
                                name:
                                  type: string
                                proxy_is_set:
                                  description: Whether a proxy is configured. The value is deliberately not returned - it embeds credentials.
                                  type: boolean
                              required:
                                - name
                              type: object
                            type: array
                        required:
                          - count
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List profiles
      tags:
        - Layout
    post:
      description: "Create a new browser profile. temporary: true makes one that MetaDock removes when it exits (or, after a crash, when it next starts)."
      operationId: addProfile
      requestBody:
        content:
          application/json:
            schema:
              properties:
                name:
                  description: Name for the new profile
                  type: string
                temporary:
                  description: Remove the profile when MetaDock exits (default false)
                  type: boolean
              required:
                - name
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          profile:
                            type: string
                          success:
                            type: boolean
                          temporary:
                            type: boolean
                        required:
                          - success
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Add profile
      tags:
        - Layout
  "/api/profiles/{name}":
    delete:
      description: Delete a browser profile and everything stored under it. Refused for the last permanent profile and for a profile an open browser uses; close its browsers first
      operationId: deleteProfile
      parameters:
        - in: path
          name: name
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          profile:
                            type: string
                          success:
                            type: boolean
                        required:
                          - success
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Delete profile
      tags:
        - Layout
    get:
      description: "Get a profile's state, including one locked by the plan's profile limit: default, temporary, locked, colour, fingerprint protection, the sites it was recorded as signed in to, and its proxy with any credentials stripped."
      operationId: getProfileState
      parameters:
        - in: path
          name: name
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          color:
                            description: "#rrggbb; empty when the profile follows the theme accent"
                            type: string
                          displaced:
                            description: "profile_set_state active: true only: the profile it made room by locking, when it had to"
                            type: string
                          fingerprint:
                            additionalProperties: true
                            description: "The stored fingerprint protection config with its geolocation override under geo, as browser_get_fingerprint answers; readable with no browser open"
                            type: object
                          is_default:
                            type: boolean
                          is_locked:
                            description: "Left out of the active set by this plan's profile limit; it takes only active: true"
                            type: boolean
                          is_temporary:
                            type: boolean
                          name:
                            type: string
                          proxy:
                            description: "scheme://host:port with credentials removed; empty when unset"
                            type: string
                          proxy_has_credentials:
                            description: "Whether the stored proxy carries a username or password, which is never returned"
                            type: boolean
                          proxy_id:
                            description: The saved proxy (proxy_list) the profile is bound to; absent when it has none
                            type: integer
                          proxy_label:
                            description: "That saved proxy's label; absent with proxy_id"
                            type: string
                          sites:
                            description: "Sites this profile was recorded as signed in to while browsing, strongest first (at most 100); a record from past visits, not proof of a live session"
                            items:
                              properties:
                                domain:
                                  description: "Registrable domain, e.g. google.com"
                                  type: string
                                host:
                                  description: Page host last visited for it
                                  type: string
                                last_seen:
                                  description: Milliseconds since the epoch
                                  type: integer
                                score:
                                  description: Sign-in confidence from its cookies; higher is stronger
                                  type: integer
                              type: object
                            type: array
                        required:
                          - name
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get profile state
      tags:
        - Layout
  "/api/profiles/{name}/state":
    post:
      description: "Change a profile in one call: new_name (rename), default (true makes it the default profile), proxy or proxy_id, color, fingerprint, active (unlock a profile the plan's limit locks). Only the fields sent change; every field is checked first. A proxy applies to browsers opened after every browser on the profile is closed. Answers the state."
      operationId: setProfileState
      parameters:
        - in: path
          name: name
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                active:
                  description: "true makes a profile locked by the plan's profile limit usable, locking the least recently used active profile that is not the default and has no browser open (answered as displaced); refused when every other active profile has a browser open. Send it alone on a locked profile; a no-op on an active one"
                  enum:
                    - true
                  type: boolean
                color:
                  description: "#rrggbb, applied at once; empty resets it to the theme accent"
                  type: string
                default:
                  description: true makes it the default profile; make another profile the default to move it away
                  enum:
                    - true
                  type: boolean
                fingerprint:
                  additionalProperties: true
                  description: "browser_set_fingerprint's fields without browser_uuid, with the same merge rules (geo included; reset: true alone clears both). Needs no open browser; the profile's open browsers pick it up at once. Pro only, except turning protection off or removing geo"
                  type: object
                name:
                  description: Profile name
                  type: string
                new_name:
                  description: Rename the profile; must not be taken
                  type: string
                proxy:
                  description: "[scheme://][user:pass@]host:port (http, https, socks4, socks5), or empty to remove the proxy. Saved to the proxy library (or matched to the entry that has it) and bound, as the proxy dialog does; geolocation is then set to follow the proxy unless the profile chose a manual location"
                  type: string
                proxy_id:
                  description: Bind a saved proxy (proxy_list) instead of sending proxy; not both. Geolocation is set as for proxy
                  type: integer
              required:
                - name
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          color:
                            description: "#rrggbb; empty when the profile follows the theme accent"
                            type: string
                          displaced:
                            description: "profile_set_state active: true only: the profile it made room by locking, when it had to"
                            type: string
                          fingerprint:
                            additionalProperties: true
                            description: "The stored fingerprint protection config with its geolocation override under geo, as browser_get_fingerprint answers; readable with no browser open"
                            type: object
                          is_default:
                            type: boolean
                          is_locked:
                            description: "Left out of the active set by this plan's profile limit; it takes only active: true"
                            type: boolean
                          is_temporary:
                            type: boolean
                          name:
                            type: string
                          proxy:
                            description: "scheme://host:port with credentials removed; empty when unset"
                            type: string
                          proxy_has_credentials:
                            description: "Whether the stored proxy carries a username or password, which is never returned"
                            type: boolean
                          proxy_id:
                            description: The saved proxy (proxy_list) the profile is bound to; absent when it has none
                            type: integer
                          proxy_label:
                            description: "That saved proxy's label; absent with proxy_id"
                            type: string
                          sites:
                            description: "Sites this profile was recorded as signed in to while browsing, strongest first (at most 100); a record from past visits, not proof of a live session"
                            items:
                              properties:
                                domain:
                                  description: "Registrable domain, e.g. google.com"
                                  type: string
                                host:
                                  description: Page host last visited for it
                                  type: string
                                last_seen:
                                  description: Milliseconds since the epoch
                                  type: integer
                                score:
                                  description: Sign-in confidence from its cookies; higher is stronger
                                  type: integer
                              type: object
                            type: array
                        required:
                          - name
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set profile state
      tags:
        - Layout
  /api/proxies:
    get:
      description: "List the saved proxy library, the entries the proxy dialog offers: id, label, address with credentials stripped, and the profiles bound to each."
      operationId: listProxies
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            type: integer
                          proxies:
                            items:
                              additionalProperties: true
                              properties:
                                id:
                                  description: Saved proxy id; bind it with profile_set_state proxy_id
                                  type: integer
                                label:
                                  type: string
                                profiles:
                                  description: Profiles bound to it
                                  items:
                                    type: string
                                  type: array
                                proxy:
                                  description: "scheme://host:port with credentials removed"
                                  type: string
                                proxy_has_credentials:
                                  description: "Whether it carries a username or password, which is never returned"
                                  type: boolean
                              required:
                                - id
                              type: object
                            type: array
                        required:
                          - count
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List proxies
      tags:
        - Layout
    post:
      description: Save a proxy to the library without binding it to a profile (profile_set_state proxy_id binds one). Saving an address the library already has answers that entry. Pro only.
      operationId: addProxy
      requestBody:
        content:
          application/json:
            schema:
              properties:
                label:
                  description: Name shown in the proxy dialog (optional)
                  type: string
                proxy:
                  description: "[scheme://][user:pass@]host:port (http, https, socks4, socks5)"
                  type: string
              required:
                - proxy
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          created:
                            description: false when the library already had this address; that entry and its label are answered unchanged
                            type: boolean
                          id:
                            description: Saved proxy id; bind it with profile_set_state proxy_id
                            type: integer
                          label:
                            type: string
                          profiles:
                            description: Profiles bound to it
                            items:
                              type: string
                            type: array
                          proxy:
                            description: "scheme://host:port with credentials removed"
                            type: string
                          proxy_has_credentials:
                            description: "Whether it carries a username or password, which is never returned"
                            type: boolean
                        required:
                          - id
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Add proxy
      tags:
        - Layout
  "/api/proxies/{id}":
    delete:
      description: Delete a saved proxy. Every profile bound to it is left with no proxy (answered as unbound); their open browsers keep it until they are all closed.
      operationId: deleteProxy
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          id:
                            type: integer
                          success:
                            type: boolean
                          unbound:
                            description: Profiles that lost their proxy
                            items:
                              type: string
                            type: array
                        required:
                          - success
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Delete proxy
      tags:
        - Layout
  /api/search:
    post:
      description: Run a search query in a new browser using the default (or specified) search engine
      operationId: search
      requestBody:
        content:
          application/json:
            schema:
              properties:
                engine_id:
                  description: "Search engine id from settings_list_search_engines (optional, defaults to the configured default)"
                  type: integer
                layout_uuid:
                  description: "Layout UUID (optional, defaults to first layout)"
                  type: string
                profile:
                  description: Profile to open under (optional)
                  type: string
                query:
                  description: Search terms
                  type: string
              required:
                - query
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          browser_uuid:
                            description: UUID of the browser opened for the search
                            type: string
                          query:
                            description: The search terms that were run
                            type: string
                          search_url:
                            description: Resolved search engine URL that was opened
                            type: string
                        required:
                          - browser_uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Search
      tags:
        - Search
  /api/settings:
    get:
      description: "Get current values of application settings (the readable counterpart to settings_set) - behaviour/features, appearance, browsing, and API-surface flags. The API key/secret is never returned."
      operationId: getSettings
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          settings:
                            additionalProperties: true
                            description: Current setting values keyed by setting name
                            type: object
                        required:
                          - settings
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get settings
      tags:
        - Settings
    post:
      description: "Set an application setting by key. Call settings_list first for each key's type, permitted values, bounds and whether it is writable."
      operationId: setSetting
      requestBody:
        content:
          application/json:
            schema:
              properties:
                key:
                  description: Writable setting key (see settings_list)
                  enum:
                    - launch_on_startup
                    - scripts_enabled
                    - trading_tools_enabled
                    - privacy_tools_enabled
                    - floating_windows_enabled
                    - auto_save_enabled
                    - native_apps_enabled
                    - adblock_enabled
                    - theme_id
                    - web_content_color_scheme
                    - icon_scale
                    - dock_divider_thickness
                    - dock_titlebar_visibility
                    - titlebar_show_profile
                    - titlebar_show_proxy
                    - transparency_enabled
                    - transparency_alpha
                    - font_family
                    - font_size
                    - default_search_engine_id
                    - default_zoom
                    - download_directory
                    - download_multistream_enabled
                    - download_multistream_count
                    - link_preview_enabled
                    - tracking_prevention
                    - auto_suggest_interval_ms
                    - default_profile
                    - link_mode
                    - browser_mode
                    - dialog_mode
                    - startup_workspace_id
                    - quick_symbol_dock
                  type: string
                value:
                  description: Setting value; type depends on the key (see settings_list)
              required:
                - key
                - value
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BaseSuccess"
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set setting
      tags:
        - Settings
  /api/settings/list:
    get:
      description: "List every application setting with its type, whether it is writable, its current value, permitted values and bounds. Use this to discover valid keys before calling settings_set."
      operationId: listSettings
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            description: Number of settings returned
                            type: integer
                          settings:
                            description: Setting descriptors
                            items:
                              additionalProperties: true
                              properties:
                                description:
                                  type: string
                                enum:
                                  description: Permitted values; present only for enum settings
                                  items:
                                    type: string
                                  type: array
                                key:
                                  description: Setting key used by settings_set
                                  type: string
                                maximum:
                                  description: Inclusive upper bound; present only for bounded numbers
                                  type: number
                                minimum:
                                  description: Inclusive lower bound; present only for bounded numbers
                                  type: number
                                read_only_reason:
                                  description: Why the setting cannot be written; present only when writable is false
                                  type: string
                                type:
                                  description: "boolean, integer, number or string"
                                  type: string
                                value:
                                  description: Current value
                                writable:
                                  description: False when the setting can only be read
                                  type: boolean
                              required:
                                - key
                                - type
                                - writable
                                - value
                              type: object
                            type: array
                        required:
                          - count
                          - settings
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List settings
      tags:
        - Settings
  /api/settings/search-engines:
    get:
      description: "List configured search engines (id, name, url). The id is what settings_set writes to default_search_engine_id and what search accepts as engine_id."
      operationId: listSearchEngines
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            description: Number of search engines returned
                            type: integer
                          search_engines:
                            description: "Configured search engines (id, name, url)"
                            items:
                              additionalProperties: true
                              type: object
                            type: array
                        required:
                          - count
                          - search_engines
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List search engines
      tags:
        - Settings
    post:
      description: "Add a search engine. The URL must contain the {searchTerms} placeholder where the query is inserted. A bare host gains an https:// prefix. Both name and URL must be unique."
      operationId: createSearchEngine
      requestBody:
        content:
          application/json:
            schema:
              properties:
                name:
                  description: "Display name, must not collide with an existing engine"
                  type: string
                url:
                  description: "Search URL containing {searchTerms}, e.g. https://www.google.com/search?q={searchTerms}"
                  type: string
              required:
                - name
                - url
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        properties:
                          id:
                            description: "Id of the new engine, usable as default_search_engine_id"
                            type: integer
                          name:
                            type: string
                          url:
                            description: "URL as stored, after normalization"
                            type: string
                        required:
                          - id
                          - name
                          - url
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Create search engine
      tags:
        - Settings
  "/api/settings/search-engines/{p1}":
    delete:
      description: Remove a search engine. Refused for the engine currently set as default - point default_search_engine_id at another engine first.
      operationId: deleteSearchEngine
      parameters:
        - in: path
          name: p1
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        properties:
                          deleted:
                            type: boolean
                          id:
                            type: integer
                        required:
                          - id
                          - deleted
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Delete search engine
      tags:
        - Settings
    patch:
      description: "Rename a search engine, change its URL, or both. Omit a field to leave it unchanged. A changed URL must still contain the {searchTerms} placeholder."
      operationId: updateSearchEngine
      parameters:
        - in: path
          name: p1
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                id:
                  description: Engine id from search_engine_list
                  type: integer
                name:
                  description: New display name. Omit to leave unchanged.
                  type: string
                url:
                  description: "New search URL containing {searchTerms}. Omit to leave unchanged."
                  type: string
              required:
                - id
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        properties:
                          id:
                            type: integer
                          name:
                            type: string
                          url:
                            description: "URL as stored, after normalization"
                            type: string
                        required:
                          - id
                          - name
                          - url
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Update search engine
      tags:
        - Settings
  /api/settings/themes:
    get:
      description: "List available themes (id, name, is_dark, is_core). The id is what settings_set writes to theme_id."
      operationId: listThemes
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            description: Number of themes returned
                            type: integer
                          themes:
                            description: "Available themes (id, name, is_dark, is_core)"
                            items:
                              additionalProperties: true
                              type: object
                            type: array
                        required:
                          - count
                          - themes
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List themes
      tags:
        - Settings
    post:
      description: "Add a custom theme copied from from_theme_id (default: the active theme), with any colours given replacing the copied ones. Select it with settings_set theme_id. Window, input, button, tooltip and selection text must keep 3:1 contrast with their background; a colour that breaks a pair is refused."
      operationId: createTheme
      requestBody:
        content:
          application/json:
            schema:
              properties:
                colors:
                  additionalProperties: false
                  description: "Palette colours to set, as #rrggbb. Any subset of the keys."
                  properties:
                    accent:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    alternate_base:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    base:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    bright_text:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    button:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    button_text:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    dark:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    highlight:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    highlighted_text:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    light:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    link:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    link_visited:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    mid:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    midlight:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    placeholder_text:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    shadow:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    text:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    tooltip_base:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    tooltip_text:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    window:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    window_text:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                  type: object
                from_theme_id:
                  description: Theme to copy (built-in or custom). Omit to copy the active theme.
                  type: integer
                is_dark:
                  description: "Omit to keep the copied theme's value"
                  type: boolean
                name:
                  description: "Name, 1-100 characters, unique"
                  type: string
              required:
                - name
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          colors:
                            additionalProperties:
                              type: string
                            description: "The 21 palette colours as #rrggbb"
                            type: object
                          id:
                            type: integer
                          is_active:
                            description: The theme in use (settings theme_id)
                            type: boolean
                          is_core:
                            description: "Built-in theme, which cannot be changed or deleted"
                            type: boolean
                          is_dark:
                            description: "Dark theme: native title bars and dialogs follow it"
                            type: boolean
                          name:
                            type: string
                          transparency_alpha:
                            type: integer
                          transparency_enabled:
                            type: boolean
                        required:
                          - id
                          - name
                          - is_dark
                          - is_core
                          - is_active
                          - colors
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Create theme
      tags:
        - Settings
  "/api/settings/themes/{p1}":
    delete:
      description: Delete a custom theme. Built-in themes are refused. Deleting the active theme switches to the first built-in theme.
      operationId: deleteTheme
      parameters:
        - in: path
          name: p1
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        properties:
                          active_theme_id:
                            description: The theme in use after the delete
                            type: integer
                          deleted:
                            type: boolean
                          theme_id:
                            type: integer
                        required:
                          - theme_id
                          - deleted
                          - active_theme_id
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Delete theme
      tags:
        - Settings
    get:
      description: "Get one theme: its name, dark flag, whether it is built in or active, and its 21 palette colours (#rrggbb)."
      operationId: getTheme
      parameters:
        - in: path
          name: p1
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          colors:
                            additionalProperties:
                              type: string
                            description: "The 21 palette colours as #rrggbb"
                            type: object
                          id:
                            type: integer
                          is_active:
                            description: The theme in use (settings theme_id)
                            type: boolean
                          is_core:
                            description: "Built-in theme, which cannot be changed or deleted"
                            type: boolean
                          is_dark:
                            description: "Dark theme: native title bars and dialogs follow it"
                            type: boolean
                          name:
                            type: string
                          transparency_alpha:
                            type: integer
                          transparency_enabled:
                            type: boolean
                        required:
                          - id
                          - name
                          - is_dark
                          - is_core
                          - is_active
                          - colors
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get theme
      tags:
        - Settings
    patch:
      description: "Rename a custom theme, change some of its colours, or its dark flag. Omitted fields stay as they are. Built-in themes are refused: copy one with theme_create first. Applies live when the theme is active. Window, input, button, tooltip and selection text must keep 3:1 contrast with their background; a colour that breaks a pair is refused."
      operationId: updateTheme
      parameters:
        - in: path
          name: p1
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                colors:
                  additionalProperties: false
                  description: "Palette colours to set, as #rrggbb. Any subset of the keys."
                  properties:
                    accent:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    alternate_base:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    base:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    bright_text:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    button:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    button_text:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    dark:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    highlight:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    highlighted_text:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    light:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    link:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    link_visited:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    mid:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    midlight:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    placeholder_text:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    shadow:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    text:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    tooltip_base:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    tooltip_text:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    window:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                    window_text:
                      pattern: "^#[0-9A-Fa-f]{6}$"
                      type: string
                  type: object
                is_dark:
                  type: boolean
                name:
                  description: "New name, 1-100 characters, unique"
                  type: string
                theme_id:
                  description: Custom theme id from theme_list
                  type: integer
              required:
                - theme_id
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          colors:
                            additionalProperties:
                              type: string
                            description: "The 21 palette colours as #rrggbb"
                            type: object
                          id:
                            type: integer
                          is_active:
                            description: The theme in use (settings theme_id)
                            type: boolean
                          is_core:
                            description: "Built-in theme, which cannot be changed or deleted"
                            type: boolean
                          is_dark:
                            description: "Dark theme: native title bars and dialogs follow it"
                            type: boolean
                          name:
                            type: string
                          transparency_alpha:
                            type: integer
                          transparency_enabled:
                            type: boolean
                        required:
                          - id
                          - name
                          - is_dark
                          - is_core
                          - is_active
                          - colors
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Update theme
      tags:
        - Settings
  /api/videos:
    get:
      description: "One video player's state, or every player's when uuid is omitted: source, playing, position, duration, volume, muted, loop."
      operationId: listVideoPlayers
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            type: integer
                          players:
                            items:
                              additionalProperties: true
                              properties:
                                duration_ms:
                                  description: 0 for a live stream or media not loaded yet
                                  type: integer
                                error:
                                  description: "The player's last error; empty when none"
                                  type: string
                                layout_uuid:
                                  type: string
                                loop:
                                  enum:
                                    - none
                                    - one
                                    - ab
                                  type: string
                                media_status:
                                  description: "Qt's QMediaPlayer::MediaStatus name, e.g. LoadedMedia, BufferingMedia, InvalidMedia"
                                  type: string
                                muted:
                                  type: boolean
                                playing:
                                  type: boolean
                                position_ms:
                                  type: integer
                                seekable:
                                  type: boolean
                                source:
                                  description: File path or stream URL
                                  type: string
                                uuid:
                                  type: string
                                volume:
                                  description: 0-100
                                  type: integer
                              type: object
                            type: array
                        required:
                          - count
                          - players
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List video players
      tags:
        - Video
    post:
      description: "Open a video player dock and start playing a stream URL or a media file on this machine. Send url or path, not both."
      operationId: openVideo
      requestBody:
        content:
          application/json:
            schema:
              properties:
                beside_dock_uuid:
                  description: Open the new dock next to this open dock (any dock uuid from layout_get_state) of the same layout
                  type: string
                direction:
                  description: "With beside_dock_uuid: a tab of its area (default), or a new area on that side of it. A floating dock takes only tab."
                  enum:
                    - tab
                    - left
                    - right
                    - up
                    - down
                  type: string
                layout_uuid:
                  description: Layout to dock it in; defaults to the first layout
                  type: string
                path:
                  description: Absolute path of a media file
                  type: string
                url:
                  description: "Stream URL (http, https, rtsp, rtsps or rtmp)"
                  type: string
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          layout_uuid:
                            type: string
                          success:
                            type: boolean
                          uuid:
                            type: string
                        required:
                          - success
                          - uuid
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Open video
      tags:
        - Video
  "/api/videos/{uuid}":
    get:
      description: "One video player's state, or every player's when uuid is omitted: source, playing, position, duration, volume, muted, loop."
      operationId: getVideoState
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            type: integer
                          players:
                            items:
                              additionalProperties: true
                              properties:
                                duration_ms:
                                  description: 0 for a live stream or media not loaded yet
                                  type: integer
                                error:
                                  description: "The player's last error; empty when none"
                                  type: string
                                layout_uuid:
                                  type: string
                                loop:
                                  enum:
                                    - none
                                    - one
                                    - ab
                                  type: string
                                media_status:
                                  description: "Qt's QMediaPlayer::MediaStatus name, e.g. LoadedMedia, BufferingMedia, InvalidMedia"
                                  type: string
                                muted:
                                  type: boolean
                                playing:
                                  type: boolean
                                position_ms:
                                  type: integer
                                seekable:
                                  type: boolean
                                source:
                                  description: File path or stream URL
                                  type: string
                                uuid:
                                  type: string
                                volume:
                                  description: 0-100
                                  type: integer
                              type: object
                            type: array
                        required:
                          - count
                          - players
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get video state
      tags:
        - Video
  "/api/videos/{uuid}/snapshot":
    get:
      description: "Capture the frame a video player is showing, as a PNG image."
      operationId: getVideoSnapshot
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          height:
                            type: integer
                          mime_type:
                            type: string
                          uuid:
                            type: string
                          width:
                            type: integer
                        required:
                          - uuid
                          - mime_type
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get video snapshot
      tags:
        - Video
  "/api/videos/{uuid}/state":
    post:
      description: "Change a video player in one call: playing, position_ms (seek), volume, muted, loop. Only the fields sent change; every field is checked first. Answers the state."
      operationId: setVideoState
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                loop:
                  description: Repeat the whole file; either value clears an A-B loop
                  type: boolean
                muted:
                  type: boolean
                playing:
                  description: "true plays, false pauses"
                  type: boolean
                position_ms:
                  description: Seek to this position
                  minimum: 0
                  type: integer
                volume:
                  maximum: 100
                  minimum: 0
                  type: integer
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          duration_ms:
                            description: 0 for a live stream or media not loaded yet
                            type: integer
                          error:
                            description: "The player's last error; empty when none"
                            type: string
                          layout_uuid:
                            type: string
                          loop:
                            enum:
                              - none
                              - one
                              - ab
                            type: string
                          media_status:
                            description: "Qt's QMediaPlayer::MediaStatus name, e.g. LoadedMedia, BufferingMedia, InvalidMedia"
                            type: string
                          muted:
                            type: boolean
                          playing:
                            type: boolean
                          position_ms:
                            type: integer
                          seekable:
                            type: boolean
                          source:
                            description: File path or stream URL
                            type: string
                          uuid:
                            type: string
                          volume:
                            description: 0-100
                            type: integer
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set video state
      tags:
        - Video
  /api/workspaces:
    get:
      description: "List every workspace, marking the current, startup and temporary ones"
      operationId: listWorkspaces
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          count:
                            type: integer
                          workspaces:
                            items:
                              additionalProperties: true
                              properties:
                                current:
                                  description: Loaded in at least one window
                                  type: boolean
                                id:
                                  type: integer
                                name:
                                  type: string
                                startup:
                                  description: Opened at launch
                                  type: boolean
                                temporary:
                                  type: boolean
                              type: object
                            type: array
                        required:
                          - count
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List workspaces
      tags:
        - Workspace
    post:
      description: "Create a new workspace. temporary: true makes one that is deleted when a window switches away from it."
      operationId: createWorkspace
      requestBody:
        content:
          application/json:
            schema:
              properties:
                name:
                  description: Workspace name
                  type: string
                temporary:
                  description: Deleted when a window switches away from it (default false)
                  type: boolean
              required:
                - name
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          id:
                            type: integer
                          name:
                            type: string
                          success:
                            type: boolean
                          temporary:
                            type: boolean
                        required:
                          - success
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Create workspace
      tags:
        - Workspace
  /api/workspaces/import:
    post:
      description: "Create a workspace from exported text (workspace_export's data, or an .mws file's content). Profiles it names that do not exist become the default profile. A browser dock whose page the ad blocker blocks is left out and listed in skipped. Use workspace_switch to open it."
      operationId: importWorkspace
      requestBody:
        content:
          application/json:
            schema:
              properties:
                data:
                  description: Exported workspace text
                  type: string
                name:
                  description: Name for the new workspace; must not exist yet
                  type: string
              required:
                - name
                - data
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          id:
                            type: integer
                          name:
                            type: string
                          screens:
                            type: integer
                          skipped:
                            description: The docks left out because the ad blocker blocks their page
                            items:
                              type: string
                            type: array
                          success:
                            type: boolean
                        required:
                          - success
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Import workspace
      tags:
        - Workspace
  /api/workspaces/perform:
    post:
      description: "Run a workspace action. save: write every open window's workspace now. install_presets: install the bundled preset workspaces; an existing preset is overwritten only with overwrite: true."
      operationId: performWorkspaceAction
      requestBody:
        content:
          application/json:
            schema:
              properties:
                action:
                  enum:
                    - save
                    - install_presets
                  type: string
                overwrite:
                  description: "install_presets: overwrite presets that already exist (default false)"
                  type: boolean
              required:
                - action
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          action:
                            type: string
                          failed:
                            items:
                              type: string
                            type: array
                          installed:
                            items:
                              type: string
                            type: array
                          skipped:
                            items:
                              type: string
                            type: array
                          success:
                            type: boolean
                        required:
                          - success
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Perform workspace action
      tags:
        - Workspace
  "/api/workspaces/{id}":
    delete:
      description: Delete a workspace
      operationId: deleteWorkspace
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          success:
                            type: boolean
                          workspace_id:
                            type: integer
                        required:
                          - success
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Delete workspace
      tags:
        - Workspace
    get:
      description: "Get a workspace's full state: name, homepage, startup, temporary, current, and its layouts (one per window, by app_index)."
      operationId: getWorkspaceState
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          current:
                            description: Loaded in at least one window
                            type: boolean
                          homepage:
                            type: string
                          id:
                            type: integer
                          layout_count:
                            type: integer
                          layouts:
                            items:
                              properties:
                                app_index:
                                  type: integer
                                title:
                                  type: string
                              type: object
                            type: array
                          name:
                            type: string
                          startup:
                            description: Opened at launch
                            type: boolean
                          temporary:
                            description: Deleted when a window switches away from it
                            type: boolean
                        required:
                          - id
                          - name
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get workspace state
      tags:
        - Workspace
  "/api/workspaces/{id}/export":
    get:
      description: "Export a workspace as text, the same content as an exported .mws file. Pass data to workspace_import to recreate it. No file is written."
      operationId: exportWorkspace
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          data:
                            type: string
                          name:
                            type: string
                          screens:
                            type: integer
                          workspace_id:
                            type: integer
                        required:
                          - workspace_id
                          - data
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Export workspace
      tags:
        - Workspace
  "/api/workspaces/{id}/state":
    post:
      description: "Change a workspace in one call: name, homepage, startup. Only the fields sent change; every field is checked before any changes. Answers the full state, as workspace_get_state does."
      operationId: setWorkspaceState
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                homepage:
                  description: Homepage URL (http or https)
                  type: string
                name:
                  description: "New name; must not be another workspace's"
                  type: string
                startup:
                  description: true opens this workspace at launch; false clears that if it is the startup workspace. A temporary workspace cannot be the startup one.
                  type: boolean
              type: object
        required: false
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          current:
                            description: Loaded in at least one window
                            type: boolean
                          homepage:
                            type: string
                          id:
                            type: integer
                          layout_count:
                            type: integer
                          layouts:
                            items:
                              properties:
                                app_index:
                                  type: integer
                                title:
                                  type: string
                              type: object
                            type: array
                          name:
                            type: string
                          startup:
                            description: Opened at launch
                            type: boolean
                          temporary:
                            description: Deleted when a window switches away from it
                            type: boolean
                        required:
                          - id
                          - name
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set workspace state
      tags:
        - Workspace
  "/api/workspaces/{id}/switch":
    post:
      description: "Switch the windows to a different workspace. Every open dock is closed and the workspace's docks are loaded."
      operationId: switchWorkspace
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/BaseSuccess"
                  - properties:
                      data:
                        additionalProperties: true
                        properties:
                          success:
                            type: boolean
                          workspace_id:
                            type: integer
                        required:
                          - success
                        type: object
                    type: object
          description: Success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Switch workspace
      tags:
        - Workspace
  /json:
    get:
      operationId: getTargetListAlias
      responses:
        "200":
          content:
            application/json:
              schema:
                type: object
          description: Raw Chrome DevTools Protocol JSON.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
      summary: Get target list alias
      tags:
        - CDP
  "/json/close/{targetId}":
    get:
      operationId: closeTarget
      parameters:
        - in: path
          name: targetId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                type: object
          description: Raw Chrome DevTools Protocol JSON.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
      summary: Close target
      tags:
        - CDP
  /json/list:
    get:
      operationId: getTargetList
      responses:
        "200":
          content:
            application/json:
              schema:
                type: object
          description: Raw Chrome DevTools Protocol JSON.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
      summary: Get target list
      tags:
        - CDP
  /json/new:
    get:
      operationId: createTarget
      responses:
        "200":
          content:
            application/json:
              schema:
                type: object
          description: Raw Chrome DevTools Protocol JSON.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
      summary: Create target
      tags:
        - CDP
  /json/protocol:
    get:
      operationId: getProtocol
      responses:
        "200":
          content:
            application/json:
              schema:
                type: object
          description: Raw Chrome DevTools Protocol JSON.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
      summary: Get protocol
      tags:
        - CDP
  /json/version:
    get:
      operationId: getVersion
      responses:
        "200":
          content:
            application/json:
              schema:
                type: object
          description: Raw Chrome DevTools Protocol JSON.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Malformed request or missing required parameter.
      summary: Get version
      tags:
        - CDP
  /wd/hub/session:
    post:
      description: Create a new browser instance
      operationId: newSession
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: New session
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}":
    delete:
      description: Close a browser instance
      operationId: deleteSession
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Delete session
      tags:
        - Selenium
    get:
      description: Navigate a browser to a specific URL
      operationId: getSessionCapabilities
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get session capabilities
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/back":
    post:
      description: Navigate browser back in history
      operationId: back
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Back
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/cookie":
    delete:
      description: "Delete the cookie named name for the current page's URL, or, with all: true, every cookie of the browser's profile on every site (it signs the profile out everywhere). Send exactly one of the two. A key limited to domains cannot delete them all."
      operationId: deleteAllCookies
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Delete all cookies
      tags:
        - Selenium
    get:
      description: "Get the cookies sent to the current page's URL (HttpOnly included), as name and value, or only those named name"
      operationId: getAllCookies
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get all cookies
      tags:
        - Selenium
    post:
      description: Set a cookie for the browser
      operationId: addCookie
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Add cookie
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/cookie/{name}":
    delete:
      description: "Delete the cookie named name for the current page's URL, or, with all: true, every cookie of the browser's profile on every site (it signs the profile out everywhere). Send exactly one of the two. A key limited to domains cannot delete them all."
      operationId: deleteCookie
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: name
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Delete cookie
      tags:
        - Selenium
    get:
      description: "Get the cookies sent to the current page's URL (HttpOnly included), as name and value, or only those named name"
      operationId: getNamedCookie
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: name
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get named cookie
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element":
    post:
      description: Find visible interactive elements whose role or accessible name matches a text query. Returns matches with CSS selectors usable by browser_click/browser_set_value.
      operationId: findElement
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Find element
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/active":
    get:
      description: Find visible interactive elements whose role or accessible name matches a text query. Returns matches with CSS selectors usable by browser_click/browser_set_value.
      operationId: getActiveElement
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get active element
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/{elementId}/attribute/{name}":
    get:
      description: "Read the first element matching a CSS selector in one call: text content, whether it is visible, its viewport box and key computed styles, and the value of attribute when one is named."
      operationId: getElementAttribute
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: elementId
          required: true
          schema:
            type: string
        - in: path
          name: name
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get element attribute
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/{elementId}/clear":
    post:
      description: Clear an input field
      operationId: elementClear
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: elementId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Element clear
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/{elementId}/click":
    post:
      description: Click an element by CSS selector
      operationId: elementClick
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: elementId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Element click
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/{elementId}/css/{propertyName}":
    get:
      description: "Read the first element matching a CSS selector in one call: text content, whether it is visible, its viewport box and key computed styles, and the value of attribute when one is named."
      operationId: getElementCssValue
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: elementId
          required: true
          schema:
            type: string
        - in: path
          name: propertyName
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get element css value
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/{elementId}/element":
    post:
      description: Find visible interactive elements whose role or accessible name matches a text query. Returns matches with CSS selectors usable by browser_click/browser_set_value.
      operationId: findElementFromElement
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: elementId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Find element from element
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/{elementId}/elements":
    post:
      description: Find visible interactive elements whose role or accessible name matches a text query. Returns matches with CSS selectors usable by browser_click/browser_set_value.
      operationId: findElementsFromElement
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: elementId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Find elements from element
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/{elementId}/enabled":
    get:
      description: "Read the first element matching a CSS selector in one call: text content, whether it is visible, its viewport box and key computed styles, and the value of attribute when one is named."
      operationId: isElementEnabled
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: elementId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Is element enabled
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/{elementId}/name":
    get:
      description: "Read the first element matching a CSS selector in one call: text content, whether it is visible, its viewport box and key computed styles, and the value of attribute when one is named."
      operationId: getElementTagName
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: elementId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get element tag name
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/{elementId}/property/{name}":
    get:
      description: "Read the first element matching a CSS selector in one call: text content, whether it is visible, its viewport box and key computed styles, and the value of attribute when one is named."
      operationId: getElementProperty
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: elementId
          required: true
          schema:
            type: string
        - in: path
          name: name
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get element property
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/{elementId}/rect":
    get:
      description: "Read the first element matching a CSS selector in one call: text content, whether it is visible, its viewport box and key computed styles, and the value of attribute when one is named."
      operationId: getElementRect
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: elementId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get element rect
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/{elementId}/screenshot":
    get:
      description: "Screenshot a single element (scrolls it into view, captures just its bounding box). Returns an image. Far smaller than a full-page screenshot when you only need one component."
      operationId: takeElementScreenshot
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: elementId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Take element screenshot
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/{elementId}/selected":
    get:
      description: "Read the first element matching a CSS selector in one call: text content, whether it is visible, its viewport box and key computed styles, and the value of attribute when one is named."
      operationId: isElementSelected
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: elementId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Is element selected
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/{elementId}/text":
    get:
      description: "Read the first element matching a CSS selector in one call: text content, whether it is visible, its viewport box and key computed styles, and the value of attribute when one is named."
      operationId: getElementText
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: elementId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get element text
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/element/{elementId}/value":
    post:
      description: Type text at current cursor position
      operationId: elementSendKeys
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: elementId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Element send keys
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/elements":
    post:
      description: Find visible interactive elements whose role or accessible name matches a text query. Returns matches with CSS selectors usable by browser_click/browser_set_value.
      operationId: findElements
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Find elements
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/execute/async":
    post:
      description: "Execute JavaScript code in browser. The value of the last expression is returned; a returned promise is awaited and top-level await works. A thrown exception, or a promise still pending at timeout_ms, is reported as an error."
      operationId: executeAsyncScript
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute async script
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/execute/sync":
    post:
      description: "Execute JavaScript code in browser. The value of the last expression is returned; a returned promise is awaited and top-level await works. A thrown exception, or a promise still pending at timeout_ms, is reported as an error."
      operationId: executeScript
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Execute script
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/forward":
    post:
      description: Navigate browser forward in history
      operationId: forward
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Forward
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/adblock-add":
    post:
      description: Add a new adblock filter list by URL
      operationId: seleniumAdblockAdd
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium adblock add
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/adblock-get-override":
    post:
      description: "Get a profile's adblock override (on/off/inherit) and the effective enabled state"
      operationId: seleniumAdblockGetOverride
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium adblock get override
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/adblock-get-whitelist":
    post:
      description: "Without host: list a profile's hosts excepted from adblocking. With host: check whether that host is excepted in the profile. Matching is subdomain-inclusive, so an entry for metadock.app covers www.metadock.app."
      operationId: seleniumAdblockGetWhitelist
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium adblock get whitelist
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/adblock-list":
    post:
      description: "List all adblock filter lists (id, name, url, enabled, rule_count, last_updated) and the auto-update schedule"
      operationId: seleniumAdblockList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium adblock list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/adblock-remove":
    post:
      description: Remove an adblock filter list by id
      operationId: seleniumAdblockRemove
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium adblock remove
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/adblock-set-override":
    post:
      description: "Set a profile's adblock override"
      operationId: seleniumAdblockSetOverride
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium adblock set override
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/adblock-set-state":
    post:
      description: "Enable or disable a filter list (id + enabled) and/or set the auto-update schedule (auto_update, auto_update_hours). Pass only what changes; answers the same state as adblock_list"
      operationId: seleniumAdblockSetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium adblock set state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/adblock-set-whitelist":
    post:
      description: "Add or remove a host from a profile's adblock site exceptions. Adding a host that is already excepted is a no-op, reported as changed=false."
      operationId: seleniumAdblockSetWhitelist
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium adblock set whitelist
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/adblock-update":
    post:
      description: "Re-download one filter list by id, or every enabled list when id is omitted"
      operationId: seleniumAdblockUpdate
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium adblock update
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/apps/{uuid}/click":
    post:
      description: "Click at a point inside a mounted native app, in the same pixel coordinates as native_app_screenshot. Best effort: some apps ignore synthesized clicks, so prefer native_app_uia_act when the element is in the control tree. Works while other windows cover MetaDock. The click is delivered asynchronously, so allow a moment before taking a screenshot to see its effect. Not available for games."
      operationId: nativeAppClick
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Native app click
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/apps/{uuid}/key":
    post:
      description: "Press a single named key in a mounted native app, sent to whichever control has focus inside the app (focus one first with native_app_uia_act 'focus'). No modifier combinations such as Ctrl+S. Delivered asynchronously. Not available for games."
      operationId: nativeAppPressKey
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Native app press key
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/apps/{uuid}/screenshot":
    get:
      description: "Capture the contents of a mounted native app window. At full size, image pixels match native_app_uia_tree rects and native_app_click points; when max_width shrinks the image, divide image coordinates by the returned scale to get window coordinates. On macOS the image is the whole window, title bar included, and needs the Screen Recording permission. Not available for games."
      operationId: nativeAppScreenshot
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Native app screenshot
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/apps/{uuid}/type":
    post:
      description: "Type text into a mounted native app as keyboard character input, sent to whichever control has focus inside the app (focus one first with native_app_uia_act 'focus'). Unlike native_app_uia_act 'set_value', rich editors register it as real typing. Use native_app_press_key for Enter, Tab and other named keys. Delivered asynchronously. Not available for games."
      operationId: nativeAppType
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Native app type
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/apps/{uuid}/uia":
    get:
      description: "Read the control tree (UI Automation on Windows, Accessibility on macOS) of a mounted native app: buttons, fields, menus and their ids, names, rects and supported actions. Includes the app's open dialogs and menus. Prefer this plus native_app_uia_act over clicking by pixel. Not available for games."
      operationId: nativeAppUiaTree
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Native app uia tree
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/apps/{uuid}/uia/act":
    post:
      description: "Perform an action on a control-tree element of a mounted native app, by the id from native_app_uia_tree. Does not move the mouse or use the keyboard. set_value can bypass rich-text editors (chat boxes, web-based editors) so the app never sees the text; for those, use 'focus' here and then native_app_type. Not available for games."
      operationId: nativeAppUiaAct
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Native app uia act
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/bookmark-create":
    post:
      description: Create a bookmark
      operationId: seleniumBookmarkCreate
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium bookmark create
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/bookmark-create-category":
    post:
      description: "Create a bookmark category and return its id, which bookmark_create and bookmark_update take as category_id."
      operationId: seleniumBookmarkCreateCategory
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium bookmark create category
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/bookmark-delete":
    post:
      description: Delete a bookmark by id
      operationId: seleniumBookmarkDelete
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium bookmark delete
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/bookmark-delete-category":
    post:
      description: Delete a bookmark category. Fails if it still holds bookmarks or child categories unless delete_contents is true.
      operationId: seleniumBookmarkDeleteCategory
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium bookmark delete category
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/bookmark-list":
    post:
      description: "List bookmarks (id, name, url, category_id, tags). Optional profile filter. Supports limit + offset paging; response includes total."
      operationId: seleniumBookmarkList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium bookmark list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/bookmark-list-categories":
    post:
      description: "List bookmark categories (id, name, parent_id, color, path, depth)"
      operationId: seleniumBookmarkListCategories
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium bookmark list categories
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/bookmark-list-tags":
    post:
      description: "List every distinct tag used across saved bookmarks, sorted alphabetically. Call this to discover valid values for the tags parameter on bookmark_create and bookmark_update. Unlike bookmark_list, this is not scoped to a profile - tags are shared across all bookmarks."
      operationId: seleniumBookmarkListTags
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium bookmark list tags
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/bookmark-open":
    post:
      description: Open a bookmark in a new browser
      operationId: seleniumBookmarkOpen
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium bookmark open
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/bookmark-rename-category":
    post:
      description: Rename a bookmark category
      operationId: seleniumBookmarkRenameCategory
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium bookmark rename category
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/bookmark-update":
    post:
      description: "Update a bookmark's title, url, and/or category by id (unspecified fields keep their current value)"
      operationId: seleniumBookmarkUpdate
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium bookmark update
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-batch":
    post:
      description: Execute multiple browser operations in sequence on one or multiple browsers (100 operations per browser max)
      operationId: seleniumBrowserBatch
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser batch
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-clear-cache":
    post:
      description: "Clear this browser's HTTP cache (CDP Network.clearBrowserCache). Does not touch cookies."
      operationId: seleniumBrowserClearCache
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser clear cache
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-clear-console":
    post:
      description: Clear console messages for the browser
      operationId: seleniumBrowserClearConsole
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser clear console
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-clear-input":
    post:
      description: Clear an input field
      operationId: seleniumBrowserClearInput
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser clear input
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-clear-storage":
    post:
      description: "Clear the page's localStorage or sessionStorage. With a key, removes just that key; without, clears the whole store for the origin."
      operationId: seleniumBrowserClearStorage
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser clear storage
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-click":
    post:
      description: Click an element by CSS selector
      operationId: seleniumBrowserClick
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser click
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-click-at":
    post:
      description: Click at raw viewport pixel coordinates using a real (trusted) mouse event. Use when you have coordinates rather than a CSS selector (e.g. from a screenshot or element box).
      operationId: seleniumBrowserClickAt
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser click at
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-delete-cookies":
    post:
      description: "Delete the cookie named name for the current page's URL, or, with all: true, every cookie of the browser's profile on every site (it signs the profile out everywhere). Send exactly one of the two. A key limited to domains cannot delete them all."
      operationId: seleniumBrowserDeleteCookies
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser delete cookies
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-drag":
    post:
      description: "Drag from one element to another using real (trusted) mouse events: press at the source center, move in steps to the target center, release. Works for sliders, sortable lists, and canvas/custom drag handlers."
      operationId: seleniumBrowserDrag
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser drag
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-execute-js":
    post:
      description: "Execute JavaScript code in browser. The value of the last expression is returned; a returned promise is awaited and top-level await works. A thrown exception, or a promise still pending at timeout_ms, is reported as an error."
      operationId: seleniumBrowserExecuteJs
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser execute js
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-extract":
    post:
      description: "Structured, schema-driven extraction. Provide a 'fields' map of {fieldName: {selector, attr, all}} and get back JSON. attr: 'text' (default), 'html', or an attribute name like 'href'. all:true returns an array of matches."
      operationId: seleniumBrowserExtract
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser extract
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-find":
    post:
      description: Find visible interactive elements whose role or accessible name matches a text query. Returns matches with CSS selectors usable by browser_click/browser_set_value.
      operationId: seleniumBrowserFind
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser find
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-console":
    post:
      description: Get console messages from the browser
      operationId: seleniumBrowserGetConsole
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get console
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-cookies":
    post:
      description: "Get the cookies sent to the current page's URL (HttpOnly included), as name and value, or only those named name"
      operationId: seleniumBrowserGetCookies
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get cookies
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-element":
    post:
      description: "Read the first element matching a CSS selector in one call: text content, whether it is visible, its viewport box and key computed styles, and the value of attribute when one is named."
      operationId: seleniumBrowserGetElement
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get element
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-fingerprint":
    post:
      description: "Get a browser profile's fingerprint protection config, with its geolocation override under geo (including the last resolved result in auto mode)."
      operationId: seleniumBrowserGetFingerprint
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get fingerprint
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-forms":
    post:
      description: "Enumerate forms and their fields {name, id, type, label, placeholder, required, options, selector}. Lets you fill forms by known field names instead of guessing selectors. Password/sensitive values are never returned."
      operationId: seleniumBrowserGetForms
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get forms
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-headers":
    post:
      description: List the custom request headers currently applied to a browser. Readable counterpart to browser_set_headers. These are session-only and do not survive a restart.
      operationId: seleniumBrowserGetHeaders
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get headers
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-last-dialog":
    post:
      description: "Get the most recent JavaScript dialog captured for this browser (only captured while a non-default dialog policy is active): {policy, kind, message, uri, captured}."
      operationId: seleniumBrowserGetLastDialog
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get last dialog
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-links":
    post:
      description: "Extract all hyperlinks on the page as a compact list of {text, href, rel}. Deduplicated. A token-cheap navigation map instead of raw HTML."
      operationId: seleniumBrowserGetLinks
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get links
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-metadata":
    post:
      description: "Get page metadata: title, description, canonical URL, author, published/modified dates, language, favicon, Open Graph + Twitter cards, word count and reading time."
      operationId: seleniumBrowserGetMetadata
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get metadata
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-network":
    post:
      description: "List the network requests the page has made (from the Resource Timing API): url, type, protocol, size, and duration, plus navigation timing. Note: does NOT include status codes, headers, or response bodies."
      operationId: seleniumBrowserGetNetwork
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get network
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-screenshot":
    post:
      description: Retrieve a saved screenshot by UUID. Use this after browser_screenshot with save=true. Screenshots expire after 5 minutes.
      operationId: seleniumBrowserGetScreenshot
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get screenshot
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-source":
    post:
      description: Get raw page source HTML. Token-heavy - prefer browser_read for clean content. Supports clean (strip script/style/svg/etc.) and max_chars + offset paging to avoid dumping the whole document.
      operationId: seleniumBrowserGetSource
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get source
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-state":
    post:
      description: "Get a browser's full state: identity, navigation, every field browser_set_state and browser_set_emulation set (zoom, muted, locked, scripts_enabled, adblock, profile, headless, dialog_policy, user_agent, viewport, emulated_device, offline), whether ads are blocked (adblock_effective) and custom request headers. The raw geolocation override is not readable."
      operationId: seleniumBrowserGetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-storage":
    post:
      description: "Read the page's localStorage or sessionStorage. With a key, returns that value; without, returns all entries for the origin."
      operationId: seleniumBrowserGetStorage
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get storage
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-get-tables":
    post:
      description: "Extract HTML tables as markdown (default), CSV, or JSON rows. Avoids the model parsing <td> soup."
      operationId: seleniumBrowserGetTables
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser get tables
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-go-back":
    post:
      description: Navigate browser back in history
      operationId: seleniumBrowserGoBack
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser go back
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-go-forward":
    post:
      description: Navigate browser forward in history
      operationId: seleniumBrowserGoForward
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser go forward
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-history-go":
    post:
      description: "Move within the browser's session history by a relative delta (e.g. -1 = back, 1 = forward, -2 = back twice)."
      operationId: seleniumBrowserHistoryGo
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser history go
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-hover":
    post:
      description: "Hover the pointer over an element (dispatches pointer/mouse enter+over+move events), triggering hover menus and tooltips. Scrolls the element into view first."
      operationId: seleniumBrowserHover
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser hover
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-inject":
    post:
      description: "Add CSS (css) or an external script by URL (script_url, http or https) to the current page. Send exactly one."
      operationId: seleniumBrowserInject
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser inject
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-list-gpu-presets":
    post:
      description: "List the GPU presets browser_set_fingerprint accepts as webgl.gpu_preset, with a description of each."
      operationId: seleniumBrowserListGpuPresets
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser list gpu presets
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-navigate":
    post:
      description: Navigate a browser to a specific URL
      operationId: seleniumBrowserNavigate
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser navigate
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-press-key":
    post:
      description: "Send a real (trusted) key press to the focused element via native input. Accepts a named key or a single printable character. Named keys (case-insensitive): Enter/Return, Tab, Escape/Esc, Backspace, Delete/Del, Space, Up/ArrowUp, Down/ArrowDown, Left/ArrowLeft, Right/ArrowRight, Home, End, PageUp, PageDown, Insert, and F1-F24 (F1-F20 on macOS, where Home/End also keep their Mac meaning: they scroll instead of moving the caret). Use this for Enter-to-submit / Tab-between-fields where synthetic JS key events do not work. Modifier combos (Ctrl+A etc.) are not yet supported."
      operationId: seleniumBrowserPressKey
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser press key
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-print-pdf":
    post:
      description: Print page to PDF. Output is restricted to your Documents or Downloads folder.
      operationId: seleniumBrowserPrintPdf
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser print pdf
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-read":
    post:
      description: "Read the page as clean, LLM-friendly content instead of raw HTML. Strips boilerplate (article mode), converts to markdown or plain text, and supports paging via max_chars + offset. Prefer this over browser_get_source."
      operationId: seleniumBrowserRead
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser read
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-reload":
    post:
      description: Reload the current page
      operationId: seleniumBrowserReload
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser reload
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-right-click":
    post:
      description: Right-click (context-menu) an element by dispatching mousedown/mouseup/contextmenu with the secondary button. Scrolls the element into view first.
      operationId: seleniumBrowserRightClick
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser right click
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-screenshot":
    post:
      description: "Take a screenshot of the page - returns base64-encoded PNG image data. Use save=true for batch operations to reduce token usage (returns UUID instead of image data, use browser_get_screenshot to retrieve)."
      operationId: seleniumBrowserScreenshot
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser screenshot
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-screenshot-element":
    post:
      description: "Screenshot a single element (scrolls it into view, captures just its bounding box). Returns an image. Far smaller than a full-page screenshot when you only need one component."
      operationId: seleniumBrowserScreenshotElement
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser screenshot element
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-scroll":
    post:
      description: "Scroll the page to x, y (page coordinates, not negative), or by x, y when relative is true"
      operationId: seleniumBrowserScroll
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser scroll
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-set-cookie":
    post:
      description: Set a cookie for the browser
      operationId: seleniumBrowserSetCookie
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser set cookie
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-set-emulation":
    post:
      description: "Change a browser's emulation in one call. Only the fields sent change; null clears a field back to the real value. device sets viewport, pixel ratio, touch and user agent together and survives navigation; a docked browser's own viewport snaps back to its dock, so use device for a stable page size. Answers the full state."
      operationId: seleniumBrowserSetEmulation
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser set emulation
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-set-fingerprint":
    post:
      description: "Change a browser profile's fingerprint protection, including its geolocation override. Only what is sent changes: a section (canvas, webgl, identity, network, ...) is merged field by field into the stored one. Turning canvas, webgl or audio on also turns protection on. A preset is a new baseline: the config restarts from that preset and the other fields sent apply on top. geo sets the geolocation, timezone and locale override (needs protection on; null removes it). reset: true clears the whole config. The config belongs to the browser's profile and applies to every open browser of it. A named GPU card sets platform to that card's OS, unless identity carries an explicit override_ua (follow_profile_ua=false): then the UA's OS is the platform and a card from another OS is reset to Auto. enabled=false also turns the geolocation override off. Answers the config, as browser_get_fingerprint does."
      operationId: seleniumBrowserSetFingerprint
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser set fingerprint
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-set-headers":
    post:
      description: "Add, change or remove custom HTTP request headers sent by this browser on subsequent requests. headers maps each name to its value, or to null to remove it. Every name is checked first; Authorization, Cookie, Host and Proxy-Authorization are refused. Session-only. Answers the headers now applied."
      operationId: seleniumBrowserSetHeaders
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser set headers
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-set-state":
    post:
      description: "Change any part of a browser's state in one call: locked, muted, zoom, scripts_enabled, adblock, profile, headless, dialog_policy, devtools_enabled, devtools_open. Only the fields sent change; every field is checked before any changes. Answers the full state, as browser_get_state does."
      operationId: seleniumBrowserSetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser set state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-set-storage":
    post:
      description: "Set a key in the page's localStorage or sessionStorage."
      operationId: seleniumBrowserSetStorage
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser set storage
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-set-value":
    post:
      description: Set value of an input element
      operationId: seleniumBrowserSetValue
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser set value
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-snapshot":
    post:
      description: "Token-efficient interactive snapshot: a compact list of visible interactive elements (links, buttons, inputs, selects) each with role, accessible name and a CSS selector usable by browser_click/browser_set_value, plus a heading outline. Far cheaper than a screenshot for driving a page."
      operationId: seleniumBrowserSnapshot
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser snapshot
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-stop":
    post:
      description: Stop loading the current page
      operationId: seleniumBrowserStop
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser stop
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-submit-form":
    post:
      description: Submit a form
      operationId: seleniumBrowserSubmitForm
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser submit form
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-type":
    post:
      description: Type text at current cursor position
      operationId: seleniumBrowserType
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser type
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-upload-file":
    post:
      description: "Attach files to a file <input> element. You supply the file CONTENT as base64 (not a local path), so the tool never reads the machine's disk. Each file is materialized in-page and assigned to the input."
      operationId: seleniumBrowserUploadFile
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser upload file
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browser-wait":
    post:
      description: "Wait for something on the page. for: element (selector appears; default timeout 5000), load (the page finishes loading; default 30000), or network_idle (loaded and no new requests for idle_ms; default 30000). Use after a navigation or an action that loads content, before reading."
      operationId: seleniumBrowserWait
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browser wait
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browsers-close":
    post:
      description: "Close many browsers at once: every browser, or only those in layout_uuid, except keep_browser_uuid when given"
      operationId: seleniumBrowsersClose
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browsers close
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browsers-create-multiple":
    post:
      description: Create multiple browsers with different configurations
      operationId: seleniumBrowsersCreateMultiple
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browsers create multiple
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browsers-list":
    post:
      description: "List the open browsers: uuid, url, title, custom title, profile and layout. layout_uuid narrows it to one layout."
      operationId: seleniumBrowsersList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browsers list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browsers-run":
    post:
      description: "Run one action on many browsers: reload, stop, back, forward, navigate (url), execute (script; answers each result) or screenshot (saved; answers each screenshot_uuid for browser_get_screenshot; needs browser.capture). Selects the listed browser_uuids, every browser in layout_uuid, or every browser."
      operationId: seleniumBrowsersRun
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browsers run
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/browsers-set-state":
    post:
      description: "browser_set_state for many browsers: the listed browser_uuids, every browser in layout_uuid, or every browser when neither is given. Answers one result per browser."
      operationId: seleniumBrowsersSetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium browsers set state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/console":
    get:
      description: Get console messages from the browser
      operationId: getConsole
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get console
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/console/clear":
    post:
      description: Clear console messages for the browser
      operationId: clearConsole
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Clear console
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/download-clear":
    post:
      description: "Remove finished downloads (completed, cancelled, failed) from the list, or every download, cancelling running ones first, when completed_only is false"
      operationId: seleniumDownloadClear
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium download clear
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/download-list":
    post:
      description: "List active/recent downloads (uuid, filename, url, status, bytes, speed, profile). Supports limit + offset paging; response includes total. Pass uuid for just that one download, and profile to list only that profile's downloads."
      operationId: seleniumDownloadList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium download list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/download-perform":
    post:
      description: "Act on one download: pause or resume it, cancel it, or remove it from the list (cancelling it first if it is still running)"
      operationId: seleniumDownloadPerform
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium download perform
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/download-start":
    post:
      description: "Start a managed download to the app's configured download directory and return its UUID and initial state. The transfer can be observed and controlled with the other download tools. There is intentionally no destination-path parameter, and the request does not use a browser login session. With profile, the download belongs to that profile and goes through its proxy; a key limited to profiles must name one of them."
      operationId: seleniumDownloadStart
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium download start
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/extension-install":
    post:
      description: "Install an extension into a profile, from the Chrome Web Store or Edge Add-ons (store + store_id), or from an unpacked folder on this machine (folder, which is copied). Send one source, not both. The extension runs on every page of the profile."
      operationId: seleniumExtensionInstall
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium extension install
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/extension-list":
    post:
      description: "List a profile's browser extensions: id, name, enabled, and whether it has an options page."
      operationId: seleniumExtensionList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium extension list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/extension-remove":
    post:
      description: "Uninstall one of a profile's extensions and delete its files."
      operationId: seleniumExtensionRemove
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium extension remove
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/extension-set-state":
    post:
      description: "Enable or disable one of a profile's extensions."
      operationId: seleniumExtensionSetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium extension set state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/gpu-presets":
    get:
      description: "List the GPU presets browser_set_fingerprint accepts as webgl.gpu_preset, with a description of each."
      operationId: listGpuPresets
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List gpu presets
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/history-clear":
    post:
      description: "Clear browsing history: one profile's, a time range's, or both. With no arguments, clears all history across every profile. A profile-limited key must name its profile."
      operationId: seleniumHistoryClear
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium history clear
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/history-delete-visit":
    post:
      description: Delete a single history visit by visit_id
      operationId: seleniumHistoryDeleteVisit
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium history delete visit
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/history-list":
    post:
      description: "List/search browsing history visits (visit_id, uri, title, host, profile, visit_time, counts)"
      operationId: seleniumHistoryList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium history list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/history-profiles":
    post:
      description: List distinct profiles that have history visits
      operationId: seleniumHistoryProfiles
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium history profiles
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/history-remove-uri":
    post:
      description: Remove all history for a specific URL
      operationId: seleniumHistoryRemoveUri
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium history remove uri
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/layout-close-all":
    post:
      description: "Close all dock widgets of specified types, or exactly the docks dock_uuids names (any dock uuid from layout_get_state). Use to bulk-close browsers, native apps, video players, etc. With dock_uuids an unknown or closed uuid, or one outside layout_uuid, refuses the call and nothing closes."
      operationId: seleniumLayoutCloseAll
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium layout close all
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/layout-create":
    post:
      description: Create a new layout/dock
      operationId: seleniumLayoutCreate
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium layout create
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/layout-delete":
    post:
      description: Delete a layout/dock
      operationId: seleniumLayoutDelete
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium layout delete
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/layout-get-state":
    post:
      description: "Get a layout's full state: lock, fullscreen, window state, size and fixed resolution, mute, new-dock placement, workspace-switch sync, UI toggles, and every dock with its area, focus, floating, maximized and tabbed state. layout_set_state takes the same fields."
      operationId: seleniumLayoutGetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium layout get state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/layout-list":
    post:
      description: List all available layouts/docks
      operationId: seleniumLayoutList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium layout list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/layout-move-dock":
    post:
      description: "Move a dock beside its neighbour in a direction (or to that edge of the layout), or send it to another open layout. Send recreates the dock there, so it answers the dock's new uuid. A locked layout refuses both."
      operationId: seleniumLayoutMoveDock
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium layout move dock
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/layout-open-dock":
    post:
      description: "Open a non-browser dock in the layout: downloads, history, bookmarks (the layout's profile), or a new-window panel. Settings is a floating panel, not a dock; change settings with settings_set. beside_dock_uuid opens it next to an open dock of the same layout instead of where new docks normally go. Answers the new dock's dock_uuid, which layout_move_dock and layout_set_dock_state take."
      operationId: seleniumLayoutOpenDock
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium layout open dock
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/layout-perform":
    post:
      description: "Run a layout action: equalize (share space evenly between the tiled docks), reset (re-dock everything into the automatic grid) or restore_closed (reopen the most recently closed browser; answers its browser_uuid)."
      operationId: seleniumLayoutPerform
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium layout perform
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/layout-screenshot":
    post:
      description: Screenshot the layout window at its exact dimensions. Captures dock chrome only - content areas come out black. Use browser_screenshot for page content.
      operationId: seleniumLayoutScreenshot
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium layout screenshot
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/layout-set-dock-state":
    post:
      description: "Change one dock's state: focus it (also selects its tab), float or re-dock it, maximize it (show it alone), gather its neighbouring areas into tabs (tabbed: true) or split its tabs into panels (tabbed: false), or resize its area (width, height) by moving the splitters beside it; the other docks share the change. Applied in the order floating, tabbed, width, height, maximized, focused; stops at the first that fails. A locked layout refuses floating, tabbed, width and height."
      operationId: seleniumLayoutSetDockState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium layout set dock state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/layout-set-state":
    post:
      description: "Change any part of a layout's state in one call. Every field is optional and only the fields sent change. Answers the full state, as layout_get_state does."
      operationId: seleniumLayoutSetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium layout set state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/native-app-click":
    post:
      description: "Click at a point inside a mounted native app, in the same pixel coordinates as native_app_screenshot. Best effort: some apps ignore synthesized clicks, so prefer native_app_uia_act when the element is in the control tree. Works while other windows cover MetaDock. The click is delivered asynchronously, so allow a moment before taking a screenshot to see its effect. Not available for games."
      operationId: seleniumNativeAppClick
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium native app click
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/native-app-dismount":
    post:
      description: Dismount (unembed) a native app dock by UUID
      operationId: seleniumNativeAppDismount
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium native app dismount
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/native-app-get-state":
    post:
      description: "Get the state of a mounted native app dock by UUID: process, title, layout, lock and whether it is still running"
      operationId: seleniumNativeAppGetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium native app get state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/native-app-list":
    post:
      description: List native app docks mounted in a layout (full JSON)
      operationId: seleniumNativeAppList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium native app list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/native-app-list-processes":
    post:
      description: "List visible top-level OS windows that can be mounted as native app docks, including process name, PID, window title and whether the process is a game"
      operationId: seleniumNativeAppListProcesses
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium native app list processes
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/native-app-mount":
    post:
      description: Mount a running native window as a dock in a layout
      operationId: seleniumNativeAppMount
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium native app mount
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/native-app-press-key":
    post:
      description: "Press a single named key in a mounted native app, sent to whichever control has focus inside the app (focus one first with native_app_uia_act 'focus'). No modifier combinations such as Ctrl+S. Delivered asynchronously. Not available for games."
      operationId: seleniumNativeAppPressKey
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium native app press key
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/native-app-screenshot":
    post:
      description: "Capture the contents of a mounted native app window. At full size, image pixels match native_app_uia_tree rects and native_app_click points; when max_width shrinks the image, divide image coordinates by the returned scale to get window coordinates. On macOS the image is the whole window, title bar included, and needs the Screen Recording permission. Not available for games."
      operationId: seleniumNativeAppScreenshot
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium native app screenshot
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/native-app-set-state":
    post:
      description: "Set a native app dock's lock and custom title. Pass only the fields to change; answers the resulting state"
      operationId: seleniumNativeAppSetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium native app set state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/native-app-type":
    post:
      description: "Type text into a mounted native app as keyboard character input, sent to whichever control has focus inside the app (focus one first with native_app_uia_act 'focus'). Unlike native_app_uia_act 'set_value', rich editors register it as real typing. Use native_app_press_key for Enter, Tab and other named keys. Delivered asynchronously. Not available for games."
      operationId: seleniumNativeAppType
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium native app type
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/native-app-uia-act":
    post:
      description: "Perform an action on a control-tree element of a mounted native app, by the id from native_app_uia_tree. Does not move the mouse or use the keyboard. set_value can bypass rich-text editors (chat boxes, web-based editors) so the app never sees the text; for those, use 'focus' here and then native_app_type. Not available for games."
      operationId: seleniumNativeAppUiaAct
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium native app uia act
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/native-app-uia-tree":
    post:
      description: "Read the control tree (UI Automation on Windows, Accessibility on macOS) of a mounted native app: buttons, fields, menus and their ids, names, rects and supported actions. Includes the app's open dialogs and menus. Prefer this plus native_app_uia_act over clicking by pixel. Not available for games."
      operationId: seleniumNativeAppUiaTree
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium native app uia tree
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/pdf":
    post:
      description: Print page to PDF. Output is restricted to your Documents or Downloads folder.
      operationId: printPdf
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Print pdf
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/permission-clear":
    post:
      description: "Forget every remembered permission decision of a profile, for all hosts"
      operationId: seleniumPermissionClear
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium permission clear
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/permission-list":
    post:
      description: "List a profile's remembered site permission decisions (profile, host, permission_type, label, allowed). Decisions are per profile."
      operationId: seleniumPermissionList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium permission list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/permission-list-types":
    post:
      description: "List every permission type that can be granted or denied, with a human-readable label. Call this to discover valid permission_type values for permission_set and permission_remove."
      operationId: seleniumPermissionListTypes
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium permission list types
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/permission-remove":
    post:
      description: "Forget one of a profile's remembered permission decisions for a host. permission_type is the stored value from permission_list or permission_list_types"
      operationId: seleniumPermissionRemove
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium permission remove
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/permission-remove-host":
    post:
      description: "Forget every one of a profile's remembered permission decisions for a host"
      operationId: seleniumPermissionRemoveHost
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium permission remove host
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/permission-set":
    post:
      description: "Remember a profile's permission decision for a host, as if the user had answered a prompt with 'remember this choice'. Takes effect immediately, without a restart."
      operationId: seleniumPermissionSet
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium permission set
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/permissions":
    get:
      description: "List a profile's remembered site permission decisions (profile, host, permission_type, label, allowed). Decisions are per profile."
      operationId: listSitePermissions
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: List site permissions
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/permissions/clear":
    post:
      description: "Forget every remembered permission decision of a profile, for all hosts"
      operationId: clearSitePermissions
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Clear site permissions
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/permissions/remove":
    post:
      description: "Forget one of a profile's remembered permission decisions for a host. permission_type is the stored value from permission_list or permission_list_types"
      operationId: removeSitePermission
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Remove site permission
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/permissions/remove-host":
    post:
      description: "Forget every one of a profile's remembered permission decisions for a host"
      operationId: removeSiteHostPermissions
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Remove site host permissions
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/profile-create":
    post:
      description: "Create a new browser profile. temporary: true makes one that MetaDock removes when it exits (or, after a crash, when it next starts)."
      operationId: seleniumProfileCreate
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium profile create
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/profile-delete":
    post:
      description: Delete a browser profile and everything stored under it. Refused for the last permanent profile and for a profile an open browser uses; close its browsers first
      operationId: seleniumProfileDelete
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium profile delete
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/profile-get-state":
    post:
      description: "Get a profile's state, including one locked by the plan's profile limit: default, temporary, locked, colour, fingerprint protection, the sites it was recorded as signed in to, and its proxy with any credentials stripped."
      operationId: seleniumProfileGetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium profile get state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/profile-list":
    post:
      description: "List the usable browser profiles: which one is the default, which are temporary, and which have a proxy configured; locked names the profiles the plan's profile limit locks. Does not return proxy values - the stored form embeds credentials."
      operationId: seleniumProfileList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium profile list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/profile-set-state":
    post:
      description: "Change a profile in one call: new_name (rename), default (true makes it the default profile), proxy or proxy_id, color, fingerprint, active (unlock a profile the plan's limit locks). Only the fields sent change; every field is checked first. A proxy applies to browsers opened after every browser on the profile is closed. Answers the state."
      operationId: seleniumProfileSetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium profile set state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/proxy-create":
    post:
      description: Save a proxy to the library without binding it to a profile (profile_set_state proxy_id binds one). Saving an address the library already has answers that entry. Pro only.
      operationId: seleniumProxyCreate
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium proxy create
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/proxy-delete":
    post:
      description: Delete a saved proxy. Every profile bound to it is left with no proxy (answered as unbound); their open browsers keep it until they are all closed.
      operationId: seleniumProxyDelete
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium proxy delete
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/proxy-list":
    post:
      description: "List the saved proxy library, the entries the proxy dialog offers: id, label, address with credentials stripped, and the profiles bound to each."
      operationId: seleniumProxyList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium proxy list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/search":
    post:
      description: Run a search query in a new browser using the default (or specified) search engine
      operationId: seleniumSearch
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium search
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/search-alias-delete":
    post:
      description: Delete a website alias
      operationId: seleniumSearchAliasDelete
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium search alias delete
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/search-alias-list":
    post:
      description: "List website aliases (short keyword -> URL shortcuts used in the omnibox)"
      operationId: seleniumSearchAliasList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium search alias list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/search-alias-resolve":
    post:
      description: Resolve a website alias to its URL
      operationId: seleniumSearchAliasResolve
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium search alias resolve
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/search-alias-set":
    post:
      description: Create or update a website alias
      operationId: seleniumSearchAliasSet
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium search alias set
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/search-engine-create":
    post:
      description: "Add a search engine. The URL must contain the {searchTerms} placeholder where the query is inserted. A bare host gains an https:// prefix. Both name and URL must be unique."
      operationId: seleniumSearchEngineCreate
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium search engine create
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/search-engine-delete":
    post:
      description: Remove a search engine. Refused for the engine currently set as default - point default_search_engine_id at another engine first.
      operationId: seleniumSearchEngineDelete
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium search engine delete
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/search-engine-list":
    post:
      description: "List configured search engines (id, name, url). The id is what settings_set writes to default_search_engine_id and what search accepts as engine_id."
      operationId: seleniumSearchEngineList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium search engine list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/search-engine-update":
    post:
      description: "Rename a search engine, change its URL, or both. Omit a field to leave it unchanged. A changed URL must still contain the {searchTerms} placeholder."
      operationId: seleniumSearchEngineUpdate
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium search engine update
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/settings-get":
    post:
      description: "Get current values of application settings (the readable counterpart to settings_set) - behaviour/features, appearance, browsing, and API-surface flags. The API key/secret is never returned."
      operationId: seleniumSettingsGet
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium settings get
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/settings-list":
    post:
      description: "List every application setting with its type, whether it is writable, its current value, permitted values and bounds. Use this to discover valid keys before calling settings_set."
      operationId: seleniumSettingsList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium settings list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/settings-set":
    post:
      description: "Set an application setting by key. Call settings_list first for each key's type, permitted values, bounds and whether it is writable."
      operationId: seleniumSettingsSet
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium settings set
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/theme-create":
    post:
      description: "Add a custom theme copied from from_theme_id (default: the active theme), with any colours given replacing the copied ones. Select it with settings_set theme_id. Window, input, button, tooltip and selection text must keep 3:1 contrast with their background; a colour that breaks a pair is refused."
      operationId: seleniumThemeCreate
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium theme create
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/theme-delete":
    post:
      description: Delete a custom theme. Built-in themes are refused. Deleting the active theme switches to the first built-in theme.
      operationId: seleniumThemeDelete
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium theme delete
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/theme-get-state":
    post:
      description: "Get one theme: its name, dark flag, whether it is built in or active, and its 21 palette colours (#rrggbb)."
      operationId: seleniumThemeGetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium theme get state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/theme-list":
    post:
      description: "List available themes (id, name, is_dark, is_core). The id is what settings_set writes to theme_id."
      operationId: seleniumThemeList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium theme list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/theme-set-state":
    post:
      description: "Rename a custom theme, change some of its colours, or its dark flag. Omitted fields stay as they are. Built-in themes are refused: copy one with theme_create first. Applies live when the theme is active. Window, input, button, tooltip and selection text must keep 3:1 contrast with their background; a colour that breaks a pair is refused."
      operationId: seleniumThemeSetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium theme set state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/video-get-state":
    post:
      description: "One video player's state, or every player's when uuid is omitted: source, playing, position, duration, volume, muted, loop."
      operationId: seleniumVideoGetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium video get state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/video-open":
    post:
      description: "Open a video player dock and start playing a stream URL or a media file on this machine. Send url or path, not both."
      operationId: seleniumVideoOpen
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium video open
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/video-set-state":
    post:
      description: "Change a video player in one call: playing, position_ms (seek), volume, muted, loop. Only the fields sent change; every field is checked first. Answers the state."
      operationId: seleniumVideoSetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium video set state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/video-snapshot":
    post:
      description: "Capture the frame a video player is showing, as a PNG image."
      operationId: seleniumVideoSnapshot
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium video snapshot
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/workspace-create":
    post:
      description: "Create a new workspace. temporary: true makes one that is deleted when a window switches away from it."
      operationId: seleniumWorkspaceCreate
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium workspace create
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/workspace-delete":
    post:
      description: Delete a workspace
      operationId: seleniumWorkspaceDelete
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium workspace delete
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/workspace-export":
    post:
      description: "Export a workspace as text, the same content as an exported .mws file. Pass data to workspace_import to recreate it. No file is written."
      operationId: seleniumWorkspaceExport
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium workspace export
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/workspace-get-state":
    post:
      description: "Get a workspace's full state: name, homepage, startup, temporary, current, and its layouts (one per window, by app_index)."
      operationId: seleniumWorkspaceGetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium workspace get state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/workspace-import":
    post:
      description: "Create a workspace from exported text (workspace_export's data, or an .mws file's content). Profiles it names that do not exist become the default profile. A browser dock whose page the ad blocker blocks is left out and listed in skipped. Use workspace_switch to open it."
      operationId: seleniumWorkspaceImport
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium workspace import
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/workspace-list":
    post:
      description: "List every workspace, marking the current, startup and temporary ones"
      operationId: seleniumWorkspaceList
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium workspace list
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/workspace-perform":
    post:
      description: "Run a workspace action. save: write every open window's workspace now. install_presets: install the bundled preset workspaces; an existing preset is overwritten only with overwrite: true."
      operationId: seleniumWorkspacePerform
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium workspace perform
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/workspace-set-state":
    post:
      description: "Change a workspace in one call: name, homepage, startup. Only the fields sent change; every field is checked before any changes. Answers the full state, as workspace_get_state does."
      operationId: seleniumWorkspaceSetState
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium workspace set state
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/metadock/workspace-switch":
    post:
      description: "Switch the windows to a different workspace. Every open dock is closed and the workspace's docks are loaded."
      operationId: seleniumWorkspaceSwitch
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Selenium workspace switch
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/refresh":
    post:
      description: Reload the current page
      operationId: refresh
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Refresh
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/screenshot":
    get:
      description: "Take a screenshot of the page - returns base64-encoded PNG image data. Use save=true for batch operations to reduce token usage (returns UUID instead of image data, use browser_get_screenshot to retrieve)."
      operationId: takeScreenshot
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Take screenshot
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/source":
    get:
      description: Get raw page source HTML. Token-heavy - prefer browser_read for clean content. Supports clean (strip script/style/svg/etc.) and max_chars + offset paging to avoid dumping the whole document.
      operationId: getPageSource
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get page source
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/timeouts":
    get:
      description: Navigate a browser to a specific URL
      operationId: getTimeouts
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get timeouts
      tags:
        - Selenium
    post:
      description: Navigate a browser to a specific URL
      operationId: setTimeouts
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set timeouts
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/title":
    get:
      description: "Get a browser's full state: identity, navigation, every field browser_set_state and browser_set_emulation set (zoom, muted, locked, scripts_enabled, adblock, profile, headless, dialog_policy, user_agent, viewport, emulated_device, offline), whether ads are blocked (adblock_effective) and custom request headers. The raw geolocation override is not readable."
      operationId: getTitle
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get title
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/url":
    get:
      description: "Get a browser's full state: identity, navigation, every field browser_set_state and browser_set_emulation set (zoom, muted, locked, scripts_enabled, adblock, profile, headless, dialog_policy, user_agent, viewport, emulated_device, offline), whether ads are blocked (adblock_effective) and custom request headers. The raw geolocation override is not readable."
      operationId: getCurrentUrl
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get current url
      tags:
        - Selenium
    post:
      description: Navigate a browser to a specific URL
      operationId: navigateTo
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Navigate to
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/window":
    delete:
      description: Close a browser instance
      operationId: closeWindow
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Close window
      tags:
        - Selenium
    get:
      description: Navigate a browser to a specific URL
      operationId: getWindowHandle
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get window handle
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/window/handles":
    get:
      description: Navigate a browser to a specific URL
      operationId: getAllWindowHandles
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get all window handles
      tags:
        - Selenium
  "/wd/hub/session/{sessionId}/window/rect":
    get:
      description: "Read the first element matching a CSS selector in one call: text content, whether it is visible, its viewport box and key computed styles, and the value of attribute when one is named."
      operationId: getWindowRect
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get window rect
      tags:
        - Selenium
    post:
      description: "Read the first element matching a CSS selector in one call: text content, whether it is visible, its viewport box and key computed styles, and the value of attribute when one is named."
      operationId: setWindowRect
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Set window rect
      tags:
        - Selenium
  /wd/hub/status:
    get:
      operationId: getStatus
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverValue"
          description: WebDriver success.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Malformed request or missing required parameter.
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: Missing or invalid API key.
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebDriverError"
          description: "Origin rejected, or the key's grant excludes this operation."
      summary: Get status
      tags:
        - Selenium
security:
  - BearerAuth: []
  - ApiKeyAuth: []
servers:
  - description: Default local MetaDock server (host/port configurable)
    url: "http://127.0.0.1:8080"
tags:
  - description: "Create, control, inspect, and automate browser instances (REST)."
    name: Browser
  - description: Manage workspaces (collections of layouts) (REST).
    name: Workspace
  - description: Manage layouts/docks and browser profiles (REST).
    name: Layout
  - description: Mount and control docked native applications (REST).
    name: App
  - description: Manage bookmarks and categories (REST).
    name: Bookmark
  - description: Query and prune browsing history (REST).
    name: History
  - description: Run searches and manage search aliases (REST).
    name: Search
  - description: List and control downloads (REST).
    name: Download
  - description: Manage adblock filter lists and per-site overrides (REST).
    name: Adblock
  - description: Inspect and revoke site permissions (REST).
    name: Permission
  - description: Read and update application settings (REST).
    name: Settings
  - description: "W3C WebDriver protocol under /wd/hub, plus MetaDock-specific extensions. Authenticates via the Authorization: Bearer header only (scope selenium); responses use the WebDriver { \"value\": ... } envelope."
    name: Selenium
  - description: "Chrome DevTools Protocol: HTTP discovery endpoints (/json/...) and WebSocket upgrade endpoints (/devtools/...) speaking CDP JSON-RPC."
    name: CDP
