toggle_high_contrast
Enable or disable high contrast text on Android devices to improve accessibility for users with visual impairments during development and testing workflows.
Instructions
Enable or disable high contrast text
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enable | Yes | ||
| device_serial | No |
Implementation Reference
- src/adb_mcp_server/server.py:1083-1089 (handler)The main handler function for the 'toggle_high_contrast' tool. It is decorated with @mcp.tool() which registers it as an MCP tool. The function toggles high contrast text by setting the Android secure setting 'high_text_contrast_enabled' to '1' or '0' via ADB.@mcp.tool() def toggle_high_contrast(enable: bool, device_serial: str | None = None) -> str: """Enable or disable high contrast text""" value = "1" if enable else "0" return run_adb([ "shell", "settings", "put", "secure", "high_text_contrast_enabled", value ], device_serial)