scroll
Scroll a specific element or viewport using real mouse wheel input; set deltaY above 0 to scroll down.
Instructions
Scrolls with the real mouse wheel over an element (deltaY > 0 scrolls down).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Viewport x in CSS px (same as screenshot pixels at the default scale). | |
| y | No | Viewport y in CSS px. | |
| nth | No | Pick the nth match (0-based) when several match. | |
| ref | No | Ref from the last `snapshot` (e.g. "e12"). Most reliable. | |
| text | No | Visible text or label of the element (case-insensitive substring). | |
| exact | No | With `text`: require the whole label to match. | |
| deltaX | No | ||
| deltaY | Yes | ||
| within | No | Selector of a container to search in (e.g. a modal). | |
| selector | No | CSS selector. Searches inside every shadow root; use " >>> " to step into a specific shadow root. |