Skip to main content
Glama

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

Implementation Reference

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

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