set-checked
Set a checkbox or radio button’s checked state in a browser page by targeting it via label, role/name, or snapshot reference.
Instructions
Set the checked state of a checkbox or radio button.
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": {
"pageId": "<pageId>",
"selector": "<selector>",
"checked": "<checked>"
},
"name": "set-checked"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | ||
| checked | Yes | ||
| timeout | No | Maximum action time in milliseconds. Use 0 for no timeout. | |
| selector | Yes | ||
| sessionId | No | Browser session ID. Defaults to 'default'. |