Click
clickTriggers a real mouse press on an element ref or viewport point, scrolls it into view, warns if covered, and reports navigation, new tabs, dialogs, or console errors.
Instructions
Clicks an element (by ref) or a viewport point with real, trusted mouse events. Scrolls the element into view first and warns if another element covers it. Returns what changed: navigation, new tabs, open dialogs, new console errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Viewport X (use with y instead of ref). | |
| y | No | Viewport Y. | |
| ref | No | Element ref from page_snapshot or find, e.g. "e12". | |
| tabId | No | Tab to act on. Defaults to the session target tab (see tab_select). | |
| button | No | Mouse button (default left). | |
| modifiers | No | Modifier keys held during the action. | |
| clickCount | No | 2 for double-click (default 1). |