browser_scroll
Scroll a ready sandbox's page with the mouse wheel by dx and dy CSS pixels (dy 800 scrolls down 800), or scroll the element with ref (from browser_snapshot) into view. It answers with the page's URL and title.
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": {
"sandbox_id": "<sandbox_id>"
},
"name": "browser_scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | CSS pixels to scroll right; negative scrolls left. | |
| dy | No | CSS pixels to scroll down; negative scrolls up. | |
| ref | No | An element to scroll into view, by its ref in the page's latest snapshot. With dx or dy, the mouse wheel then turns over it, which scrolls what it's in; otherwise over the middle of the viewport. | |
| sandbox_id | Yes | The sandbox, `sbx_…`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page's URL. | |
| title | Yes | The page's title. | |
| snapshot | No | The page's accessibility tree as an indented outline, one element a line: `- role "name" [ref=N]`. A ref names the element to click, type into or scroll to. |