page.scroll
Scroll the page or a specific scrollable element to a target, offset, or position; falls back to programmatic scrolling when wheel dispatch stalls.
Instructions
Scroll the page or a specific scrollable element. If wheel dispatch stalls on a busy compositor it falls back to a programmatic scroll and says so via via.
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": "page.scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| nth | No | Zero-based index when the locator matches several elements. | |
| ref | No | Snapshot ref (eNN) from page.snapshot. | |
| text | No | Visible text of the element. | |
| xpath | No | XPath expression. | |
| delta_x | No | ||
| delta_y | No | ||
| frame_id | No | Frame to search within; see page.list_frames. | |
| selector | No | CSS selector; pierces shadow DOM. | |
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. | |
| backend_node_id | No | CDP backendNodeId, e.g. from inspector.pick. |