adb_command
Runs arbitrary ADB (Android Debug Bridge) commands, optionally scoped to a device, returning exit code, stdout, and stderr so agents can automate Android tasks and troubleshoot failures.
Instructions
Run an arbitrary adb command and return exit code, stdout, and stderr.
args is the adb argument list, for example ["shell", "getprop",
"ro.product.model"] or "shell pm list packages". Without device the
command runs without -s, so global commands such as devices or
version work; pass a serial for device-scoped commands.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | ||
| device | No | ||
| timeout_s | No | ||
| max_output_chars | No |