gesture-scroll
Scroll Chromium app content by sending mouse-wheel events at a normalized point, using fractional window deltas to bring off-screen elements or list items into view.
Instructions
Send mouse-wheel events at a point to scroll content in a Chromium app. The anchor x/y and the deltas are fractions of the window (not pixels); x/y match gesture-tap and describe. Use when content is below/above the fold (describe shows off-screen elements with zero height) or a list needs scrolling. Chromium only: on iOS/Android use gesture-swipe. Returns { scrolled: true, timestampMs }. Fails if the Chromium CDP session is not reachable for the given device.
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": {
"udid": "<udid>",
"x": "<x>",
"y": "<y>"
},
"name": "gesture-scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Anchor x. The wheel events land here; put it over the element you want to scroll. Range: 0 to 1. | |
| y | Yes | Anchor y. Range: 0 to 1. | |
| udid | Yes | Target Chromium device id from `list-devices` (chromium-cdp-<port>). | |
| deltaX | No | Horizontal scroll distance as a fraction of the window width. Positive reveals content to the right; negative scrolls back left. | |
| deltaY | No | Vertical scroll distance as a fraction of the window height (0.5 = half a window). Positive scrolls down (reveals content below), like rolling a mouse wheel toward you; negative scrolls back up. | |
| durationMs | No | Spread the scroll over this many milliseconds in wheel-event steps (default 300) so scroll handlers fire progressively. |