click
Click page elements using CSS selector, element reference, or visible label text to trigger navigation, form submission, or dynamic content changes, then returns the 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 region handle (@r1, @r2…) or semantic token ('dialog', 'main', 'sidebar') to constrain the text search to a specific UI area. | |
| selector | No | CSS selector or @eN element reference from page_map (e.g. "@e3", "button.submit", "#login-btn"). Mutually exclusive with 'text'. |