scroll
Navigate a page by scrolling a set number of pixels or directly to an element, then capture a screenshot to confirm the new viewport position.
Instructions
Scroll the page by a pixel amount or to a specific element. Returns a screenshot after scrolling so you can visually verify the new viewport position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Optional URL to navigate to before scrolling | |
| direction | No | Scroll direction (default: 'down') | |
| amount | No | Pixels to scroll (default: 500) | |
| toSelector | No | CSS selector of element to scroll into view (overrides direction/amount) |