click
Simulate trusted mouse events on links, buttons, checkboxes, or custom widgets by ref, CSS selector, visible text, or x/y point; returns what was activated plus any new page title and URL.
Instructions
Click an element, chosen by ref, CSS selector or visible text, or a viewport point x,y, using real trusted mouse events (so it works on links, buttons, custom widgets and checkboxes). The element is scrolled into view first. Returns what was clicked (and warns if another element covers it); if the click navigated, it waits for the new page and reports its title and URL. Refs may be stale after navigation, so snapshot again. Use hover to move without clicking, fill_form for form fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Viewport x coordinate in CSS px, used instead of an element. | |
| y | No | Viewport y coordinate in CSS px. | |
| ref | No | Element ref from the latest snapshot or find, e.g. "e12". Preferred: unambiguous and fastest; stale after navigation. | |
| tab | No | Tab id from tabs_list. Defaults to the current tab. | |
| match | No | Visible text or accessible name to match (case-insensitive substring), e.g. "Sign up"; use when you have no ref. | |
| button | No | Mouse button (default left). | |
| double | No | Double-click instead of a single click (default false). | |
| selector | No | CSS selector; the first matching element is used. |