Skip to content

device_appearance

The device_appearance tool sets the system appearance of a booted simulator or connected physical device to either light or dark mode. This triggers the same appearance change that occurs when a user toggles the setting in Settings > Display & Brightness, causing all apps to immediately adopt the new color scheme. Use this tool to verify your app’s dark mode support, capture screenshots in both appearances, or test contrast and readability without manually navigating through the Settings app.

ParameterTypeRequiredDefaultDescription
deviceIdstringYesUDID of the simulator or physical device to update.
appearanceenumYesThe appearance mode to set. One of "light" or "dark".

“Set my simulator to dark mode”

{
"deviceId": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890",
"appearance": "dark"
}

“Switch the simulator back to light mode”

{
"deviceId": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890",
"appearance": "light"
}

“Set dark mode, then take a screenshot of the app”

First set the appearance:

{
"deviceId": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890",
"appearance": "dark"
}

Then call screenshot:

{
"deviceId": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890",
"outputPath": "/Users/developer/Projects/WeatherApp/screenshots/home-dark.png"
}

“Capture screenshots in both light and dark mode for the home screen”

Set light mode and capture:

{
"deviceId": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890",
"appearance": "light"
}
{
"deviceId": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890",
"outputPath": "/Users/developer/Projects/WeatherApp/screenshots/home-light.png"
}

Then switch to dark mode and capture:

{
"deviceId": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890",
"appearance": "dark"
}
{
"deviceId": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890",
"outputPath": "/Users/developer/Projects/WeatherApp/screenshots/home-dark.png"
}
Appearance changed to dark on device A1B2C3D4-E5F6-7890-ABCD-EF1234567890.
Device: iPhone 16 Pro
Previous appearance: light
Current appearance: dark
  • screenshot — Capture a screenshot after switching appearance to document the visual result.
  • screen_record — Record the screen while toggling appearances to show the transition.
  • accessibility_audit — Run an accessibility audit in dark mode to catch contrast violations that only appear against dark backgrounds.
  • status_bar_override — Combine with appearance changes for polished, consistent App Store screenshots.