scroll
Moves the viewport or a scrollable area to reveal content, and brings a referenced element into view when no direction is given.
Instructions
Scroll the page or a scrollable area. With ref and no direction, scrolls that element into view.
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>"
},
"name": "scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element reference from read_page or find, e.g. "e12" | |
| tabId | Yes | Tab ID, from tabs_list or tab_create | |
| amount | No | Pixels, default 600 | |
| direction | No | ||
| coordinate | No | Scroll the scrollable area under this point |