as_adb_shell
Run shell commands on connected Android devices with automatic safety checks for read-only and destructive operations.
Instructions
Run a shell command on the device. Read-only commands run freely; anything potentially destructive requires confirm=true.
Recognised safe first-words include getprop, dumpsys, pm list, settings get, ls, cat, df, ps, am, input, wm, screencap. Commands containing markers like 'rm ', 'reboot', 'uninstall', 'clear', 'wipe' always require confirm=true.
Args: params (ShellInput): command, serial, confirm.
Returns: str: JSON with stdout/stderr, or confirmation_required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |