Run a shell command
phone_shellRun shell commands on an Android device via adb shell to handle tasks other tools do not cover, optionally choosing the target device when several are connected.
Instructions
Run a command in the device shell (adb shell). For anything the other tools do not cover.
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": "phone_shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Which device to use. Only needed when several are connected. | |
| command | Yes |