browser_click_text
Click browser elements by visible text content to interact with React dropdowns, portals, and overlays that may not appear in snapshots. This CSP-safe tool prefers the deepest matching element.
Instructions
Click an element by its visible text content. Works on React dropdowns, portals, and overlays that may not appear in snapshots. CSP-safe (no eval). Prefers deepest matching element.
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": "browser_click_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to match against element content (first line) | |
| exact | No | Require exact match instead of substring (default false) | |
| index | No | Which match to click if multiple (0-based, default 0) |