adb_key
Send ordered remote-control key presses to Android TVs, boxes, phones, or tablets over ADB to navigate menus, enter text, and control playback.
Instructions
Press remote-control keys, in order. Names: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, apps, back, blue, captions, channeldown, channelup, delete, down, enter, forward, green, guide, home, info, input, left, menu, mute, next, notifications, ok, pause, play, playpause, power, prev, record, red, rewind, right, search, settings, sleep, space, stop, tab, tv, up, voldown, volup, wake, yellow
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"keys": "<keys>"
},
"name": "adb_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | e.g. ["home"], ["down","down","ok"] | |
| device | No | serial, ip[:port] or saved alias; omit to use the default device | |
| repeat | No | press each key N times | |
| pace_ms | No | all the keys go in one call by default; set this (e.g. 120) if a menu drops keys that arrive back to back |