CDP: Click
cdp_clickClick browser elements by accessibility ref from a snapshot or by viewport X/Y coordinates, and target a tab by index or URL.
Instructions
Click by a11y ref (from cdp_snapshot) or at viewport coordinates (x, y).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Viewport X coordinate; omit when clicking by accessibility ref | |
| y | No | Viewport Y coordinate; omit when clicking by accessibility ref | |
| ref | No | a11y ref id. | |
| tab | No | Tab index from cdp_tabs to act on. | |
| url | No | Pick the tab whose URL contains this substring. | |
| port | No | CDP debug port (default 9222). | |
| button | No | Mouse button: left (default), right, or middle | left |