Scroll
browser_scrollScroll a page or bring a specific element into view using CSS selector, ref, or accessibility match. Specify pixel deltas for horizontal or vertical scrolling.
Instructions
Scrolls an element into view, or scrolls the page by a pixel delta when no element is given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | Horizontal pixels to scroll. | |
| dy | No | Vertical pixels to scroll (positive = down). | |
| css | No | CSS selector, as an alternative to ref. | |
| ref | No | Element ref from the most recent snapshot, e.g. "e12". Preferred — refs are exact. Only valid for the page state that produced them. | |
| name | No | Accessible name to match alongside role. | |
| role | No | ARIA role, e.g. "button". Combine with name for an accessible-name match. | |
| index | No | Which match to use when the selector is ambiguous (0-based, default 0). | |
| sessionId | Yes | Session id returned by browser_start. |