adb_exec
Run shell commands on an adb-connected Android device and return stdout, stderr, and exit status; use timeouts to terminate hung adb child processes.
Instructions
Run a shell command on an adb-connected Android device (adb -s shell); returns stdout/stderr/exit; timeouts kill the adb child.
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": {
"serial": "<serial>",
"command": "<command>"
},
"name": "adb_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | ||
| command | Yes | ||
| timeoutMs | No |