Skip to main content
Glama

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

Implementation Reference

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

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