adb_command
Executes ADB shell commands or host ADB operations on a connected Android device, with optional target serial, timeout, and shell/host mode selection.
Instructions
Execute an ADB shell command or host ADB operation on a connected Android device.
Args:
command: Shell command (e.g. 'logcat -d -t 50', 'dumpsys battery', 'input keyevent 26')
or ADB subcommand when is_shell=False (e.g. 'install app.apk', 'forward tcp:8000 tcp:8000').
device_serial: Optional target device serial from adb_list_devices (when multiple devices are connected).
is_shell: If True (default), runs adb shell <command>. If False, runs adb <command>.
timeout_sec: Command timeout in seconds (default 20.0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| is_shell | No | ||
| timeout_sec | No | ||
| device_serial | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||