scroll
Scroll a web page up or down by a specified number of pixels instantly, using direct JavaScript execution for non-animated movement.
Instructions
Scroll the page up or down by pixels (instant, not animated).
Uses JavaScript ``window.scrollBy`` directly. The earlier implementation
called zendriver's ``scroll_down`` which interprets its argument as a
*percentage* of the viewport and animates via
``Input.synthesizeScrollGesture`` - turning e.g. 500 into five
viewport-heights of smooth scrolling.
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 |
|---|---|---|---|
| pixels | No | ||
| direction | No | down |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |