set
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Put a checkbox or switch into a state, rather than toggling whatever it is in. These call app_set.
set
def set(target: str, value: bool=True) -> dict
Put a checkbox or switch into a state, rather than toggling it: value True checks it or turns it on, False clears it or turns it off.
Idempotent: asking for a state it is already in does nothing, which is what makes it safe to call without reading first. Anything with no checked state is refused rather than tapped, and a radio cannot be unset — a group is cleared by choosing a different member.
Examples
Tick a checkbox, whatever state it is in
device.set("testid=termsCheck")
The same call from the command line, mobium set testid=termsCheck, printed on an Android 15 emulator:
testid=termsCheck is now checked
| Before | After |
|---|---|
![]() | ![]() |
mobium set testid=termsCheck on an Android 15 emulator
Turn a switch off
device.unset("@e4")
On a device
| Before | After |
|---|---|
![]() | ![]() |
mobium unset testid=termsCheck on an Android 15 emulator



