click_text
Click an element by its visible text. If several match, it fails with a numbered candidate list; narrow the search with a CSS selector or index.
Instructions
Click element by visible text. If the text matches several elements it FAILS with a numbered candidate list instead of silently clicking the first one — narrow with within ("@dialog", a CSS selector, or "ref:e5") or pick one with index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Visible text | |
| exact | No | ||
| index | No | Which match to click when several match (0-based). -1 = require a unique match. | |
| within | No | Limit the search: "@dialog" = topmost modal, "ref:e5" = inside a snapshot ref, or any CSS selector. |