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

# Browser scroll

> Scroll a ready sandbox's page with the mouse wheel by dx and dy CSS pixels (dy 800 scrolls down 800), or scroll the element with ref (from browser_snapshot) into view. It answers with the page's URL and title.

MCP tool: [`browser_scroll`](/mcp/tools/sandboxes#browser_scroll).



## OpenAPI

````yaml /api/openapi.json post /v1/sandboxes/{sandbox_id}/page/scroll
openapi: 3.1.0
info:
  title: Rendermate API
  version: v1
servers:
  - url: https://api.rendermate.com
security:
  - api_key: []
tags:
  - name: Account
  - name: Workspaces
  - name: Projects
  - name: Documents
  - name: Links
  - name: Exports
  - name: Assets
  - name: Generations
  - name: Persons
  - name: Sandboxes
  - name: Help
paths:
  /v1/sandboxes/{sandbox_id}/page/scroll:
    post:
      tags:
        - Sandboxes
      summary: Browser scroll
      description: >-
        Scroll a ready sandbox's page with the mouse wheel by dx and dy CSS
        pixels (dy 800 scrolls down 800), or scroll the element with ref (from
        browser_snapshot) into view. It answers with the page's URL and title.


        MCP tool: [`browser_scroll`](/mcp/tools/sandboxes#browser_scroll).
      operationId: browser_scroll
      parameters:
        - description: The sandbox, `sbx_…`.
          in: path
          name: sandbox_id
          required: true
          schema:
            description: The sandbox, `sbx_…`.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                dx:
                  description: CSS pixels to scroll right; negative scrolls left.
                  format: double
                  type:
                    - number
                    - 'null'
                dy:
                  description: CSS pixels to scroll down; negative scrolls up.
                  format: double
                  type:
                    - number
                    - 'null'
                ref:
                  description: >-
                    An element to scroll into view, by its ref in the page's
                    latest snapshot. With dx or

                    dy, the mouse wheel then turns over it, which scrolls what
                    it's in; otherwise over the

                    middle of the viewport.
                  format: uint64
                  minimum: 0
                  type:
                    - integer
                    - 'null'
              required: []
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                example:
                  summary: example
                  value:
                    title: WebGL - Wikipedia
                    url: https://en.wikipedia.org/wiki/WebGL
                snapshot:
                  summary: snapshot
                  value:
                    snapshot: |-
                      - document "WebGL - Wikipedia" [ref=2]
                        - searchbox "Search Wikipedia" [ref=16]
                        - link "OpenGL ES" [ref=5645]
                    title: WebGL - Wikipedia
                    url: https://en.wikipedia.org/wiki/WebGL
              schema:
                properties:
                  snapshot:
                    description: >-
                      The page's accessibility tree as an indented outline, one
                      element a line: `- role

                      "name" [ref=N]`. A ref names the element to click, type
                      into or scroll to.
                    type:
                      - string
                      - 'null'
                  title:
                    description: The page's title.
                    type: string
                  url:
                    description: The page's URL.
                    type: string
                required:
                  - url
                  - title
                type: object
          description: OK
        '400':
          content:
            application/json:
              examples:
                invalid_request:
                  summary: invalid_request
                  value:
                    error:
                      code: invalid_request
                      doc_url: https://rendermate.com/docs/errors#invalid_request
                      message: >-
                        sha256 is the content's SHA-256 as 64 lowercase hex
                        digits
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `invalid_request`: sha256 is the content's SHA-256 as 64 lowercase
            hex digits
        '401':
          content:
            application/json:
              examples:
                unauthorized:
                  summary: unauthorized
                  value:
                    error:
                      code: unauthorized
                      doc_url: https://rendermate.com/docs/errors#unauthorized
                      message: 'provide a valid API key: Authorization: Bearer sk_…'
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `unauthorized`: provide a valid API key: Authorization: Bearer
            sk_…
        '403':
          content:
            application/json:
              examples:
                key_without_workspace:
                  summary: key_without_workspace
                  value:
                    error:
                      code: key_without_workspace
                      doc_url: https://rendermate.com/docs/errors#key_without_workspace
                      message: >-
                        this API key has no workspace: create a key in the
                        dashboard, under api keys in the workspace it should act
                        in
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `key_without_workspace`: this API key has no workspace: create a
            key in the dashboard, under api keys in the workspace it should act
            in
        '404':
          content:
            application/json:
              examples:
                sandbox.not_found:
                  summary: sandbox.not_found
                  value:
                    error:
                      code: sandbox.not_found
                      doc_url: https://rendermate.com/docs/errors#sandbox.not_found
                      message: no sandbox sbx_01JF3RD2F4H6K8M0P2R4T6V8X0
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: '- `sandbox.not_found`: no sandbox sbx_01JF3RD2F4H6K8M0P2R4T6V8X0'
        '409':
          content:
            application/json:
              examples:
                sandbox.browser_error:
                  summary: sandbox.browser_error
                  value:
                    error:
                      code: sandbox.browser_error
                      doc_url: https://rendermate.com/docs/errors#sandbox.browser_error
                      message: >-
                        the browser couldn't do it: no element with ref 42; take
                        a new snapshot
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
                sandbox.not_ready:
                  summary: sandbox.not_ready
                  value:
                    error:
                      code: sandbox.not_ready
                      doc_url: https://rendermate.com/docs/errors#sandbox.not_ready
                      message: >-
                        sandbox sbx_01JF3RD2F4H6K8M0P2R4T6V8X0 is still
                        starting: get it with wait until it's ready
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
                sandbox.stopped:
                  summary: sandbox.stopped
                  value:
                    error:
                      code: sandbox.stopped
                      doc_url: https://rendermate.com/docs/errors#sandbox.stopped
                      message: >-
                        sandbox sbx_01JF3RD2F4H6K8M0P2R4T6V8X0 has stopped:
                        start another
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `sandbox.not_ready`: sandbox sbx_01JF3RD2F4H6K8M0P2R4T6V8X0 is
            still starting: get it with wait until it's ready

            - `sandbox.stopped`: sandbox sbx_01JF3RD2F4H6K8M0P2R4T6V8X0 has
            stopped: start another

            - `sandbox.browser_error`: the browser couldn't do it: no element
            with ref 42; take a new snapshot
        '500':
          content:
            application/json:
              examples:
                internal:
                  summary: internal
                  value:
                    error:
                      code: internal
                      doc_url: https://rendermate.com/docs/errors#internal
                      message: internal error
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: '- `internal`: internal error'
        '503':
          content:
            application/json:
              examples:
                sandboxes.unavailable:
                  summary: sandboxes.unavailable
                  value:
                    error:
                      code: sandboxes.unavailable
                      doc_url: https://rendermate.com/docs/errors#unavailable
                      message: sandboxes aren't available here
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
                temporal_unavailable:
                  summary: temporal_unavailable
                  value:
                    error:
                      code: temporal_unavailable
                      doc_url: https://rendermate.com/docs/errors#unavailable
                      message: >-
                        renders and exports are unavailable right now; try again
                        shortly
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `sandboxes.unavailable`: sandboxes aren't available here

            - `temporal_unavailable`: renders and exports are unavailable right
            now; try again shortly
components:
  schemas:
    Error:
      properties:
        error:
          properties:
            code:
              description: Stable, such as `asset.name_taken` or `not_available`.
              type: string
            doc_url:
              description: The code's entry on the Errors page.
              type: string
            message:
              description: What went wrong and what to do next.
              type: string
            request_id:
              description: >-
                The request's ID, also in its `x-request-id` header. Quote it
                when you contact support.
              type: string
          required:
            - code
            - message
            - doc_url
            - request_id
          type: object
      required:
        - error
      type: object
  securitySchemes:
    api_key:
      description: >-
        An API key from the dashboard, such as `sk_live_…`. It acts in its
        workspace.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.