Skip to main content
Glama

pressKey

Simulate hardware key presses on Android or iOS devices for automated testing. Includes options for home, back, menu, power, and volume controls.

Instructions

Press a hardware key on the device (Maestro equivalent of pressButton)

Input Schema

NameRequiredDescriptionDefault
keyYesThe key to press
platformYesPlatform of the device

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "key": { "description": "The key to press", "enum": [ "home", "back", "menu", "power", "volume_up", "volume_down", "recent" ], "type": "string" }, "platform": { "description": "Platform of the device", "enum": [ "android", "ios" ], "type": "string" } }, "required": [ "key", "platform" ], "type": "object" }

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/zillow/auto-mobile'

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