Skip to main content

Accessibility · AccessibilitySetting · 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​

func (d *Device) Accessibility(ctx context.Context) (map[string]string, error)

Accessibility reads every accessibility setting the device has, by name — reduce_motion, bold_text, increase_contrast and the rest; see SetAccessibility. A setting the platform lacks is simply absent.

AccessibilitySetting​

func (d *Device) AccessibilitySetting(ctx context.Context, setting string) (string, error)

AccessibilitySetting reads one accessibility setting.

SetAccessibility​

func (d *Device) SetAccessibility(ctx context.Context, setting, value string) (string, error)

SetAccessibility 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 such as "accessibility-large" (iOS); text_scale a number such as "1.3" (Android). A real iPhone refuses. Changing one discards the refs from the last Map.

Examples​

Read every accessibility setting​

settings, err := dev.Accessibility(ctx)
if err != nil {
return err
}
fmt.Println(settings["reduce_motion"], settings["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​

value, err := dev.SetAccessibility(ctx, "bold_text", "on")
if err != nil {
return err
}
fmt.Println("bold_text is", value)

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