adb_press_key
Simulate key presses on Android devices using the ADB MCP Server. Specify the key code (e.g., BACK, HOME) to automate device interactions for testing or remote management.
Instructions
Press a key on the device
Input Schema
Name | Required | Description | Default |
---|---|---|---|
deviceId | No | Device ID (optional) | |
keyCode | Yes | Key code to press (e.g., "BACK", "HOME", "MENU", or numeric code) |
Input Schema (JSON Schema)
{
"properties": {
"deviceId": {
"description": "Device ID (optional)",
"type": "string"
},
"keyCode": {
"description": "Key code to press (e.g., \"BACK\", \"HOME\", \"MENU\", or numeric code)",
"type": [
"string",
"number"
]
}
},
"required": [
"keyCode"
],
"type": "object"
}