Wheel
wheelDispatch mouse wheel events at specific coordinates to scroll vertically or horizontally, or zoom with the Control modifier.
Instructions
Dispatch a mouse wheel event at specific coordinates. Use for scroll-to-zoom (with Control modifier) or horizontal scrolling.
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": {
"x": "<x>",
"y": "<y>",
"deltaY": "<deltaY>"
},
"name": "wheel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate where the wheel event is dispatched. | |
| y | Yes | Y coordinate where the wheel event is dispatched. | |
| eid | No | Optional element ID. When provided, x/y coordinates are relative to the element top-left corner. | |
| deltaX | No | Horizontal scroll delta in pixels. Positive scrolls right. | |
| deltaY | Yes | Vertical scroll delta in pixels. Positive scrolls down, negative scrolls up. For zoom: negative typically zooms in, positive zooms out. | |
| page_id | No | The ID of the page. | |
| modifiers | No | Modifier keys to hold during the wheel event (e.g., Control for zoom). |