set_font_scale
Adjust Android device font scaling for accessibility testing. Set values from 0.85 (small) to 1.3 (largest) to verify UI responsiveness across different text sizes.
Instructions
Set system font scale (0.85 = small, 1.0 = normal, 1.15 = large, 1.3 = largest). Useful for testing font scaling accessibility.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| device_serial | No |
Implementation Reference
- src/adb_mcp_server/server.py:1056-1064 (handler)The handler function for the 'set_font_scale' tool. It is registered via the @mcp.tool() decorator and sets the system font scale using ADB by running the settings command.@mcp.tool() def set_font_scale(scale: float = 1.0, device_serial: str | None = None) -> str: """ Set system font scale (0.85 = small, 1.0 = normal, 1.15 = large, 1.3 = largest). Useful for testing font scaling accessibility. """ return run_adb([ "shell", "settings", "put", "system", "font_scale", str(scale) ], device_serial)