Set dark/light mode
set_appearanceSwitch an Android device or emulator between dark and light mode, enabling UI testing in both appearances.
Instructions
Switch a device/emulator between dark and light mode (cmd uimode night).
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": {
"mode": "<mode>"
},
"name": "set_appearance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Appearance to set | |
| serial | No | Emulator serial (defaults to session or the only device) |