select_dropdown
Pick a dropdown option by value, visible text, or index. Locates the select element with CSS, XPath, or other strategies to complete the selection.
Instructions
Select an option in a HTML dropdown by value, visible text, or index.
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>",
"selectBy": "<selectBy>",
"optionValue": "<optionValue>"
},
"name": "select_dropdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selectBy | Yes | How to select the option: by "value", "text", or "index" | |
| selector | Yes | Selector for the <select> element | |
| strategy | No | Strategy to find element (css, xpath, id, name, tag, class, text, partialText). Default: css | css |
| timeoutMs | No | Wait timeout in milliseconds (default: 10000) | |
| optionValue | Yes | The option value, visible text, or zero-based index as string |