adb_shell
Run allowlisted shell commands on an Android device through ADB, with non-allowlisted commands rejected to keep execution controlled.
Instructions
Run an allowlisted shell command on the Android device. Non-allowlisted commands are rejected.
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": "adb_shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial (optional) | |
| command | Yes | Shell command (must start with an allowlisted base command) |