deepadb
v1.1.7Full-featured ADB MCP server — 209 tools across 49 modules, from UI to baseband.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
adb_devices
List all connected Android devices with their state, model, and product info
adb_device_info
Get detailed properties for a connected device (model, OS version, build, etc.)
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial (auto-selects if only one connected) |
adb_getprop
Get a specific Android system property, or all properties if no key given
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
key | string | Property key (e.g., 'ro.build.version.sdk'). Omit for all. |
adb_shell
Execute a shell command on the Android device. Returns stdout and stderr.
| Parameter | Type | Description |
|---|---|---|
command * | string | Shell command to execute on the device |
device | string | Device serial |
timeout | number | Timeout in milliseconds (1s-10min) |
adb_root_shell
Execute a command as root via su. Requires rooted device.
| Parameter | Type | Description |
|---|---|---|
command * | string | Command to run as root |
device | string | Device serial |
adb_install
Install an APK on the device. Provide the full local path to the APK file.
| Parameter | Type | Description |
|---|---|---|
apkPath * | string | Local filesystem path to the APK file |
device | string | Device serial |
downgrade | boolean | Allow version downgrade (-d flag) |
replace | boolean | Replace existing app (-r flag) |
adb_uninstall
Uninstall a package from the device
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name (e.g., 'com.example.app') |
device | string | Device serial |
keepData | boolean | Keep app data and cache (-k flag) |
adb_list_packages
List installed packages. Supports filtering by name.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
filter | string | Filter packages containing this string |
type | string | Show all, system-only, or third-party-only packages |
adb_package_info
Get detailed info about an installed package (version, permissions, paths)
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name (e.g., 'com.example.app') |
device | string | Device serial |
adb_clear_data
Clear all data for a package (equivalent to clearing storage in settings). DESTRUCTIVE — irreversibly wipes all app data, cache, databases, shared preferences, and login state. AP5 fix: requires `confirm: <packageName>` to proceed.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name (e.g., 'com.example.app') |
confirm | string | Must equal packageName to confirm the destructive operation. AP5 fix: prevents accidental data loss from misclicks/mistyped invocations. |
device | string | Device serial |
adb_grant_permission
Grant a runtime permission to a package
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name (e.g., 'com.example.app') |
permission * | string | Full permission string (e.g., 'android.permission.READ_PHONE_STATE') |
device | string | Device serial |
adb_revoke_permission
Revoke a runtime permission from a package. Useful for resetting permission state to test first-run flows or denial handling.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name (e.g., 'com.example.app') |
permission * | string | Full permission string (e.g., 'android.permission.CAMERA') |
device | string | Device serial |
adb_list_permissions
List permissions declared and granted for a package. Parses the package dump to show install-time and runtime permissions with their current grant state. Useful for auditing permission state before and after grant/revoke operations.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name (e.g., 'com.example.app') |
device | string | Device serial |
filter | string | Show all permissions, only granted, or only denied (default: all) |
adb_force_stop
Force-stop an app immediately. The most common debugging action.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name (e.g., 'com.example.app') |
device | string | Device serial |
adb_start_app
Launch an app by package name (resolves and starts the default launcher activity)
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name (e.g., 'com.example.app') |
device | string | Device serial |
adb_restart_app
Force-stop then re-launch an app. The most frequent debugging workflow in a single call.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name (e.g., 'com.example.app') |
delayMs | number | Delay between stop and start in ms (0-10000, default 500) |
device | string | Device serial |
adb_resolve_intents
Discover all activities, services, and receivers registered by a package with their intent filters
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name to query |
device | string | Device serial |
adb_push
Push a local file to the device filesystem. Pre-flight checks: hard-blocked kernel paths, filesystem type warnings, symlink resolution, and destination storage availability.
| Parameter | Type | Description |
|---|---|---|
localPath * | string | Local file path to push |
remotePath * | string | Destination path on device |
device | string | Device serial |
adb_pull
Pull a file from the device to local filesystem
| Parameter | Type | Description |
|---|---|---|
remotePath * | string | File path on the device |
device | string | Device serial |
localPath | string | Local destination (defaults to temp dir) |
adb_ls
List files and directories on the device
| Parameter | Type | Description |
|---|---|---|
details | boolean | Show detailed listing (ls -la) |
device | string | Device serial |
path | string | Directory path on device |
adb_cat
Read a text file from the device
| Parameter | Type | Description |
|---|---|---|
path * | string | File path on device |
device | string | Device serial |
maxLines | number | Maximum lines to return (1-10000) |
adb_file_write
Create or overwrite a text file on the device. Content is delivered via shell heredoc — suitable for config files, scripts, test fixtures, and small data files. For large or binary files, use adb_push instead. Shell buffer limits content to approximately 128KB.
| Parameter | Type | Description |
|---|---|---|
content * | string | File content to write |
path * | string | Destination file path on device |
append | boolean | Append to existing file instead of overwriting |
device | string | Device serial |
root | boolean | Use root shell for protected paths |
adb_find
Search for files on the device by name or pattern. Uses the find command with glob matching. Results are capped at maxResults to prevent unbounded output. Reports whether results were truncated.
| Parameter | Type | Description |
|---|---|---|
name * | string | Filename pattern (glob: *.apk, config.*, *test*) |
device | string | Device serial |
maxDepth | number | Maximum directory depth to search (1-50, default 10) |
maxResults | number | Maximum results to return (1-10000, default 500) |
result_handle | string | Optional. If provided, store this tool's result under `result://<tool>/<name>` for retrieval after compaction. Name must be 1-32 chars, [a-zA-Z0-9_-]. Existing handles with the same tool+name are over… |
result_handle_ttl | integer | Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided. |
root | boolean | Use root shell for system paths |
searchPath | string | Starting directory for search |
type | string | Filter by type: file, directory, or any |
adb_file_stat
Get detailed file metadata: size, permissions, ownership, timestamps (access/modify/change), SELinux security context, and file type. Read-only operation.
| Parameter | Type | Description |
|---|---|---|
path * | string | File or directory path on device |
device | string | Device serial |
root | boolean | Use root shell for protected paths |
adb_file_checksum
Compute SHA-256 hash of a file on the device. Critical for firmware integrity verification, tamper detection, and comparing files across devices. Read-only operation. Reports file size alongside the hash.
| Parameter | Type | Description |
|---|---|---|
path * | string | File path on device |
algorithm | string | Hash algorithm (default: sha256) |
device | string | Device serial |
root | boolean | Use root shell for protected paths |
adb_mkdir
Create a directory on the device. Supports -p flag for creating parent directories.
| Parameter | Type | Description |
|---|---|---|
path * | string | Directory path to create |
device | string | Device serial |
parents | boolean | Create parent directories as needed (-p flag, default true) |
root | boolean | Use root shell for protected paths |
adb_rm
Delete a file or directory on the device. Recursive deletion uses depth-based protection: refuses at depth ≤ 2 from root (blocks rm -rf /system or /sdcard but allows /sdcard/project/build/). Symlinks are resolved before depth checks to prevent traversal bypasses. Hard-blocks /dev, /proc, /sys. For recursive deletes, reports a pre-flight file count.
| Parameter | Type | Description |
|---|---|---|
path * | string | File or directory path to delete |
device | string | Device serial |
recursive | boolean | Delete directory recursively (-rf). Depth-protected. |
root | boolean | Use root shell for protected paths |
adb_file_move
Move or rename a file/directory on the device. Moving FROM a system path is destructive — source depth protection refuses if source is at depth ≤ 1 from root. Symlinks resolved before checks. Cross-filesystem moves (e.g., /data → /sdcard) do a copy+delete internally and can be slow for large files.
| Parameter | Type | Description |
|---|---|---|
destination * | string | Destination path |
source * | string | Source file or directory path |
device | string | Device serial |
root | boolean | Use root shell for protected paths |
adb_file_copy
Copy a file or directory on the device. Pre-flight checks source size against destination available space. Post-verifies the copy by comparing file sizes. For recursive directory copies, use -r flag.
| Parameter | Type | Description |
|---|---|---|
destination * | string | Destination path |
source * | string | Source file or directory path |
device | string | Device serial |
recursive | boolean | Copy directories recursively (-r) |
root | boolean | Use root shell for protected paths |
adb_file_chmod
Change file permissions on the device. Mode must be a valid octal string (e.g., '755', '644', '600'). Recursive mode uses depth-based protection: refuses at depth ≤ 2 from root. Note: sdcardfs/FUSE ignores Unix permissions — file access on /sdcard is controlled by Android's package ownership model.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Octal permission mode (e.g., '755', '644', '0600') |
path * | string | File or directory path |
device | string | Device serial |
recursive | boolean | Apply recursively to directory contents. Depth-protected. |
root | boolean | Use root shell (typically required for chmod) |
adb_file_touch
Create an empty file or update timestamps. Three modes: create (touch non-existent path), update (set atime/mtime to now), or set explicit timestamp. On FAT32, timestamps have 2-second resolution. On tmpfs, timestamps are volatile.
| Parameter | Type | Description |
|---|---|---|
path * | string | File path on device |
device | string | Device serial |
root | boolean | Use root shell for protected paths |
timestamp | string | Explicit timestamp in 'YYYY-MM-DD HH:MM:SS' format. Omit to use current time. |
adb_file_fsinfo
Report filesystem details for any path: filesystem type, mount point, mount options, capacity, usage, read-only status, permission support, symlink support, max file size, timestamp resolution, encryption status, and SELinux context. Essential for understanding what operations are possible before attempting them.
| Parameter | Type | Description |
|---|---|---|
path * | string | File or directory path to inspect |
device | string | Device serial |
root | boolean | Use root shell for system paths |
adb_file_chown
Change file ownership on the device. Requires root. Supports both numeric UID:GID (e.g., '10150:10150') and symbolic user:group (e.g., 'system:system'). Recursive mode uses depth-based protection: refuses at depth ≤ 2 from root. Note: sdcardfs/FAT32 ignore ownership changes.
| Parameter | Type | Description |
|---|---|---|
owner * | string | Owner in user:group format (e.g., '0:0', 'system:system', '10150:10150') |
path * | string | File or directory path |
device | string | Device serial |
recursive | boolean | Apply recursively to directory contents. Depth-protected. |
adb_grep
Search file contents on the device by text pattern. Uses fixed-string matching by default (no regex injection risk). Supports recursive directory search with depth control and result capping. For filename searches, use adb_find instead.
| Parameter | Type | Description |
|---|---|---|
path * | string | File or directory path to search |
pattern * | string | Text pattern to search for |
device | string | Device serial |
filesWithMatches | boolean | Show only filenames that contain matches, not the matching lines |
fixedString | boolean | Use fixed-string matching (default: true, safer). Set false for regex. |
ignoreCase | boolean | Case-insensitive search (default: true) |
maxDepth | number | Maximum directory depth for recursive search (1-50, default 10) |
maxResults | number | Maximum matching lines to return (1-10000, default 500) |
recursive | boolean | Search directories recursively |
result_handle | string | Optional. If provided, store this tool's result under `result://<tool>/<name>` for retrieval after compaction. Name must be 1-32 chars, [a-zA-Z0-9_-]. Existing handles with the same tool+name are over… |
result_handle_ttl | integer | Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided. |
root | boolean | Use root shell for protected paths |
adb_file_replace
Find and replace text in a file on the device. Uses sed internally with proper escaping — exposes a safe interface without requiring sed syntax knowledge. Supports global replacement, line-targeted edits, and optional backup creation. Reports match count.
| Parameter | Type | Description |
|---|---|---|
find * | string | Text to find (literal string, not regex) |
path * | string | File path on device |
replace * | string | Replacement text |
backup | boolean | Create a .bak backup before modifying |
device | string | Device serial |
global | boolean | Replace all occurrences (default: true). Set false for first-only. |
lineNumber | number | Restrict replacement to a specific line number |
root | boolean | Use root shell for protected paths |
adb_logcat
Capture a logcat snapshot. Supports tag filtering, priority levels, and grep patterns.
| Parameter | Type | Description |
|---|---|---|
buffer | string | Logcat buffer to read from |
device | string | Device serial |
grep | string | Grep filter applied to output (literal string match, case-insensitive) |
lines | number | Number of recent lines to capture (1-10000) |
priority | string | Minimum priority: V(erbose), D(ebug), I(nfo), W(arn), E(rror), F(atal) |
result_handle | string | Optional. If provided, store this tool's result under `result://<tool>/<name>` for retrieval after compaction. Name must be 1-32 chars, [a-zA-Z0-9_-]. Existing handles with the same tool+name are over… |
result_handle_ttl | integer | Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided. |
tag | string | Filter by tag (e.g., 'ActivityManager' or 'MyApp') |
adb_logcat_clear
Clear all logcat buffers on the device
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_logcat_crash
Get recent crash logs from the crash buffer
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
lines | number | Number of lines (1-10000) |
adb_dumpsys
Run dumpsys for a specific service. Use 'list' as the service to see all available services.
| Parameter | Type | Description |
|---|---|---|
service * | string | Service name (e.g., 'battery', 'telephony.registry', 'activity') or 'list' |
args | string | Additional arguments passed to dumpsys |
device | string | Device serial |
result_handle | string | Optional. If provided, store this tool's result under `result://<tool>/<name>` for retrieval after compaction. Name must be 1-32 chars, [a-zA-Z0-9_-]. Existing handles with the same tool+name are over… |
result_handle_ttl | integer | Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided. |
adb_telephony
Get telephony state including cell info, signal strength, and network registration.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_battery
Get battery status, level, temperature, and charging info
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_network
Get network connectivity info including WiFi, cellular, and active connections
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_top
Get current CPU and memory usage snapshot
| Parameter | Type | Description |
|---|---|---|
count | number | Number of iterations (1-100, 1 = snapshot) |
device | string | Device serial |
adb_perf_snapshot
Capture a performance snapshot for a package: memory usage, frame stats, and CPU info in one call.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name to profile (e.g., 'com.example.app') |
device | string | Device serial |
adb_bugreport
Capture a full bug report zip (device state, logs, dumpsys, system info). Returns the local file path.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_crash_logs
Read ANR (Application Not Responding) traces and tombstone crash dumps from the device. Requires root access for /data/anr/ and /data/tombstones/. Returns the most recent entries.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
maxEntries | integer | Maximum entries to return per type (1-20, default 5) |
type | string | Type of crash data to retrieve (default: both) |
adb_heap_dump
Capture a heap dump from a running process for memory analysis. Triggers `am dumpheap` and pulls the resulting .hprof file. Requires the target process PID or package name.
| Parameter | Type | Description |
|---|---|---|
target * | string | Process PID (number) or package name (e.g., com.example.app) |
device | string | Device serial |
filename | string | Output filename (default: heap_<target>_<timestamp>.hprof) |
adb_screencap
Take a screenshot and save to local filesystem. Returns the file path.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
filename | string | Output filename (default: screenshot_<timestamp>.png) |
adb_current_activity
Get the currently focused activity and window stack
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_input
Send input events to the device (tap, swipe, text, keyevent)
| Parameter | Type | Description |
|---|---|---|
args * | string | Arguments: tap='x y', swipe='x1 y1 x2 y2 [duration_ms]', text='string', keyevent='KEYCODE_HOME' |
type * | string | Input type — one of: tap (single touch), swipe (drag between two points), text (literal string entry), keyevent (Android key code like KEYCODE_HOME). The args field documents the expected argument f… |
device | string | Device serial |
adb_start_activity
Start an activity or app by intent or component name
| Parameter | Type | Description |
|---|---|---|
intent * | string | Intent or component (e.g., 'com.example/.MainActivity' or '-a android.intent.action.VIEW -d https://example.com') |
device | string | Device serial |
adb_ui_dump
Dump the current UI hierarchy. Parses the view tree into structured element data with coordinates, text, resource IDs, and interaction flags. Use format='tsv' for token-efficient compact output, format='xml' for raw uiautomator XML.
| Parameter | Type | Description |
|---|---|---|
clickableOnly | boolean | Only show clickable/interactive elements |
device | string | Device serial |
format | string | Output format: 'text' (default, human-readable), 'tsv' (tab-separated, token-efficient), 'xml' (raw uiautomator XML) |
adb_ui_find
Search the UI hierarchy for elements matching text, resource-id, or content-description. Returns matching elements with coordinates for precise adb_input targeting.
| Parameter | Type | Description |
|---|---|---|
contentDesc | string | Match elements with this content-description (partial, case-insensitive) |
device | string | Device serial |
resourceId | string | Match elements with this resource-id (partial match) |
text | string | Match elements containing this text (case-insensitive) |
adb_screencap_annotated
Take a screenshot with UI element bounding boxes and numbered labels composited directly onto the image. Returns the annotated PNG path plus a text legend mapping each element number to its identity. Ideal for LLM workflows that need to reference specific UI elements by number rather than by coordinates.
| Parameter | Type | Description |
|---|---|---|
clickableOnly | boolean | Only annotate clickable/scrollable elements (default true — reduces visual noise) |
device | string | Device serial |
filename | string | Output filename (default: annotated_<timestamp>.png) |
adb_screen_state
Get a combined screen state snapshot in one call: foreground activity, screen dimensions and density, orientation, battery level, and a TSV list of interactive UI elements. Replaces 3-4 separate tool calls with a single round-trip. Ideal as a first step in any automation workflow.
| Parameter | Type | Description |
|---|---|---|
clickableOnly | boolean | Only include clickable/scrollable elements in TSV output (default true) |
device | string | Device serial |
adb_gradle
Run a Gradle task in an Android project directory
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Path to the Android project root (containing gradlew) |
task * | string | Gradle task (e.g., 'assembleDebug', 'installDebug', 'clean') |
args | array | Additional Gradle arguments as an array of strings (e.g., ['-Pversion=1.0', '--info']). Use an array — not a space-separated string — so arguments containing quoted values are preserved as single… |
timeout | integer | Build timeout in milliseconds (30s-30min, default 5min). V5 fix: large multi-module Android projects (60+ modules) routinely exceed the default; raise this for clean builds of bigger projects. |
adb_build_and_install
Build a debug APK and install it on the connected device (convenience wrapper)
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Path to the Android project root |
device | string | Device serial |
timeout | integer | Build+install timeout in milliseconds (30s-30min, default 5min). V5 fix. |
adb_health_check
Run a comprehensive health check of the ADB toolchain. Validates: ADB binary, server, device connection, authorization, and root access.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial to check (optional) |
adb_runtime_audit
Run a unified, read-only DeepADB readiness audit covering transport, authorization, Android state, root, SELinux, storage, common binaries, UI/network support, SQLite, chipset/modem nodes, and Wear prerequisites. Makes no device changes.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial to audit |
adb_pair
Pair with a device over WiFi using the pairing code from Developer Options → Wireless debugging → Pair device
| Parameter | Type | Description |
|---|---|---|
code * | string | 6-digit pairing code shown on the device |
host * | string | Device IP and pairing port (e.g., '192.168.1.100:37123') |
adb_connect
Connect to a device over WiFi/TCP. Device must be paired first or have TCP/IP enabled.
| Parameter | Type | Description |
|---|---|---|
host * | string | Device IP and port (e.g., '192.168.1.100:5555' or '192.168.1.100:41567') |
adb_disconnect
Disconnect from a wireless device, or all wireless devices if no host specified
| Parameter | Type | Description |
|---|---|---|
host | string | Device IP:port to disconnect (omit for all) |
adb_tcpip
Switch a USB-connected device to TCP/IP mode on the specified port (default 5555). After this, you can disconnect USB and use adb_connect.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial (must be USB-connected) |
port | number | TCP port for ADB (1-65535, default 5555) |
adb_airplane_mode
Toggle airplane mode on/off. Useful for resetting cellular registration during radio testing.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | true = enable airplane mode, false = disable |
device | string | Device serial |
adb_wifi
Enable or disable WiFi
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | true = enable WiFi, false = disable |
device | string | Device serial |
adb_mobile_data
Enable or disable mobile data
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | true = enable mobile data, false = disable |
device | string | Device serial |
adb_location
Enable or disable location services
| Parameter | Type | Description |
|---|---|---|
mode * | string | Location mode: off, sensors (GPS only), battery (network only), high (GPS + network) |
device | string | Device serial |
adb_screen
Control screen state: wake, sleep, toggle, lock, or unlock. Lock and unlock verify actual keyguard state via dumpsys window. Unlock uses wm dismiss-keyguard (works for swipe keyguards); supply 'pin' to perform the full PIN entry sequence for PIN-protected devices: wakes screen, dismisses keyguard, swipes up to reveal keypad, types PIN, confirms with ENTER, and verifies the keyguard sleep token was released.
| Parameter | Type | Description |
|---|---|---|
action * | string | Screen action — one of: wake (power on + dismiss keyguard if no PIN), sleep (power off), toggle (flip current state), lock (force keyguard), unlock (dismiss keyguard, with PIN if supplied) |
device | string | Device serial |
pin | string | PIN/password to enter when unlock encounters an active keyguard (digits only for PIN, alphanumeric for password). Only used with action='unlock'. |
adb_airplane_cycle
Cycle airplane mode on then off after a delay. Forces cellular re-registration — useful for radio diagnostics and network testing.
| Parameter | Type | Description |
|---|---|---|
delaySeconds | number | Seconds to keep airplane mode on (1-60, default 3) |
device | string | Device serial |
adb_settings_get
Read an Android settings value from any namespace (system, secure, global)
| Parameter | Type | Description |
|---|---|---|
key * | string | Setting key (e.g., 'screen_brightness', 'location_mode', 'airplane_mode_on') |
namespace * | string | Settings namespace |
device | string | Device serial |
adb_settings_put
Write an Android settings value to any namespace (system, secure, global)
| Parameter | Type | Description |
|---|---|---|
key * | string | Setting key (e.g., 'screen_brightness' for system namespace, 'wifi_on' or 'airplane_mode_on' for global, 'location_providers_allowed' for secure). Use `adb_shell` with `settings list <namespace>` to e… |
namespace * | string | Settings namespace |
value * | string | Value to write. Type depends on the key — typically a string, integer, or 0/1 for booleans. The setting framework accepts everything as a string and parses on read. |
device | string | Device serial |
adb_reboot
Reboot the device. Supports normal, recovery, and bootloader modes.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
mode | string | Reboot mode: normal (default), recovery, or bootloader |
adb_logcat_start
Start a background logcat watcher. Lines accumulate in a ring buffer. Use adb_logcat_poll to retrieve new entries.
| Parameter | Type | Description |
|---|---|---|
bufferSize | number | Max lines to keep in ring buffer (100-50000, default 2000) |
device | string | Device serial |
priority | string | Minimum priority level |
tag | string | Filter by tag (e.g., 'MyApp'). Must match /^[a-zA-Z0-9_]+$/ — Android tags are identifier-shaped in practice. |
adb_logcat_poll
Retrieve new logcat lines since the last poll from a running watcher session.
| Parameter | Type | Description |
|---|---|---|
session * | string | Session ID from adb_logcat_start (e.g., 'watch_1') |
maxLines | number | Max lines to return per poll (1-10000) |
result_handle | string | Optional. If provided, store this tool's result under `result://<tool>/<name>` for retrieval after compaction. Name must be 1-32 chars, [a-zA-Z0-9_-]. Existing handles with the same tool+name are over… |
result_handle_ttl | integer | Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided. |
adb_logcat_stop
Stop a running logcat watcher session
| Parameter | Type | Description |
|---|---|---|
session * | string | Session ID to stop (e.g., 'watch_1'), or 'all' to stop all |
adb_logcat_sessions
List all active logcat watcher sessions
adb_forward
Forward a local port to a port on the device (host → device). Use for connecting to services running on the device.
| Parameter | Type | Description |
|---|---|---|
local * | string | Local (host) spec, e.g., 'tcp:8080'. AF2 fix: format-validated. |
remote * | string | Remote (device) spec, e.g., 'tcp:8080' or 'localabstract:app_socket'. AF2 fix: format-validated. |
device | string | Device serial |
adb_reverse
Reverse-forward a device port to a port on the host (device → host). Use for letting device apps reach services on your machine.
| Parameter | Type | Description |
|---|---|---|
local * | string | Local (host) spec, e.g., 'tcp:3000'. AF2 fix: format-validated. |
remote * | string | Remote (device) spec, e.g., 'tcp:3000'. AF2 fix: format-validated. |
device | string | Device serial |
adb_forward_list
List all active port forwards and reverse forwards
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial (omit for all devices) |
adb_forward_remove
Remove a port forward (host → device), or all forwards. Use after testing to clean up.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
local | string | Local spec to remove (e.g., 'tcp:8080'). Omit to remove all forwards. AF2 fix: format-validated. |
adb_reverse_remove
Remove a reverse forward (device → host), or all reverse forwards. Use after testing to clean up.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
remote | string | Remote spec to remove (e.g., 'tcp:3000'). Omit to remove all reverse forwards. AF2 fix: format-validated. |
adb_tunnel_open
Open a managed tunnel between host and device. Higher-level convenience wrapper over adb_forward / adb_reverse: auto-picks a free host port when one isn't specified (forward only), returns an opaque tunnel ID for later close, and registers cleanup so the tunnel is removed on server exit. Direction 'forward' = host port forwards TO device service; 'reverse' = device port forwards TO host service.
| Parameter | Type | Description |
|---|---|---|
deviceSpec * | string | Device-side spec, e.g., 'tcp:3000' or 'localabstract:app_socket' |
direction * | string | 'forward' (host → device) or 'reverse' (device → host) |
device | string | Device serial |
hostSpec | string | Host-side spec, e.g., 'tcp:8080'. For 'forward' direction: omit to auto-pick a free host port. For 'reverse' direction: required (can't auto-pick device-side ports without an extra probe call). |
adb_tunnel_list
List all active managed tunnels (opened via adb_tunnel_open). Shows tunnel ID, device, direction, and both endpoints. Note: this only surfaces tunnels created via adb_tunnel_open — tunnels created via the low-level adb_forward / adb_reverse won't appear here. For those, use adb_forward_list.
| Parameter | Type | Description |
|---|---|---|
device | string | Filter to a specific device serial (default: all devices) |
adb_tunnel_close
Close a managed tunnel by ID, or all managed tunnels at once. The corresponding adb forward/reverse entry is removed and the tunnel is dropped from the cleanup registry. Use adb_tunnel_list to see active tunnel IDs.
| Parameter | Type | Description |
|---|---|---|
id * | string | Tunnel ID (tun_XXXXXX) returned by adb_tunnel_open, or the literal string 'all' to close every managed tunnel. |
adb_screenrecord_start
Start recording the device screen. Recording runs on-device. Use adb_screenrecord_stop to finish and pull the video file.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
maxDuration | number | Maximum recording duration in seconds (1-180, default 60) |
adb_screenrecord_stop
Stop an active screen recording and pull the video file locally. If the recording has already finished (hit time limit), this just pulls the file.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_avd_list
List all available Android Virtual Devices (AVDs) that can be started.
adb_emulator_start
Launch an Android Virtual Device (AVD) emulator. Returns once the emulator process has started.
| Parameter | Type | Description |
|---|---|---|
avdName * | string | AVD name (from adb_avd_list) |
coldBoot | boolean | Force cold boot (-no-snapshot-load) |
gpuMode | string | GPU acceleration mode |
headless | boolean | Run without GUI window (-no-window) |
adb_emulator_stop
Stop a running emulator. Uses 'adb emu kill' for graceful shutdown.
| Parameter | Type | Description |
|---|---|---|
avdName | string | AVD name to stop. If omitted, lists running emulators. |
device | string | Emulator device serial (e.g., 'emulator-5554') — alternative to avdName |
adb_qemu_setup
Check and install QEMU for on-device virtualization. Verifies KVM availability, checks if QEMU is installed, reports version info, and can install QEMU via Termux package manager. Only available in on-device mode.
| Parameter | Type | Description |
|---|---|---|
install | boolean | If true, install QEMU via pkg if not already present |
adb_qemu_images
Manage QEMU disk images for virtual machines. List available images, create new qcow2/raw disk images, or delete existing ones. Images are stored in the DeepADB image directory.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform |
format | string | Image format. qcow2 is recommended (sparse, snapshots). raw for maximum I/O performance. |
name | string | Image name (for create/delete). Alphanumeric, hyphens, underscores only. |
sizeMb | number | Image size in MB (for create). Default 8192 (8GB). Range: 64-65536. |
adb_qemu_start
Boot a QEMU virtual machine with KVM hardware acceleration. Auto-detects optimal resource allocation: uses total cores minus 1 for the VM (reserving one for the host OS), and up to 65% of physical RAM. Custom values are accepted but capped at safe limits to prevent host starvation.
| Parameter | Type | Description |
|---|---|---|
image * | string | Disk image filename (from adb_qemu_images) or absolute path |
name * | string | VM name (used to track and stop the VM) |
adbPort | number | Host port to forward to guest ADB (port 5555). Default 5556. |
append | string | Kernel command line arguments (for Android boot). |
cpus | number | Virtual CPUs. Auto-detected if omitted (total cores minus 1). Capped at safe limit. |
display | string | Display output. 'none' for headless (default). 'vnc' starts a VNC server on port 5900. |
initrd | string | Path to initrd/ramdisk image (for Android boot). |
kernel | string | Path to kernel image (for Android boot). If omitted, QEMU uses the disk image's bootloader. |
memoryMb | number | RAM in MB. Auto-detected if omitted (65% of physical RAM). Capped at safe limit. |
adb_qemu_stop
Stop a running QEMU virtual machine. Sends SIGTERM for graceful shutdown, with force kill option.
| Parameter | Type | Description |
|---|---|---|
force | boolean | Use SIGKILL instead of SIGTERM for immediate termination. |
name | string | VM name to stop. If omitted, lists running VMs. |
adb_qemu_status
Show status of QEMU virtual machines — running VMs with resource usage and port mappings, plus KVM and QEMU availability.
adb_qemu_connect
Connect to a running QEMU VM's ADB service, making the guest appear as a device for DeepADB tools. Requires the guest OS to have an ADB daemon running (e.g., Android guest with USB debugging enabled). Requires the 'adb' binary (install with: pkg install android-tools). Connections are restricted to localhost only — no remote host connections allowed.
| Parameter | Type | Description |
|---|---|---|
name * | string | VM name to connect to (must be running) |
timeout | number | Connection timeout in milliseconds (3s-30s). Default 10s. |
adb_qemu_disconnect
Disconnect from a QEMU VM's ADB service. Removes the guest from the device list.
| Parameter | Type | Description |
|---|---|---|
name * | string | VM name to disconnect from |
adb_qemu_guest_shell
Execute a shell command on a QEMU guest VM via ADB. The VM must be connected first (use adb_qemu_connect). The guest serial is derived internally — no user-supplied host/IP reaches the ADB binary. Subject to the same security middleware checks as adb_shell.
| Parameter | Type | Description |
|---|---|---|
command * | string | Shell command to execute on the guest |
name * | string | VM name (must be connected via adb_qemu_connect) |
timeout | number | Command timeout in milliseconds (1s-60s). Default 15s. |
adb_test_session_start
Start a structured test session. Creates a named directory for organizing numbered screenshots and logcat captures.
| Parameter | Type | Description |
|---|---|---|
name * | string | Test session name (e.g., 'login_flow', 'threat_detection') |
device | string | Device serial |
adb_test_step
Capture a numbered test step: takes a screenshot and captures logcat since the last step. Saves both to the session directory.
| Parameter | Type | Description |
|---|---|---|
description * | string | Description of what this step tests or verifies |
captureLogcat | boolean | Capture logcat since last step |
captureScreenshot | boolean | Take a screenshot for this step |
adb_test_session_end
End the active test session. Writes a summary manifest and returns the session directory path.
adb_multi_shell
Execute a shell command on multiple (or all) connected devices in parallel. Returns results grouped by device.
| Parameter | Type | Description |
|---|---|---|
command * | string | Shell command to execute on each device |
devices | array | Device serials to target (omit for all online devices) |
timeout | number | Timeout per device in milliseconds (1s-10min) |
adb_multi_install
Install an APK on multiple (or all) connected devices in parallel.
| Parameter | Type | Description |
|---|---|---|
apkPath * | string | Local filesystem path to the APK file |
devices | array | Device serials (omit for all online devices) |
replace | boolean | Replace existing app (-r) |
adb_multi_compare
Run a command on all devices and compare outputs side by side. Highlights differences across devices.
| Parameter | Type | Description |
|---|---|---|
command * | string | Shell command to compare across devices |
devices | array | Device serials (omit for all online devices) |
adb_multi_test
Run a comparative test workflow across all connected devices (host + QEMU guests). Executes a predefined diagnostic profile or custom command list on every device in parallel, compares results per-check, and reports matches and differences. Profiles: 'firmware' (baseband, bootloader, kernel, security patch), 'security' (SELinux, verified boot, encryption), 'network' (radio, WiFi, SIM), 'identity' (model, chipset, architecture), 'full' (all profiles). Custom commands also supported.
| Parameter | Type | Description |
|---|---|---|
commands | array | Custom checks to run (max 50). Each has a label and command. |
devices | array | Device serials to target (omit for all online devices) |
profile | string | Predefined test profile to run. 'full' runs all profiles. |
timeout | number | Timeout per command per device in ms (1s-60s, default 10s) |
adb_snapshot_capture
Capture a comprehensive device state snapshot: installed packages, key settings, and system properties. Saves to a JSON file.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
name | string | Snapshot name (default: auto-generated timestamp) |
adb_snapshot_compare
Compare current device state against a saved snapshot. Shows added/removed packages, changed settings, and property differences.
| Parameter | Type | Description |
|---|---|---|
snapshotPath * | string | Path to the saved snapshot JSON file |
device | string | Device serial |
adb_snapshot_restore_settings
Restore settings from a saved snapshot to the current device. Only restores global and secure settings — does not install/uninstall packages.
| Parameter | Type | Description |
|---|---|---|
snapshotPath * | string | Path to the saved snapshot JSON file |
device | string | Device serial |
namespace | string | Which settings namespace to restore |
adb_tcpdump_start
Start a packet capture on the device using tcpdump. Requires root or tcpdump binary on device. Capture runs in background.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
filter | string | tcpdump filter expression (e.g., 'port 443', 'host 10.0.0.1') |
interface | string | Network interface to capture (default: 'any') |
maxPackets | number | Stop after N packets (1-1000000, omit for continuous until stop) |
adb_tcpdump_stop
Stop an active packet capture and pull the pcap file locally for analysis.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_network_connections
Show active network connections on the device (TCP/UDP). Similar to netstat — shows established connections, listening ports, and connection states.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
protocol | string | Filter by protocol |
adb_ci_wait_boot
Wait for a device or emulator to fully boot. Polls sys.boot_completed and waits for the launcher to be ready. Essential for CI pipelines.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
timeoutSeconds | number | Maximum time to wait for boot in seconds (default 120) |
adb_ci_device_ready
Comprehensive CI readiness check. Verifies: device online, booted, package manager ready, screen unlocked, network available. Returns structured pass/fail results.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_ci_run_tests
Run Android instrumented tests (androidTest) via `am instrument` and capture results. Returns structured pass/fail output.
| Parameter | Type | Description |
|---|---|---|
testPackage * | string | Test package (e.g., 'com.example.app.test') |
device | string | Device serial |
runner | string | Test runner class (default: AndroidX JUnit runner) |
testClass | string | Specific test class to run (optional) |
testMethod | string | Specific test method (requires testClass) |
timeout | number | Timeout in ms (10s-10min, default 5 min) |
adb_plugin_list
List all loaded plugins and the plugin directory path.
adb_plugin_info
Show information about the plugin system: directory, how to create plugins, and loaded plugin count.
adb_baseband_info
Get comprehensive modem/baseband identification: firmware version, RIL implementation, chipset, IMEI, SIM state, and radio capabilities.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
includeImei | boolean | Include IMEI in output (sensitive permanent device identifier — opt-in only) |
result_handle | string | Optional. If provided, store this tool's result under `result://<tool>/<name>` for retrieval after compaction. Name must be 1-32 chars, [a-zA-Z0-9_-]. Existing handles with the same tool+name are over… |
result_handle_ttl | integer | Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided. |
adb_cell_identity
Extract detailed cell identity information: Cell ID (CID), TAC/LAC, EARFCN/ARFCN, Physical Cell ID (PCI), PLMN, and network type. Parses structured data from dumpsys for cellular network analysis.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_signal_detail
Get detailed signal strength measurements: RSRP, RSRQ, SINR, RSSI, timing advance, and signal bars. Provides raw radio measurements for signal analysis and anomaly detection.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_neighboring_cells
List all visible cells beyond the serving cell: neighboring LTE/5G/WCDMA/GSM cells with their identities and signal strengths. Useful for cellular network surveys, coverage analysis, and radio environment characterization.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_carrier_config
Dump carrier configuration values. Useful for verifying carrier settings, detecting configuration anomalies, and inspecting APN configurations.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_modem_logs
Capture modem/baseband-related logs from multiple sources: RIL (Radio Interface Layer) logcat, telephony framework logs, and kernel modem messages via dmesg (root required for dmesg). Useful for radio diagnostics and tracing baseband-framework communication.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
grep | string | Additional grep filter applied to all sources |
lines | number | Max lines per log source (1-5000, default 200) |
adb_a11y_audit
Run an automated accessibility audit on the current screen. Checks for: missing labels on interactive elements, undersized touch targets (<48dp), images without content-descriptions, clickable elements missing focusability, and duplicate descriptions. Returns a structured report with severity and rule violations.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_a11y_touch_targets
List all interactive elements with their touch target dimensions in dp. Highlights elements below the 48dp minimum. Useful for quickly identifying cramped UI layouts.
| Parameter | Type | Description |
|---|---|---|
belowMinOnly | boolean | Only show elements below the 48dp minimum |
device | string | Device serial |
adb_a11y_tree
Dump the accessibility-focused view of the UI hierarchy. Shows only elements relevant to screen readers: their roles, labels, states, and navigation order. Filters out decorative/layout containers.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_regression_baseline
Capture a performance baseline for a package: memory, CPU, frame stats, battery, and network state. Saves to a timestamped JSON file for later comparison with adb_regression_check.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name to profile |
device | string | Device serial |
label | string | Label for this baseline (e.g., 'before-refactor', 'v2.5.0') |
adb_regression_check
Compare current performance against a saved baseline. Flags regressions in memory (>20% increase), CPU (>50% increase), and jank rate (>25% increase). Thresholds are configurable.
| Parameter | Type | Description |
|---|---|---|
baselinePath * | string | Path to the saved baseline JSON file |
cpuThreshold | number | CPU regression threshold in percent (0-1000, default 50%) |
device | string | Device serial |
jankThreshold | number | Jank rate regression threshold in percent (0-1000, default 25%) |
memoryThreshold | number | Memory regression threshold in percent (0-1000, default 20%) |
adb_regression_history
List all saved regression baselines, optionally filtered by package name. Shows trends over time.
| Parameter | Type | Description |
|---|---|---|
packageName | string | Filter by package name |
adb_farm_run
Run tests on Firebase Test Lab. Uploads an APK and test APK, executes instrumented tests across specified device models and API levels. Requires gcloud CLI authenticated with a Firebase project.
| Parameter | Type | Description |
|---|---|---|
appApk * | string | Path to the app APK file |
testApk * | string | Path to the test/instrumentation APK file |
devices | array | Device specs as 'model=DEVICE,version=API' (e.g., 'model=bluejay,version=33'). Omit for default device. |
execTimeoutMs | integer | Local execFile timeout for the gcloud invocation in ms (1min-60min, default 10min). Y4 fix: bigger device matrices or larger APKs can plausibly exceed the previous hardcoded 10min. |
resultsBucket | string | GCS bucket for results (omit for default) |
testTargets | string | Specific test class or method (e.g., 'class com.example.MyTest') |
timeout | string | Test timeout passed to gcloud --timeout (e.g., '300s', '10m'). This is the LAB-side timeout. |
adb_farm_results
Retrieve results from the most recent Firebase Test Lab run, or a specific test matrix ID. Shows pass/fail status, device results, and links to logs and artifacts.
| Parameter | Type | Description |
|---|---|---|
matrixId | string | Test matrix ID (from adb_farm_run output). Omit to list recent matrices. |
adb_farm_matrix
List available device models and API levels on Firebase Test Lab. Use to plan test matrices.
| Parameter | Type | Description |
|---|---|---|
type | string | List available device models or Android API versions |
adb_registry_search
Search the community plugin registry for available plugins. Shows name, description, version, and author. Fetches the latest manifest from the configured registry URL.
| Parameter | Type | Description |
|---|---|---|
query | string | Filter plugins by name or description keyword |
adb_registry_install
Install a plugin from the community registry by name. Downloads the plugin JavaScript file into the plugins directory. Restart DeepADB to load it.
| Parameter | Type | Description |
|---|---|---|
name * | string | Plugin name from the registry |
force | boolean | Overwrite if already installed |
adb_registry_installed
List all locally installed plugins with their versions and metadata. Shows which plugins have updates available in the registry.
adb_shannon_session
Preflight a Samsung Shannon/Exynos modem session by checking the chipset, root access, known AT ports, and a benign AT handshake together. Optionally sends ATI for identification after a successful handshake. Makes no modem configuration changes.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
includeIdentity | boolean | After a successful AT handshake, also send the read-only ATI identity query |
port | string | Optional Shannon device node override (for example /dev/umts_router) |
timeout | integer | Handshake timeout per port in milliseconds (1000-10000, default 3000) |
adb_at_detect
Auto-detect the modem AT command device node. Identifies the chipset family (Shannon, Qualcomm, MediaTek, Unisoc) and probes known device node paths. Requires root. Returns the first responding node.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_at_send
Send a single AT command to the modem and capture the response. Requires root. Use adb_at_detect to find the correct port, or specify it manually.
| Parameter | Type | Description |
|---|---|---|
command * | string | AT command to send (e.g., 'AT+CSQ', 'ATI', 'AT+COPS?') |
device | string | Device serial |
force | boolean | Bypass dangerous command safety check |
port | string | Modem device node (e.g., '/dev/umts_router'). If omitted, auto-detects. |
timeout | number | Response timeout in ms (1000-30000, default 5000) |
adb_at_batch
Send multiple AT commands sequentially and capture all responses. Useful for running a diagnostic sequence. Requires root.
| Parameter | Type | Description |
|---|---|---|
commands * | array | Array of AT commands to send in order (max 50) |
delayMs | number | Delay between commands in ms (0-10000, default 500) |
device | string | Device serial |
force | boolean | Bypass dangerous command safety checks |
port | string | Modem device node (auto-detects if omitted) |
timeout | number | Timeout per command in ms |
adb_at_probe
Run a standard AT diagnostic probe: modem identification, signal quality, network registration, SIM status, and supported bands. Requires root.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
port | string | Modem device node (auto-detects if omitted) |
adb_at_cross_validate
Cross-validate baseband firmware by comparing AT command responses (direct modem interrogation) against Android system properties (getprop). Discrepancies may indicate firmware tampering, incomplete OTA updates, or property spoofing. Sends ATI (identification), AT+CGMR (firmware revision), and AT+CGMM (model) to the modem and compares with gsm.version.baseband, ro.hardware.chipname, and related properties. Requires root.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
port | string | Modem device node (auto-detects if omitted) |
timeout | number | Response timeout per command in ms |
adb_screenshot_baseline
Capture a named screenshot baseline for later comparison. Saves the screenshot and metadata to the baselines directory.
| Parameter | Type | Description |
|---|---|---|
name * | string | Baseline name (e.g., 'home_screen', 'login_page', 'threat_alert') |
device | string | Device serial |
result_handle | string | Optional. If provided, store this tool's result under `result://<tool>/<name>` for retrieval after compaction. Name must be 1-32 chars, [a-zA-Z0-9_-]. Existing handles with the same tool+name are over… |
result_handle_ttl | integer | Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided. |
adb_screenshot_diff
Compare the current screen against a saved screenshot baseline. Decodes PNGs and performs pixel-level comparison (RGB channels), reporting exact pixel difference count, percentage, and the bounding box of the changed region. Supports a tolerance threshold for absorbing minor dynamic elements like clocks or notification badges.
| Parameter | Type | Description |
|---|---|---|
baseline * | string | Baseline name to compare against (from adb_screenshot_baseline) |
device | string | Device serial |
result_handle | string | Optional. If provided, store this tool's result under `result://<tool>/<name>` for retrieval after compaction. Name must be 1-32 chars, [a-zA-Z0-9_-]. Existing handles with the same tool+name are over… |
result_handle_ttl | integer | Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided. |
tolerancePercent | number | Pixel difference percentage threshold below which the result reports IDENTICAL. 0 = exact match required. 1-2 absorbs clock/status bar changes. |
adb_screenshot_history
List all saved screenshot baselines with their metadata (timestamp, dimensions, device, file size).
| Parameter | Type | Description |
|---|---|---|
result_handle | string | Optional. If provided, store this tool's result under `result://<tool>/<name>` for retrieval after compaction. Name must be 1-32 chars, [a-zA-Z0-9_-]. Existing handles with the same tool+name are over… |
result_handle_ttl | integer | Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided. |
adb_workflow_run
Execute a workflow — a JSON-defined sequence of device operations with variable substitution, conditional steps, and loop support. Supported actions: shell, root_shell, install, screenshot, logcat, getprop, sleep. Pass the workflow as a JSON string or provide a saved workflow name.
| Parameter | Type | Description |
|---|---|---|
workflow * | string | Workflow JSON string, or the name of a saved workflow file |
device | string | Device serial |
dryRun | boolean | Validate and show execution plan without running |
variables | object | Override workflow variables (merged with defaults) |
adb_workflow_validate
Validate a workflow JSON definition without executing it. Reports structural errors and shows the execution plan.
| Parameter | Type | Description |
|---|---|---|
workflow * | string | Workflow JSON string to validate |
adb_workflow_list
List saved workflow files in the workflows directory.
adb_install_bundle
Install multiple APK splits (app bundle) on the device using `install-multiple`. Provide all split APK files — base APK plus config splits (language, density, ABI).
| Parameter | Type | Description |
|---|---|---|
apkPaths * | array | Array of local paths to split APK files (base + config splits) |
allowDowngrade | boolean | Allow version downgrade (-d) |
device | string | Device serial |
replace | boolean | Replace existing app (-r) |
adb_list_splits
List all APK split paths installed for a package. Shows the base APK and any configuration splits (language, screen density, ABI).
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name (e.g., 'com.example.app') |
device | string | Device serial |
adb_extract_apks
Pull all APK splits for a package from the device to a local directory. Useful for analysis, backup, or transfer to another device.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name to extract |
device | string | Device serial |
outputDir | string | Local output directory (default: temp dir) |
adb_apex_list
List installed APEX modules on the device. APEX (Android Pony EXpress) modules deliver updatable system components. Shows module name, version, and active/staged status.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_mirror_start
Start live screen mirroring for a device using scrcpy. Requires scrcpy installed and on PATH. Supports windowed (visual) and headless (no display) modes. One session per device.
| Parameter | Type | Description |
|---|---|---|
bitrate | string | Video bitrate (e.g., '4M', '8M', '2M'). AK2 fix: format-validated at schema layer. |
device | string | Device serial |
headless | boolean | No-display mode — useful with recording. Omits the scrcpy window. |
maxFps | number | Maximum frame rate (1-120, default 30) |
maxSize | number | Max dimension in pixels (0 = no limit, max 4096) |
record | string | Record to a local file path (e.g., 'mirror.mp4') |
stayAwake | boolean | Keep device awake while mirroring |
turnScreenOff | boolean | Turn device screen off during mirroring (saves battery) |
adb_mirror_stop
Stop an active scrcpy mirroring session for a device.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial (stops that device's session). Omit to stop all. |
adb_mirror_status
Check scrcpy availability and list active mirroring sessions.
adb_test_gen_from_ui
Analyze the current screen and generate a test workflow that taps each interactive element, takes screenshots, and verifies the app doesn't crash. Produces a workflow JSON compatible with adb_workflow_run.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name to monitor during test (used for logcat filtering and crash detection) |
device | string | Device serial |
returnToStart | boolean | Press Back after each tap to return to the starting screen |
screenshotAfterEach | boolean | Take a screenshot after each tap |
adb_test_gen_from_intents
Analyze a package's registered activities and intent filters to generate a test workflow that launches each exported activity and verifies it renders. Produces workflow JSON compatible with adb_workflow_run.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name to analyze |
device | string | Device serial |
adb_test_gen_save
Save a generated workflow JSON to the workflows directory for later execution with adb_workflow_run.
| Parameter | Type | Description |
|---|---|---|
name * | string | Workflow name (used as filename) |
workflow * | string | Workflow JSON string to save |
adb_ota_fingerprint
Capture and save the current system fingerprint: build ID, Android version, security patch, bootloader, baseband firmware, kernel version, and A/B partition slot. Saves to a timestamped JSON file for later comparison.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
label | string | Label for this fingerprint (e.g., 'pre-update', 'post-ota') |
adb_ota_check
Compare the current system state against a saved fingerprint. Detects OTA updates by identifying changes in build ID, security patch, baseband firmware, bootloader, or kernel version.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
fingerprintPath | string | Path to saved fingerprint JSON. If omitted, compares against the most recent fingerprint for this device. |
adb_ota_history
List all saved system fingerprints for a device, showing version progression over time. Highlights changes between consecutive snapshots.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial (filters to this device). Omit for all devices. |
adb_ril_start
Start capturing RIL (Radio Interface Layer) messages from the radio logcat buffer. Captures network registration, cell info, signal strength, authentication, handover, and NAS events. Useful for radio diagnostics and cellular network research.
| Parameter | Type | Description |
|---|---|---|
bufferSize | number | Max messages to keep in ring buffer (100-50000, default 5000) |
device | string | Device serial |
includeKernel | boolean | Also capture from main and kernel logcat buffers for modem framework and kernel-level radio messages |
adb_ril_poll
Retrieve captured RIL messages since the last poll. Optionally filter by category (registration, cell_info, signal, network, security, handover, data, radio_state, nas).
| Parameter | Type | Description |
|---|---|---|
session * | string | Session ID from adb_ril_start (e.g., 'ril_1') |
category | string | Filter by category: registration, cell_info, signal, network, security, handover, data, radio_state, sms, nas, other |
maxMessages | number | Max messages to return per poll (1-10000) |
raw | boolean | Return raw logcat lines instead of parsed messages |
adb_ril_stop
Stop a RIL capture session. Shows a summary of captured message categories.
| Parameter | Type | Description |
|---|---|---|
session * | string | Session ID to stop (e.g., 'ril_1'), or 'all' to stop all |
adb_profile_detect
Auto-detect and build a device profile from the connected device. Captures hardware identification, chipset family, modem info, root status, and matches against the built-in profile library for known quirks.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
save | boolean | Automatically save the detected profile |
adb_profile_save
Save a device profile to the profiles library. Use after adb_profile_detect to persist the profile, or create a manual profile with custom quirks and notes.
| Parameter | Type | Description |
|---|---|---|
name * | string | Profile name (used as filename) |
profile * | string | Profile JSON string (from adb_profile_detect output or manually composed) |
adb_profile_list
List all device profiles: built-in library entries and user-saved profiles.
adb_firmware_probe
Comprehensive firmware identification for the connected device. Reports all firmware components: baseband (parsed by chipset family — Shannon, Qualcomm, MediaTek, Unisoc, HiSilicon, Intel), bootloader, RIL implementation, kernel, security patch, A/B slot, verified boot state, and OTA-updatable partitions.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_firmware_diff
Compare all firmware components between two saved OTA fingerprints, or between the current device state and a saved fingerprint. Compares baseband (with chipset-specific parsed component diffs), bootloader, kernel, security patch, build ID, and Android version.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial (used when 'from' or 'to' is 'current', or for auto-selecting fingerprints) |
from | string | Path to 'from' fingerprint JSON (or 'current' to use live device state). Defaults to the second-most-recent fingerprint. |
result_handle | string | Optional. If provided, store this tool's result under `result://<tool>/<name>` for retrieval after compaction. Name must be 1-32 chars, [a-zA-Z0-9_-]. Existing handles with the same tool+name are over… |
result_handle_ttl | integer | Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided. |
to | string | Path to 'to' fingerprint JSON (or 'current' to use live device state). Defaults to the most recent fingerprint. |
adb_firmware_history
Show firmware version progression across all saved OTA fingerprints for a device. Tracks baseband, bootloader, kernel, security patch, and build ID changes between consecutive snapshots with parsed component diffs.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial (filters fingerprints to this device) |
adb_market_search
Search the workflow marketplace for community-shared workflow definitions. Shows name, description, tags, author, and step count. Indicates which workflows are already installed locally.
| Parameter | Type | Description |
|---|---|---|
query | string | Filter by name, description, or tag keyword |
tag | string | Filter by exact tag (e.g., 'testing', 'diagnostics', 'security') |
adb_market_install
Download and install a workflow from the marketplace. Saves to the workflows directory for immediate use with adb_workflow_run.
| Parameter | Type | Description |
|---|---|---|
name * | string | Workflow name from the marketplace |
force | boolean | Overwrite if a workflow with this name already exists locally |
adb_market_export
Export a local workflow with marketplace metadata for sharing. Produces a JSON file with name, description, version, author, and tags suitable for submission to the marketplace registry.
| Parameter | Type | Description |
|---|---|---|
workflow * | string | Name of the local workflow to export (from adb_workflow_list) |
author | string | Author name to include in metadata |
tags | array | Tags for discovery (e.g., ['testing', 'diagnostics']) |
version | string | Version string (semver-style, e.g., '1.2.3'). Defaults to '1.0.0' if omitted. Increment when publishing an updated workflow so registry consumers can detect changes. |
adb_selinux_status
Check SELinux enforcement mode, policy version, and recent denial count. Shows whether the device is in Enforcing, Permissive, or Disabled mode. Root access provides additional policy details from dmesg audit logs.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_selinux_denials
List recent SELinux AVC denial messages from logcat and kernel logs. Shows which processes were blocked, what they tried to do, and the SELinux contexts involved. Useful for diagnosing permission issues and understanding security policy enforcement.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
lines | number | Max denial entries to return (1-1000, default 50) |
process | string | Filter denials by process/source context name |
adb_permission_audit
Audit runtime permission grants for a package. Lists all granted dangerous permissions grouped by category (Camera, Location, Phone, SMS, etc.) and flags potentially over-provisioned permissions. Compares grants against the dangerous permission manifest to identify unnecessary access.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name to audit (e.g., 'com.example.app'). AZ7 fix: enforces Java-identifier shape so injection attempts are rejected at the schema layer before reaching validateShellArg. |
device | string | Device serial |
adb_thermal_snapshot
Capture a thermal and power snapshot: all thermal zone temperatures, per-CPU frequencies and governors, cooling device states, and battery temperature/current draw. Optionally save as a baseline for later comparison.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
label | string | Label for saved baseline |
save | boolean | Save snapshot as a baseline JSON file |
adb_thermal_compare
Compare current thermal/power state against a saved baseline. Reports temperature changes per zone, CPU frequency shifts, and battery drain rate differences.
| Parameter | Type | Description |
|---|---|---|
baselinePath | string | Path to baseline JSON. If omitted, uses the most recent baseline for the device. |
device | string | Device serial |
adb_battery_drain
Measure battery drain rate over a specified duration. Takes initial and final readings and calculates mA draw, mW power consumption, and estimated percentage per hour. Useful for profiling power impact of specific operations.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
durationMs | number | Measurement duration in ms (3s-60s, default 10s) |
packageName | string | If specified, show battery stats for this package (requires root for detailed stats) |
adb_network_scan
Scan the local network for Android devices with ADB enabled over WiFi/TCP. Probes common ADB ports (5555-5558) on hosts from the ARP table and optionally a custom IP range. Discovered devices can be connected with adb_connect.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial (used to determine the local subnet if no ipRange given) |
ipRange | string | IP range to scan (e.g., '192.168.1.1-254'). If omitted, scans hosts from the ARP table only. |
ports | array | Custom ports to probe (default: [5555, 5554, 5556, 5557, 5558], max 20) |
timeoutMs | number | Connection timeout per host in ms (500-10000, default 2000) |
adb_network_device_ip
Get the WiFi IP address of a connected device. Useful for switching from USB to wireless debugging without needing to find the IP manually on the device.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_network_auto_connect
Discover and automatically connect to ADB devices on the local network. Combines network scanning with adb connect in one step. Probes a single port (default 5555) on each candidate; if you need to cover the full ADB port range (5555-5558) use adb_network_scan first, then adb_connect with the discovered host:port.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial (used to determine local subnet for ARP-based discovery) |
ipRange | string | IP range to scan (e.g., '192.168.1.1-254') |
port | number | ADB port to probe and connect (1-65535, default 5555) |
adb_app_route_context
Show the effective Android routing context for one installed app by correlating its UID with ip rules, route tables, network policy, VPN, and default-network state. Read-only; does not alter routes or app policy.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Installed Android package to inspect |
device | string | Device serial |
includeConnectivitySummary | boolean | Include a privacy-conscious connectivity/VPN/default-network summary |
adb_sqlite_inspect
Safely inspect a Room or SQLite database inside an installed app. Lists package databases, shows schema, or executes one validated read-only query. Requires a debuggable app (run-as) or root; queries a bounded private snapshot with device sqlite3 or an isolated host SQLite process.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Installed Android package whose databases directory may be inspected |
access | string | Access method. auto prefers run-as and falls back to root. |
action | string | List databases, show sqlite_master schema, or run a read-only query |
database | string | Database filename inside the package databases directory (no path separators) |
device | string | Device serial |
maxRows | integer | Maximum rows returned for SELECT/WITH queries (1-1000, default 100) |
query | string | One read-only SELECT, WITH, EXPLAIN, or allowlisted PRAGMA statement |
adb_wear_datalayer_preflight
Run a read-only Wear OS Data Layer preflight across a connected phone and watch. Checks device roles, Google Play services, Bluetooth, optional app packages, companion association presence, and Data Layer service signals without exposing pairing identifiers.
| Parameter | Type | Description |
|---|---|---|
phoneDevice | string | Phone device serial; auto-detected when omitted |
phonePackage | string | Optional companion app package expected on the phone |
wearDevice | string | Wear device serial; auto-detected when omitted |
wearPackage | string | Optional Wear app package expected on the watch |
adb_sensor_read
Read current hardware sensor values from the device. Enumerates all available sensors from sensorservice and returns their last-known readings with timestamps. Sensor availability is device-dependent — the tool reports what's present. No root required.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by sensor category: all, accelerometer, gyroscope, magnetometer, light, barometer, proximity, gravity, linear_accel, rotation, orientation, motion, step, temperature |
device | string | Device serial |
listOnly | boolean | If true, list available sensors without reading values (faster, useful for discovery) |
adb_iio_read
Read raw hardware data from the Linux IIO (Industrial I/O) subsystem. Discovers all IIO devices and reads their current values. On Tensor/Exynos devices, this exposes per-rail power monitors (ODPM) showing real-time power consumption per SoC subsystem (CPU clusters, GPU, display, memory, TPU, GPS, etc.) — data not available through the Android sensor HAL. On other devices, may expose raw accelerometer, gyroscope, magnetometer, or ADC channels. Root required.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
listOnly | boolean | If true, list available IIO devices without reading values |
adb_wifi_firmware
WiFi chipset and firmware identification. Reports WiFi driver version, firmware version, chipset/hardware info, supported bands and standards, interface details, and dumpsys excerpts. BH7 fix: dumpsys truncation now configurable via maxLines. connection state. MAC address is opt-in only (permanent hardware identifier).
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
includeMac | boolean | Include WiFi MAC address (permanent hardware identifier — opt-in only) |
maxLines | integer | Lines of dumpsys output to inspect (50-2000, default 200). Raise for verbose vendor builds where firmware info appears late in dumpsys output. |
adb_bluetooth_firmware
Bluetooth firmware and chipset identification. Reports firmware version, BT version (4.x/5.x), chipset model, adapter state, supported profiles, LE capabilities, and bonded device count. MAC address and device name are opt-in only (permanent identifiers).
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
includeIdentifiers | boolean | Include Bluetooth MAC address and device name (permanent identifiers — opt-in only) |
maxLines | integer | Lines of dumpsys output to inspect (50-2000, default 300). Raise for verbose vendor builds. |
adb_nfc_firmware
NFC controller firmware identification. Reports controller type (NXP/Broadcom/Samsung/ST), firmware version, NCI version, supported technologies (NFC-A/B/F/V), secure element availability (eSE/UICC), and HCE (Host Card Emulation) support.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
maxLines | integer | Lines of dumpsys output to inspect (50-2000, default 200). Raise for verbose vendor builds. |
adb_gps_firmware
GNSS/GPS chipset and firmware identification. Reports GNSS hardware model (manufacturer, chip, firmware version), supported constellations (GPS, GLONASS, Galileo, BeiDou, QZSS, NavIC, SBAS), signal types with frequencies, dual-frequency (L1+L5) support, raw measurement capabilities (pseudorange access for spoofing detection), A-GPS modes (MSB/MSA — cellular-routed assisted GPS relevant to IMSI catcher research), carrier phase measurements, navigation message decoding, and SUPL server configuration.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_input_drag
Drag from one point to another on screen. Uses Android's draganddrop input command. Useful for drag-and-drop UI elements, sliders, map panning, and reorder operations.
| Parameter | Type | Description |
|---|---|---|
x1 * | integer | Start X coordinate |
x2 * | integer | End X coordinate |
y1 * | integer | Start Y coordinate |
y2 * | integer | End Y coordinate |
device | string | Device serial |
durationMs | integer | Drag duration in ms (100-10000, default 1000) |
adb_input_fling
Perform a high-velocity fling gesture. Like swipe but with a short duration to create scroll momentum on lists, launchers, and paged views. Useful for fast-scrolling through long lists, dismissing notifications, or triggering velocity-sensitive behaviors.
| Parameter | Type | Description |
|---|---|---|
x1 * | integer | Start X coordinate |
x2 * | integer | End X coordinate |
y1 * | integer | Start Y coordinate |
y2 * | integer | End Y coordinate |
device | string | Device serial |
durationMs | integer | Fling duration in ms (20-200, default 50). Shorter = more velocity |
adb_input_long_press
Long press at a point on screen. Triggers context menus, selection mode, drag handles, and other long-press behaviors. Implemented as a zero-distance swipe with configurable hold duration.
| Parameter | Type | Description |
|---|---|---|
x * | integer | X coordinate |
y * | integer | Y coordinate |
device | string | Device serial |
durationMs | integer | Hold duration in ms (300-10000, default 1500) |
adb_input_double_tap
Double tap at a point on screen. Triggers zoom, text selection, or double-tap gestures. Two rapid taps with a configurable interval.
| Parameter | Type | Description |
|---|---|---|
x * | integer | X coordinate |
y * | integer | Y coordinate |
device | string | Device serial |
intervalMs | integer | Interval between taps in ms (20-500, default 80) |
adb_input_text
Type text on the device. Handles special characters by converting spaces to %s and escaping shell metacharacters. For multi-line or complex text, consider using the clipboard tool instead.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to type on the device |
device | string | Device serial |
adb_open_url
Open a URL on the device in the default browser or handling app. Uses Android's VIEW intent action.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to open (must be a valid URL with scheme) |
device | string | Device serial |
adb_orientation
Get or set screen orientation. Can lock to portrait, landscape, reverse portrait, reverse landscape, or restore auto-rotate.
| Parameter | Type | Description |
|---|---|---|
action * | string | 'get' to read current orientation, 'set' to change it |
device | string | Device serial |
orientation | string | Orientation to set (required when action='set'): auto=sensor, portrait=0°, landscape=90°, reverse_portrait=180°, reverse_landscape=270° |
adb_clipboard
Read or write the device clipboard. Write mode sets the clipboard content; read mode retrieves it. Clipboard access requires Android 10+ and may need the app to be in foreground on Android 12+.
| Parameter | Type | Description |
|---|---|---|
action * | string | 'read' to get clipboard, 'write' to set it |
device | string | Device serial |
text | string | Text to write to clipboard (required when action='write') |
adb_tap_element
Find a UI element by text, resource-id, or content-description, then tap its center. Combines UI hierarchy search with input tap in one atomic operation. More reliable than coordinate-based taps for dynamic layouts.
| Parameter | Type | Description |
|---|---|---|
contentDesc | string | Match elements with this content-description (partial, case-insensitive) |
device | string | Device serial |
index | integer | Which match to tap if multiple found (0 = first match, default) |
resourceId | string | Match elements with this resource-id (partial match) |
text | string | Match elements containing this text (case-insensitive) |
adb_wait_element
Wait for a UI element to appear or disappear. Polls the UI hierarchy at regular intervals until the condition is met or timeout expires. Useful for waiting after navigation, animations, or async content loading.
| Parameter | Type | Description |
|---|---|---|
condition | string | Wait for element to 'appear' (default) or 'disappear' |
contentDesc | string | Match elements with this content-description (partial, case-insensitive) |
device | string | Device serial |
pollMs | integer | Polling interval in ms (200-5000, default 500) |
resourceId | string | Match elements with this resource-id (partial match) |
text | string | Match elements containing this text (case-insensitive) |
timeoutMs | integer | Maximum wait time in ms (1s-60s, default 10s) |
adb_wait_stable
Wait for the UI to stabilize. Polls the UI hierarchy and waits until consecutive dumps produce the same element count and structure. Useful after screen transitions, animations, or content loading before interacting with elements.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
pollMs | integer | Polling interval in ms (200-5000, default 500) |
stableCount | integer | Number of consecutive identical dumps required (2-10, default 2) |
timeoutMs | integer | Maximum wait time in ms (1s-60s, default 10s) |
adb_scroll_until
Scroll the screen repeatedly until a target element is found. Performs a swipe gesture, then checks the UI hierarchy for the target. Repeats until found or max iterations reached. Useful for finding elements in long lists or scrollable content.
| Parameter | Type | Description |
|---|---|---|
contentDesc | string | Match elements with this content-description (partial, case-insensitive) |
device | string | Device serial |
direction | string | Scroll direction (default 'down' = content moves up, revealing lower items) |
maxScrolls | integer | Maximum scroll attempts (1-50, default 10) |
resourceId | string | Match elements with this resource-id (partial match) |
tapWhenFound | boolean | Automatically tap the element when found |
text | string | Match elements containing this text (case-insensitive) |
adb_screenshot_compressed
Take a screenshot and pull the full-resolution PNG, plus metadata for client-side compression. Returns local file path, dimensions, file size, and a ready-to-run imagemagick command for converting to a smaller JPEG. (Android doesn't ship imagemagick, so the actual compression is post-processing — this tool sets up everything you need.)
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
filename | string | Output filename (default: screenshot_compressed_<timestamp>.jpg) |
quality | integer | JPEG quality (10-100, default 50). Lower = smaller file, more artifacts |
scale | number | Scale factor (0.1-1.0, default 0.5). 0.5 = half resolution |
adb_batch_actions
Execute multiple input actions in a single tool call. Reduces ADB round-trips for multi-step UI interactions. Each action runs sequentially with an optional delay between them. Supported action types: tap, swipe, fling, long_press, double_tap, keyevent, text, drag, pinch, back, home, sleep.
| Parameter | Type | Description |
|---|---|---|
actions * | array | Array of actions to execute (1-50) |
delayMs | integer | Delay between actions in ms (0-5000, default 100) |
device | string | Device serial |
stopOnError | boolean | Stop execution if any action fails (default true) |
adb_screen_size
Get the screen resolution and display density. Returns physical width, height (in pixels), and DPI density. Useful for calculating tap/swipe coordinates and understanding the UI layout grid.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_device_state
Get a combined device state snapshot in one call: battery level/status, network connectivity, screen on/off, foreground activity, and orientation. Useful as a pre-check before UI automation or as a quick device health summary.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
adb_notifications
Read active notifications on the device. Parses the notification manager dump to extract package, title, text, importance, channel, and flags for each notification. Useful for verifying push notification delivery, monitoring notification state, and testing notification-related features.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial |
filter | string | Filter by package name (partial match, case-insensitive) |
maxResults | integer | Maximum notifications to return (1-50, default 20) |
adb_input_pinch
Perform a multi-touch pinch (zoom out) or spread (zoom in) gesture. Two fingers move symmetrically toward or away from a center point. Uses parallel swipe injection by default (universal, no root); when root is available, can use raw sendevent for true multi-touch MT protocol injection. The 'auto' method selects the best available approach.
| Parameter | Type | Description |
|---|---|---|
cx * | integer | Center X coordinate of the pinch gesture |
cy * | integer | Center Y coordinate of the pinch gesture |
endRadius * | integer | Ending distance (px) from center to each finger. Smaller than startRadius = pinch/zoom-out, larger = spread/zoom-in |
startRadius * | integer | Starting distance (px) from center to each finger |
angle | number | Angle in degrees for the pinch axis (0=horizontal, 90=vertical, default 90) |
device | string | Device serial |
durationMs | integer | Gesture duration in ms (100-5000, default 500) |
method | string | Injection method: 'auto' (sendevent if root, else swipe), 'swipe' (parallel swipes, universal), 'sendevent' (raw MT protocol, requires root) |
steps | integer | Interpolation steps for sendevent method (5-60, default 20). More steps = smoother gesture |
adb_result_list
List all result handles currently stored in this session. Returns metadata for each: tool, name, size, creation/expiry/last-access times. Use the URIs (`result://<tool>/<name>`) with adb_result_get or by reading them as MCP Resources to retrieve stored content. Handles are scoped per-auth-token and survive server restart within their TTL.
adb_result_get
Retrieve the content of a stored result handle by tool name + handle name. Returns the original content blocks as the source tool produced them. Updates the handle's last-accessed time. For URI-based retrieval, read `result://<tool>/<name>` as an MCP Resource instead.
| Parameter | Type | Description |
|---|---|---|
name * | string | Handle name supplied at storage time (e.g., 'initial') |
tool * | string | Source tool name (the tool that originally stored the handle, e.g., 'bugreport') |
adb_result_drop
Delete a stored result handle, or clear all handles in this session. Either provide both `tool` and `name` to drop one specific handle, or pass `all: true` to drop everything in the current namespace. Useful for freeing up the store cap proactively or removing stale data before a sensitive operation.
| Parameter | Type | Description |
|---|---|---|
all | boolean | If true, delete every handle in this namespace. tool/name must be omitted when all=true. |
name | string | Handle name (required unless all=true) |
tool | string | Source tool name (required unless all=true) |