shell_exec
Execute any ADB shell command on an Android device and retrieve its output, covering device operations not handled by other available tools.
Instructions
Execute an arbitrary ADB shell command on the device and return the output. Use this for any device operation not covered by other tools.
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": "shell_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial number | |
| command | Yes | Shell command to execute on the device |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | Combined stdout/stderr text from the command |