run_adb
Execute ADB commands and return stdout for device shell, logcat, file transfer, installs, and system diagnostics.
Instructions
Executes an adb command and returns stdout. Use for: adb shell, adb logcat, adb pull/push, adb devices, adb install, adb dumpsys, etc. Requires adb on PATH.
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": "run_adb"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory. Defaults to current directory. | |
| command | Yes | The adb sub-command and args, e.g. 'shell dumpsys gfxinfo com.example reset' or 'devices'. |