Dea DardanicaDocumentation
Input and formsRead Markdown

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.

json
{
  "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#

select_option — table 1
ParameterTypeRequiredDescription
selectorstringYesThe <select> element
valuestringYesThe option's value or visible text
framestringNoAct 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
tabstringNoTab 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.

json
{
  "$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
}

Reference conventions · Agent operating guide · Troubleshooting