click
Click any target by element ref, CSS selector, visible text, or viewport coordinates. Dispatches real CDP mouse events, reports opened tabs, and captures DOM changes.
Instructions
Click an element by ref, CSS selector, visible text, or viewport x/y (canvas, pixel-precise targets). Dispatches real CDP mouse events. A click that opens a new tab is reported in the response. The DOM diff (NEW/REMOVED/CHANGED) arrives with the next response, or in this one with wait_for_diff: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Viewport X in px; with y, not ref/selector | |
| y | No | Viewport Y in px; use with x | |
| ref | No | Element ref (preferred) | |
| text | No | Visible text (a11y name); no view_page needed, prefers interactive | |
| selector | No | CSS selector (fallback) | |
| wait_for_diff | No | Wait for the DOM diff before returning (default false, slower) |