adb_shell
Execute shell commands on an Android device and return stdout and stderr for direct diagnostics and automation via ADB.
Instructions
Execute a shell command on the Android device. Returns stdout and stderr.
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 | |
| command | Yes | Shell command to execute on the device | |
| timeout | No | Timeout in milliseconds (1s-10min) |