run_shell
Execute arbitrary shell commands on an Android device via adb to read settings, list files, check installed apps, or grant permissions when no dedicated tool exists.
Instructions
Run a shell command on the phone and return its output.
The escape hatch for whatever the named tools do not cover: reading a setting, listing files, checking what is installed, granting a permission. Commands run as the shell user, which can read most of a stock phone but cannot change protected settings.
Args: command: The shell command line to run on the device.
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": "run_shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The shell command, run on the phone as the shell user. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |