find_text
Locate literal text on a page when you know the words but not the selector; returns matches with parent, visibility, position, and refs to nearby interactive elements.
Instructions
Find text on the page: parent selector, context, visibility, position per match. Attaches nearby interactive elements (with refs for click/type_text/hover) for the first visible match. Use it when you know the words on screen but not the selector (query_dom needs one); no match returns count 0.
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": "find_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Literal text to find, not a regex | |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| max_results | No | Cap on matches returned, in document order | |
| case_sensitive | No | Match case exactly |