click_by_text
Click buttons, links, tabs, radios, or checkboxes by their visible text. Scrolls element into view before clicking for reliability.
Instructions
Click a button, link, tab, radio, or checkbox by its visible text. Much more reliable than coordinate clicking. Scrolls element into view before clicking.
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": "click_by_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Visible text to search for (case-insensitive partial match) | |
| element_type | No | Type of element to click (default: 'any') | |
| index | No | Which match to click if multiple found (0-based, default: 0) | |
| browser | No | 'safari' or 'chrome' (defaults to Safari) |