select_option
Select a dropdown option by visible text, value, or index to support reliable web automation and test code generation. Resolves the challenge of picking correct options in browser interactions.
Instructions
Select an option from a dropdown by visible text, value, 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>"
},
"name": "select_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Locator strategy | css |
| by_text | No | ||
| timeout | No | Wait timeout in seconds | |
| by_index | No | ||
| by_value | No | ||
| selector | Yes | CSS selector, XPath, or other locator value |