scroll
Move the viewport by pixel deltas, bring an element into view, or dispatch a real wheel event at coordinates or over a selector for browser interaction tests.
Instructions
Scroll the page by deltas, an element into view, or with a real wheel at x, y or over selector with deltas (scrolls what is under the pointer).
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 |
|---|---|---|---|
| x | No | Viewport CSS px, with y, instead of selector. | |
| y | No | ||
| block | No | Default center. | |
| deltaX | No | CSS px; negative is left. | |
| deltaY | No | CSS px; negative is up. | |
| selector | No | Locator: ref=e3, CSS, text=…, role=button[name="…"], name=…, or a >> b | |
| sessionId | No |