select_option
Select an option from a native or custom dropdown by value, label, or index. Automatically detects the element type and returns the resulting selection. Supports targeting the Nth match for identical elements.
Instructions
Select an option from a native or a custom dropdown (Radix/shadcn combobox), auto-detecting which. Choose by value, label, or index. Returns {success} and the resulting selection. For custom dropdowns it opens the menu and clicks the matching option — use this rather than click+click. When a page has several attribute-less elements, pass element_index to target the Nth match of the selector (Playwright '>>' syntax is not supported).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Option index to select (0-based) | |
| label | No | Option label text to select | |
| value | No | Option value to select | |
| observe | No | What to return about the resulting page. 'screenshot' (default): full-page image. 'none': structured result only, no image — cheapest, use through setup steps of a flow. 'map': semantic page map (get_page_map — token-light, best for 'what can I do next?'). 'checks': run_checks_on_session output (a11y/seo/perf/etc.). | screenshot |
| selector | Yes | CSS selector for the <select> or combobox trigger (plain CSS only — no Playwright '>>' syntax) | |
| session_id | Yes | Session ID | |
| element_index | No | Which match of 'selector' to target, 0-based (default: 0). Use for the 2nd/3rd attribute-less <select> on a page. |