page.pointer
Send low-level pointer gestures—moves, holds, clicks, wheel scrolls, and drags—as ordered steps for cases standard click tools miss. Held button and position persist per tab between calls.
Instructions
Raw pointer script for anything the other tools do not cover: draw a shape, hover-then-press, drag with a wheel scroll in the middle, a press in one call and the release in a later one. actions run in order; each move travels the human path from wherever the pointer is. The held button and position persist per tab between calls. Example: [{action:"move",selector:"canvas"},{action:"down"},{action:"move",x:300,y:200},{action:"move",x:350,y:260},{action:"up"}].
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": {
"actions": "<actions>"
},
"name": "page.pointer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Seed for the human randomness, to repeat a gesture exactly. Every call reports the seed it used. | |
| html5 | No | Default true: a held left button that starts a native HTML5 drag finishes with drag events. | |
| human | No | Default true: curved path, slow-fast-slow speed, hand jitter, short pauses. false: straight, even, no pauses. | |
| input | No | Default auto: touch when touch emulation is on for the tab (device.preset), else mouse. | |
| verify | No | Watch for DOM mutations after the gesture. Default true. | |
| actions | Yes | Steps. A locator or x/y on down/up/click/wheel moves there first. | |
| jitter_px | No | Hand wobble mid-path in CSS px. Default 1.5; 0 for a steady hand. Ends are always exact. | |
| modifiers | No | Keys held throughout, e.g. ["Shift"] or ["Alt"]. | |
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| verify_ms | No | How long to watch. Default 300. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. |