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
| Name | Required | Description | Default |
|---|---|---|---|
| device_serial | No |
Implementation Reference
- src/adb_mcp_server/server.py:553-556 (handler)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)