Skip to main content
Glama

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
NameRequiredDescriptionDefault
device_serialNo

Implementation Reference

  • 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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rahulkr/r_adb_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server