Run adb shell command
adb_shellRun arbitrary shell commands on an Android device to inspect packages or system state, with output truncated to the tail for concise results.
Instructions
Run an arbitrary shell command on the device (e.g. 'pm list packages -3', 'dumpsys battery'). Output is truncated to the tail.
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 |
|---|---|---|---|
| serial | No | Device serial from devices_list. Optional when exactly one device is online. | |
| command | Yes | Command line run by the device shell | |
| timeoutSec | No |