select_option
Choose a value in a native <select> dropdown by option value or visible label. Fires the change event so frameworks register it.
Example#
Call this MCP tool with the argument object below. Replace illustrative IDs, selectors, local paths, and project URLs with values observed in your session.
{
"selector": "select[name=country]",
"value": "MK"
}Usage notes#
This assumes an observed native select with that name and option value. Custom comboboxes require ordinary interaction.
Result#
Selects a matching native option and fires change behavior, or reports that the target/option is invalid.
Results arrive in MCP content blocks. Most structured results are JSON in text blocks; image tools can include image blocks. Handle errors and partial or truncated data. No formal output schema is declared for this tool.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
selector | string | Yes | The <select> element |
value | string | Yes | The option's value or visible text |
frame | string | No | Act inside an iframe: selector of the <iframe> element (find_elements/read_page/get_page_text list them). Nested frames chain with " >> ", e.g. "#checkout >> iframe[name=card]". minLength: 1 |
tab | string | No | Tab name or id in your workspace; does not change the visible tab. minLength: 1 |
Full input schema#
The schema includes nested shapes and constraints. Additional semantic constraints can apply at runtime; read the description and usage notes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"selector": {
"type": "string",
"description": "The <select> element"
},
"value": {
"type": "string",
"description": "The option's value or visible text"
},
"frame": {
"description": "Act inside an iframe: selector of the <iframe> element (find_elements/read_page/get_page_text list them). Nested frames chain with \" >> \", e.g. \"#checkout >> iframe[name=card]\".",
"type": "string",
"minLength": 1
},
"tab": {
"description": "Tab name or id in your workspace; does not change the visible tab.",
"type": "string",
"minLength": 1
}
},
"required": [
"selector",
"value"
],
"additionalProperties": false
}Related documentation#
Reference conventions · Agent operating guide · Troubleshooting