set_appearance
Switch a mobile device between dark and light mode to verify app screens in both themes; iOS changes apply to simulators only.
Instructions
Switch the device between dark and light mode. Android: cmd uimode night. iOS: simulators only (simctl ui appearance). Useful for verifying both themes of a screen.
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 mode to set | |
| platform | No | Target platform. Inferred if omitted. | |
| device_id | No | Device ID. Omit for the connected device. |