reset_screen_size
Reset Android device screen size to its physical default resolution. Fix display scaling issues by restoring original dimensions for accurate UI testing and development.
Instructions
Reset screen size to physical default
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_serial | No |
Implementation Reference
- src/adb_mcp_server/server.py:937-940 (handler)The handler function for the 'reset_screen_size' tool. It is registered via @mcp.tool() decorator and resets the device screen size to its physical default using the ADB command 'wm size reset'.@mcp.tool() def reset_screen_size(device_serial: str | None = None) -> str: """Reset screen size to physical default""" return run_adb(["shell", "wm", "size", "reset"], device_serial)