mobile_button
Press Android hardware buttons (back, home, recent, menu, volume, power, camera, call) via ADB for device control and automation.
Instructions
Press a hardware/system button on the Android device: back, home, recent apps, menu, volume up/down, power, camera, or call.
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": {
"button": "<button>"
},
"name": "mobile_button"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | Yes | Button to press | |
| serial | No | ADB device serial (optional) | |
| return_screen | No | Capture screen after button press (default: true) |