scroll
Move the current page or a referenced element into view, with optional direction, distance, tab, and snapshot controls for browser automation.
Instructions
Scroll the page, or the scrollable area under ref. With ref and no direction: scroll ref into view.
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 |
|---|---|---|---|
| ref | No | Element ref from the latest snapshot, e.g. e12 or f1e5 | |
| tab | No | Tab id. Default: your own target tab (each agent session gets its own) | |
| find | No | Instead of ref: the role and name as the snapshot shows them, e.g. {role:"button", name:"Save"}; nth:2 picks the second match. Survives reloads and new sessions, so recipes use it | |
| amount | No | Screens, default 0.8 | |
| browser | No | chrome, edge, ... (only when several browsers are connected) | |
| snapshot | No | Default returns a diff of what changed. true = full snapshot, false = nothing | |
| direction | No |