execute_raw_adb
Run any ADB command by passing raw command-line arguments as an array, safely avoiding shell injection. Target a specific device with an optional serial number.
Instructions
Execute an arbitrary ADB command by passing raw command-line arguments. Safe from shell injection on the host machine because arguments are passed as an array.
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": {
"args": "<args>"
},
"name": "execute_raw_adb"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | List of command-line arguments to pass to the adb command (e.g. ['forward', 'tcp:8080', 'tcp:8080']) | |
| serial | No | Specific device serial number to target |