browser_select
Select one or more options by value in a browser element and dispatch input/change events, with optional post-action checks for text, selector, URL, or timeout.
Instructions
Select options by their values and dispatch input/change events.
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>",
"values": "<values>"
},
"name": "browser_select"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from the latest snapshot in this document. | |
| tabId | Yes | Tab id from browser_tabs. | |
| expect | No | Post-action condition. Default timeout is 1.2 seconds in visible pages and 3 seconds in hidden pages. A mismatch does not undo the action; inspect before retrying. | |
| values | Yes | ||
| browser | No | Browser id from browser_list, or chrome/firefox when only one instance matches. | |
| frameId | No | Frame id from browser_frames; defaults to top frame. | |
| revision | No | Reject if the DOM revision differs from the snapshot. | |
| selector | No | CSS selector. Must identify exactly one element. | |
| documentId | No | Reject the action if this snapshot document has changed. |