Skip to Content
ReferenceToolspointer_scroll

pointer_scroll

Scroll the wheel at an element or an image pixel by lines (-10..10 on each axis).

Arguments

Over MCP every tool also takes machine: the machine’s name or id, optional when only one machine is online.

NameTypeRequiredMeaning
displayintegernoDisplay the pixel belongs to (default: the one last captured).
dxintegernoLines to the right (negative: left), -10..10. Default: 0.
dyintegernoLines down (negative: up), -10..10. Default: 0.
elementstringnoAn element id from the latest ui_snapshot. Preferred; a stale id is element_gone.
observe`“none”“ui”“image”`
xintegernoImage pixel, with y. Needs a screen_capture of the display first.
yintegerno

Result

NameTypeRequiredMeaning
audit_idstringyesId of the audit line on the machine.
dispatchedbooleanyes
foreground_changedbooleanyesThe frontmost app or window changed because of the action.
observationobjectno
settled_msintegeryesHow long the screen took to go quiet after the action, in milliseconds.

Examples

{ "name": "pointer_scroll", "arguments": { "machine": "<machine>" } }

Limits

The call times out after 20 s (timed_out). Available since version 0.0.2. A refused or failed call returns one of the error codes.