Browser Select Option
browser_select_optionSelect an option from a dropdown/select element by CSS selector and value or label; supports session targeting for parallel SAP GUI agents.
Instructions
Select an option from a dropdown/select element. For SAP dropdowns, prefer sap_fill_form or sap_set_field which handle SAP-specific dropdown behavior. Args: selector = CSS selector for select element, value = option value to select, label = option text (alternative to value).
Session parameter:
session=None (default): Uses primary session ("s1")
session="s2": Targets specific session (for parallel agents)
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": {
"selector": "<selector>"
},
"name": "browser_select_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Option text (alternative to value). | |
| value | No | Option value to select. | |
| session | No | Session ID (e.g., "s1", "s2"). None uses primary session. | |
| agent_id | No | Agent identifier for binding check. Optional. | |
| selector | Yes | CSS selector for the select element. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message if success=False | |
| popup | No | Present when a popup dialog is active on screen | |
| success | No | Whether the operation succeeded | |
| selector | Yes | Select element selector | |
| active_window | No | Which window was operated on (e.g., 'wnd[0]', 'wnd[1]'). If 'wnd[1]' or higher, a modal dialog is open. | |
| selected_label | No | Label selected | |
| selected_value | No | Value selected |