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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "reset_screen_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_serial | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
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)