set_switch
Set a UISwitch's state by its DebugBridge ID and verify the change by waiting for specified page or element conditions.
Instructions
Set a UISwitch by stable DebugBridge ID.
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": {
"id": "<id>",
"isOn": "<isOn>"
},
"name": "set_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Debug element identifier, for example AutomationTest.toggleSwitch. | |
| isOn | Yes | Target switch state. | |
| timeoutMs | No | How long to wait for post-action page availability or target criteria. Defaults to 8000. | |
| intervalMs | No | Polling interval after changing the switch. Defaults to 300. | |
| waitAfterMs | No | Delay after setting the switch before reading the next page. Defaults to 350. | |
| waitForLabel | No | Optional exact element label to wait for after changing the switch. | |
| waitForPageID | No | Optional pageID to wait for after changing the switch. | |
| waitForElement | No | Optional element criteria to wait for after changing the switch. | |
| waitForPageIDs | No | Optional acceptable pageIDs to wait for after changing the switch. | |
| waitForElementID | No | Optional element ID to wait for after changing the switch. | |
| waitForLabelIncludes | No | Optional element label substring to wait for after changing the switch. |