scroll_up
Scroll up on Android device screens to navigate content or test UI interactions. Use this ADB tool for development, testing, and debugging workflows.
Instructions
Scroll up on the current screen
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_serial | No |
Implementation Reference
- src/adb_mcp_server/server.py:472-479 (handler)The main handler function for the 'scroll_up' tool. It calculates the screen dimensions, determines the swipe coordinates from 30% to 70% of screen height at center x, and performs the swipe gesture using the helper function 'swipe'.@mcp.tool() def scroll_up(device_serial: str | None = None) -> str: """Scroll up on the current screen""" specs = get_screen_specs(device_serial) center_x = specs['width_px'] // 2 start_y = int(specs['height_px'] * 0.3) end_y = int(specs['height_px'] * 0.7) return swipe(center_x, start_y, center_x, end_y, 300, device_serial)