Select option
select_optionSelect an option in a dropdown by matching its value attribute, waiting for the element to be actionable. Supports standard selectors and getBy* locators for precise targeting.
Instructions
Selects an inside a element on the session page, matched by the option's value attribute. Waits for the element to be actionable. Targets support selectors or getBy* locators, same as type.
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": {
"sessionId": "<sessionId>",
"target": "<target>",
"value": "<value>"
},
"name": "select_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The option to select, matched against the <option>'s value attribute. | |
| target | Yes | How to locate the element: {"selector": "#id"} or {"fn": {"name": "getByRole", "args": ["button", {"name": "Sign in"}]}}. | |
| sessionId | Yes | Session id returned by start_session. Required on every stateful tool call. | |
| timeoutMs | No | Action timeout in milliseconds (default 10000). |