adb_screen_size
Retrieve an Android device's screen resolution and display density to calculate accurate tap and swipe coordinates and map the UI layout grid.
Instructions
Get the screen resolution and display density. Returns physical width, height (in pixels), and DPI density. Useful for calculating tap/swipe coordinates and understanding the UI layout grid.
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": "adb_screen_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial |