device_shell
Executes raw adb shell commands on an Android phone or emulator to handle tasks not covered by structured app tools.
Instructions
Run a raw adb shell command on the phone (escape hatch for anything not covered).
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": {
"command": "<command>"
},
"name": "device_shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command line executed on the device. | |
| timeout | No | Seconds before giving up. |