find
Locates page elements by matching visible text, labels, placeholders, roles, or CSS selectors in a specified tab, returning refs for interaction.
Instructions
Find elements whose text, label, placeholder, role or CSS selector matches a query. Returns refs. Plain text match, not natural language: use words that appear on the element ("Sign in", "search"), or a CSS selector.
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": {
"tabId": "<tabId>",
"query": "<query>"
},
"name": "find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| tabId | Yes | Tab ID, from tabs_list or tab_create |