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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "scroll"
}
}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) |