Select a dropdown option
select_optionSelects a dropdown option by ref and value or label, handles native and custom lists, and verifies native selections via read-back.
Instructions
Choose an option in a dropdown identified by ref. Matching, for native and custom lists alike: an exact option value (a custom option's data-value), else an exact visible text, else a substring of the text only when exactly one option contains it; several matches are an error that lists them. Native : selects that option and returns verified:true after read-back. Custom/ARIA dropdowns: opens the control and clicks the matching option (best-effort; for tricky async menus use wait_for + computer click instead); verified is true only when the chosen option itself reports aria-selected or aria-checked, otherwise false (dispatched, not confirmed).
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": {
"ref": "<ref>",
"value": "<value>",
"tabId": "<tabId>"
},
"name": "select_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Dropdown element ref from read_page/find | |
| tabId | Yes | Target tab ID (must be in the MCP group) | |
| value | Yes | Option value or visible label to select | |
| expect | No | Optional postcondition: observes the declared UI outcome after one action; failure never repeats input | |
| documentId | No | Bind a resolved target to this document; stale documents fail before mutation |