browser_mouse
Control raw mouse actions at viewport coordinates for canvases, maps, and games with no target element: move, click, drag, and scroll via wheel.
Instructions
Raw mouse at a point, for what has no element to aim at (a canvas, a map, a game): move, down, up, click, wheel. x/y are viewport CSS pixels (as in a screenshot), or from the target's top-left corner when one is given; for wheel they are the scroll deltas. The pointer stays where it went and held buttons stay held, so down, moves, up drags or draws.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | CSS pixels from the left (for wheel: the horizontal scroll) | |
| y | No | CSS pixels from the top (for wheel: the vertical scroll) | |
| ref | No | Element ref from browser_snapshot, e.g. 12 | |
| text | No | Visible text or label of the element, instead of ref | |
| count | No | Clicks (2: a double click) | |
| steps | No | Moves in between, for a smooth path | |
| action | Yes | What the mouse does | |
| button | No | Default left | |
| selector | No | CSS selector (first match), instead of ref | |
| snapshot | No | Also return the page snapshot after the action |