Find By Text
find_by_textLocate UI elements by visible text and return their ARIA index in one call, with role hints to resolve ambiguous button, link, or textbox matches.
Instructions
Fuzzy "the button/link that says X" → ARIA idx, in one call. Skip aria_snapshot. role_hint='button'|'link'|'textbox' to disambiguate.
Ex: find_by_text('t0', 'Sign in', role_hint='button') → {"idx":3,"found":true}
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": {
"tab_id": "<tab_id>",
"text": "<text>"
},
"name": "find_by_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| tab_id | Yes | ||
| role_hint | No | ||
| force_refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||