ui_select_option
ui_select_optionSelect an option in a single by value or visible label, or pick exactly one option in a using the selector from ui_get_page_state.
Instructions
Choose an option of the single matching the selector, by option value or visible label. For a this selects exactly that one option. Use the selector from ui_get_page_state. Selectors containing "nth=" are positional: call ui_get_page_state again after the page changes before reusing them.
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>",
"value": "<value>"
},
"name": "ui_select_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The option's value attribute or its visible label | |
| selector | Yes | CSS selector, or the `selector` value of an element from ui_get_page_state, passed unchanged | |
| session_id | No | Which open session to act on, as returned by ui_start_session. Optional with one open session; required when several are open. |