adb_shell
Execute ADB shell commands on Android devices to automate tasks, inspect system information, and control device functionality through direct command-line access.
Instructions
Run an arbitrary ADB shell command
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 |
|---|---|---|---|
| command | Yes | Shell command to execute on the device | |
| device_id | No | Device ID (optional if only one device) |