change_screen_size
Adjust Android device screen resolution to test different display sizes for UI development and visual QA workflows.
Instructions
Change screen resolution - useful for testing different screen sizes
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| device_serial | No |
Implementation Reference
- src/adb_mcp_server/server.py:931-934 (handler)The main handler function for the 'change_screen_size' tool. It changes the Android device's screen resolution using the ADB 'wm size' command. The function is automatically registered as an MCP tool via the @mcp.tool() decorator.@mcp.tool() def change_screen_size(width: int, height: int, device_serial: str | None = None) -> str: """Change screen resolution - useful for testing different screen sizes""" return run_adb(["shell", "wm", "size", f"{width}x{height}"], device_serial)