Run Shell Command
device_shellExecute arbitrary ADB shell commands on a connected Android device, targeting a specific serial when needed, to inspect or control devices from within the IDE.
Instructions
Execute an arbitrary ADB shell command on a connected Android device. Use with caution
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": "device_shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command to execute on the device | |
| deviceId | No | Target device serial |