Set appearance
set_appearanceSet the system appearance of a device to light or dark mode, enabling UI testing under different visual themes.
Instructions
Switch the system appearance between light and dark mode.
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": {
"device_id": "<device_id>",
"appearance": "<appearance>"
},
"name": "set_appearance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | Device id from list_devices (adb serial like 'emulator-5554', or an iOS simulator UDID) | |
| appearance | Yes |