ui_set_checked
ui_set_checkedSets the checkbox or radio button matching a selector to checked or unchecked, idempotently, so UI tests can control form state reliably.
Instructions
Set the single checkbox or radio button matching the selector to checked or unchecked. Idempotent: already in that state is fine. A radio cannot be unchecked directly. 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>",
"checked": "<checked>"
},
"name": "ui_set_checked"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checked | Yes | true to check, false to uncheck | |
| 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. |