Skip to main content

accessibility · setAccessibility

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Read the device's accessibility settings, or change one for the rest of the session: reduce_motion, bold_text, increase_contrast, reduce_transparency, button_shapes, differentiate_without_color, invert_colors, grayscale, and text size — text_size, a named category, on iOS, and text_scale, a number, on Android. These call app_accessibility.

accessibility​

public Map<String, String> accessibility()
public String accessibility(String setting)

Every accessibility setting the device has, by name — reduce_motion, bold_text, increase_contrast and the rest. A setting the platform lacks is absent.

@return each setting's value, by name

One accessibility setting.

@param setting the setting, such as "reduce_motion" @return the setting's value

setAccessibility​

public String setAccessibility(String setting, String value)

Changes one accessibility setting for the rest of the session and returns its new value, confirmed by reading it back; the device is put back as it was when the session ends. A switch takes "on" or "off"; text_size a category (iOS); text_scale a number such as "1.3" (Android). A real iPhone refuses. Discards the refs from the last map.

@param setting the setting, such as "reduce_motion" @param value "on" or "off" for a switch, a category for text_size, a number for text_scale @return the new value, as read back

Examples​

Read every accessibility setting​

Map<String, String> settings = device.accessibility();
System.out.println(settings.get("bold_text"));

The same call from the command line, mobium accessibility, printed on an Android 15 emulator:

reduce_motion off
bold_text off
increase_contrast off
invert_colors off
grayscale off
text_scale 1.0

Turn bold text on for the session​

String now = device.setAccessibility("bold_text", "on"); // "on", read back

The same call from the command line, mobium accessibility bold_text on, printed on an Android 15 emulator:

bold_text on (was off) — put back when the session ends

mobium accessibility bold_text on on an Android 15 emulator

mobium accessibility bold_text on on an Android 15 emulator