scroll
Move the viewport up, down, left, or right by mouse-wheel ticks to bring off-screen content into view. Optionally target a specific element or coordinates for precise positioning.
Instructions
Scroll with the mouse wheel at a point (default viewport centre) or over a ref. amount = wheel ticks of 100px.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tabId": "<tabId>",
"direction": "<direction>"
},
"name": "scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| ref | No | Element ref from read_page or find, e.g. ref_12 or f1:ref_3 (f1 = inside frame 1) | |
| tabId | Yes | Tab id from tabs_context | |
| amount | No | ||
| direction | Yes |