chrome_click_text
Click an element by its visible text, optionally filtered by ARIA role. Returns actionable errors with suggestions when matches are ambiguous or missing.
Instructions
Click an element by its visible text content (semantic alternative to chrome_click). Uses XPath contains() for text matching. Optionally filter by ARIA role. Returns actionable error with suggestions if 0 or >1 matches found. Prefer this over chrome_execute_script for clicking buttons/links.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Optional ARIA role to filter results (button, link, checkbox, radio, textbox, etc.) | |
| text | Yes | Visible text to search for (case-sensitive, max 1000 chars) |