Skip to main content
Glama

press_recent_apps

Open the recent apps switcher on Android devices to quickly switch between running applications during development and testing workflows.

Instructions

Open recent apps / app switcher

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
device_serialNo

Implementation Reference

  • Handler function decorated with @mcp.tool(), which registers it as an MCP tool. Executes ADB shell input keyevent KEYCODE_APP_SWITCH to open the recent apps/app switcher on the Android device.
    @mcp.tool() def press_recent_apps(device_serial: str | None = None) -> str: """Open recent apps / app switcher""" return run_adb(["shell", "input", "keyevent", "KEYCODE_APP_SWITCH"], 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