scroll
Scroll a web page by direction and pixel amount, or jump to a specific viewport page number.
Instructions
Scroll to specific viewport page or by direction with pixel amount
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 |
|---|---|---|---|
| direction | No | Scroll direction | |
| page | No | Scroll to a specific viewport-sized page number | |
| pixels | No | Number of pixels to scroll |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| innerHeight | Yes | Viewport height in pixels | |
| scrollHeight | Yes | Total scrollable content height in pixels | |
| scrollOffset | Yes | Current scroll offset from the top in pixels | |
| pages | Yes | Number of viewport-sized pages |