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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "chrome_click_text"
}
}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) |