find
Locate elements by case-insensitive matching on accessible names, visible text, labels, placeholders, or values across all frames, exact matches first; filter by role or list all elements of a role.
Instructions
Find elements by case-insensitive substring over accessible name, visible text (also text split across elements: the smallest element holding it), placeholder, label and value, in all frames. Exact matches first. An empty query with a role lists every element of that role. Each hit is a snapshot line with its ref, followed by a line " in ".
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": {
"query": "<query>"
},
"name": "find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab id such as "t3"; default is the active tab | |
| role | No | Only this role (snapshot role vocabulary) | |
| limit | No | Default 10 | |
| query | Yes | Text to look for; empty together with role lists every element of that role |