adb_shell
Run any ADB shell command on a connected Android device and return its output for tasks not covered by dedicated tools, including dumpsys, pm, am, settings, and getprop.
Instructions
Run any adb shell command on the device and return its output - dumpsys, pm, am, settings, getprop, input, wm, content, and so on. Use it for what the other tools do not cover; prefer them when they do. Runs as the shell user (no root). Can be switched off with ADBAI_NO_SHELL=1.
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 | serial, ip[:port] or saved alias; omit to use the default device | |
| command | Yes |