click
Click on page elements using CSS selector, @eN reference, or visible label text. Triggers navigation, form submission, or dynamic content changes, returning updated page state.
Instructions
Click on a page element identified by CSS selector, @eN reference, or visible label text. May trigger navigation, form submission, or dynamic content changes. Returns post-action page_state. Use 'selector' for CSS/ref-based targeting; use 'text' (with optional 'role' and 'region') to activate a button, tab, checkbox, or link by its visible label — useful for SPA admin UIs and modals where CSS paths are fragile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Optional ARIA role filter when using 'text' (e.g. 'button', 'tab', 'checkbox', 'menuitem'). Narrows the match. | |
| text | No | Activate by visible label text instead of a selector. Finds the interactive element whose accessible name best matches this text. Mutually exclusive with 'selector'. | |
| widen | No | When true, return the full-page diff instead of scoping to the interacted container. Default: false. | |
| region | No | Optional [ref=eN] or semantic token to constrain label matching. | |
| selector | No | CSS selector or @eN element reference from page_map (e.g. "@e3", "button.submit", "#login-btn"). Mutually exclusive with 'text'. |