android_execute_command
Execute custom ADB commands on Android devices to perform device management, debugging, and automation tasks through the Android MCP Server.
Instructions
Execute a generic ADB command with custom arguments. Allows agents to run any ADB command with their own parameters.
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": "android_execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | Array of ADB command arguments (e.g., ["shell", "pm", "list", "packages"] or ["logcat", "-d", "-s", "MyTag"]) | |
| deviceSerial | No | Specific device serial number to target (optional) |