Skip to main content
Glama

android.input.keyevent

Send keycode events to control Android devices using scrcpy protocol or ADB fallback for actions like home, back, volume, and power.

Instructions

Sends a keycode event. Uses fast scrcpy control protocol when stream is active, otherwise falls back to adb shell input keyevent. Common keycodes: HOME=3, BACK=4, VOLUME_UP=24, VOLUME_DOWN=25, POWER=26, ENTER=66, DELETE=67.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serialYes
keycodeYes

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/invidtiv/mcp-scrcpy-vision'

If you have feedback or need assistance with the MCP directory API, please join our Discord server