browser_find_text_coordinates
Find elements by fuzzy text search across all frames and shadow DOMs, returning bounding box coordinates for clicking or spatial validation.
Instructions
Find elements matching a fuzzy text string and return their bounding boxes and text content. This is a crucial fallback when the AX tree is broken or an element lacks semantic meaning. Automatically searches across all frames and penetrates shadow DOMs using the Puppeteer ::-p-text() engine.
You can use the returned coordinates with validate_spatial_coordinate or coordinate_click.
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_find_text_coordinates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to search for (case-insensitive fuzzy match) | |
| timeoutMs | No | Wait this many ms for the text to appear (default: 0 = instant check) | |
| visibleOnly | No | Only return visible elements (default: true) |