adb-shell
Execute ADB shell commands on Android devices with safety guards including timeout, output truncation, and summary previews.
Instructions
Execute shell commands with safety guards.
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 | ||
| timeout | No | ms, default: 30000, max: 120000 | |
| maxChars | No | Truncate output to N chars | |
| summaryOnly | No | Compact preview only | |
| previewChars | No | Preview length (default: 200) |