choose
Selects an option from custom or native dropdowns in one call by opening the control, waiting for the visible text, scrolling it into view, and clicking it.
Instructions
Pick from a custom dropdown in one call: clicks ref to open it, waits for the option with this text to appear, scrolls it into view and clicks it. Works for native too.
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": {
"option": "<option>"
},
"name": "choose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from the latest snapshot, e.g. e12 or f1e5 | |
| tab | No | Tab id. Default: your own target tab (each agent session gets its own) | |
| find | No | Instead of ref: the role and name as the snapshot shows them, e.g. {role:"button", name:"Save"}; nth:2 picks the second match. Survives reloads and new sessions, so recipes use it | |
| force | No | ||
| option | Yes | Visible text of the item to pick | |
| browser | No | chrome, edge, ... (only when several browsers are connected) | |
| snapshot | No | Default returns a diff of what changed. true = full snapshot, false = nothing |