deepadb

v1.1.7
io.github.fullread/deepadb Checked 1 day ago Published 17 days ago

Full-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.)

ParameterTypeDescription
devicestringDevice serial (auto-selects if only one connected)

adb_getprop

Get a specific Android system property, or all properties if no key given

ParameterTypeDescription
devicestringDevice serial
keystringProperty key (e.g., 'ro.build.version.sdk'). Omit for all.

adb_shell

Execute a shell command on the Android device. Returns stdout and stderr.

ParameterTypeDescription
command *stringShell command to execute on the device
devicestringDevice serial
timeoutnumberTimeout in milliseconds (1s-10min)

adb_root_shell

Execute a command as root via su. Requires rooted device.

ParameterTypeDescription
command *stringCommand to run as root
devicestringDevice serial

adb_install

Install an APK on the device. Provide the full local path to the APK file.

ParameterTypeDescription
apkPath *stringLocal filesystem path to the APK file
devicestringDevice serial
downgradebooleanAllow version downgrade (-d flag)
replacebooleanReplace existing app (-r flag)

adb_uninstall

Uninstall a package from the device

ParameterTypeDescription
packageName *stringPackage name (e.g., 'com.example.app')
devicestringDevice serial
keepDatabooleanKeep app data and cache (-k flag)

adb_list_packages

List installed packages. Supports filtering by name.

ParameterTypeDescription
devicestringDevice serial
filterstringFilter packages containing this string
typestringShow all, system-only, or third-party-only packages

adb_package_info

Get detailed info about an installed package (version, permissions, paths)

ParameterTypeDescription
packageName *stringPackage name (e.g., 'com.example.app')
devicestringDevice 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.

ParameterTypeDescription
packageName *stringPackage name (e.g., 'com.example.app')
confirmstringMust equal packageName to confirm the destructive operation. AP5 fix: prevents accidental data loss from misclicks/mistyped invocations.
devicestringDevice serial

adb_grant_permission

Grant a runtime permission to a package

ParameterTypeDescription
packageName *stringPackage name (e.g., 'com.example.app')
permission *stringFull permission string (e.g., 'android.permission.READ_PHONE_STATE')
devicestringDevice serial

adb_revoke_permission

Revoke a runtime permission from a package. Useful for resetting permission state to test first-run flows or denial handling.

ParameterTypeDescription
packageName *stringPackage name (e.g., 'com.example.app')
permission *stringFull permission string (e.g., 'android.permission.CAMERA')
devicestringDevice 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.

ParameterTypeDescription
packageName *stringPackage name (e.g., 'com.example.app')
devicestringDevice serial
filterstringShow all permissions, only granted, or only denied (default: all)

adb_force_stop

Force-stop an app immediately. The most common debugging action.

ParameterTypeDescription
packageName *stringPackage name (e.g., 'com.example.app')
devicestringDevice serial

adb_start_app

Launch an app by package name (resolves and starts the default launcher activity)

ParameterTypeDescription
packageName *stringPackage name (e.g., 'com.example.app')
devicestringDevice serial

adb_restart_app

Force-stop then re-launch an app. The most frequent debugging workflow in a single call.

ParameterTypeDescription
packageName *stringPackage name (e.g., 'com.example.app')
delayMsnumberDelay between stop and start in ms (0-10000, default 500)
devicestringDevice serial

adb_resolve_intents

Discover all activities, services, and receivers registered by a package with their intent filters

ParameterTypeDescription
packageName *stringPackage name to query
devicestringDevice 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.

ParameterTypeDescription
localPath *stringLocal file path to push
remotePath *stringDestination path on device
devicestringDevice serial

adb_pull

Pull a file from the device to local filesystem

ParameterTypeDescription
remotePath *stringFile path on the device
devicestringDevice serial
localPathstringLocal destination (defaults to temp dir)

adb_ls

List files and directories on the device

ParameterTypeDescription
detailsbooleanShow detailed listing (ls -la)
devicestringDevice serial
pathstringDirectory path on device

adb_cat

Read a text file from the device

ParameterTypeDescription
path *stringFile path on device
devicestringDevice serial
maxLinesnumberMaximum 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.

ParameterTypeDescription
content *stringFile content to write
path *stringDestination file path on device
appendbooleanAppend to existing file instead of overwriting
devicestringDevice serial
rootbooleanUse 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.

ParameterTypeDescription
name *stringFilename pattern (glob: *.apk, config.*, *test*)
devicestringDevice serial
maxDepthnumberMaximum directory depth to search (1-50, default 10)
maxResultsnumberMaximum results to return (1-10000, default 500)
result_handlestringOptional. 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_ttlintegerOptional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.
rootbooleanUse root shell for system paths
searchPathstringStarting directory for search
typestringFilter 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.

ParameterTypeDescription
path *stringFile or directory path on device
devicestringDevice serial
rootbooleanUse 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.

ParameterTypeDescription
path *stringFile path on device
algorithmstringHash algorithm (default: sha256)
devicestringDevice serial
rootbooleanUse root shell for protected paths

adb_mkdir

Create a directory on the device. Supports -p flag for creating parent directories.

ParameterTypeDescription
path *stringDirectory path to create
devicestringDevice serial
parentsbooleanCreate parent directories as needed (-p flag, default true)
rootbooleanUse 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.

ParameterTypeDescription
path *stringFile or directory path to delete
devicestringDevice serial
recursivebooleanDelete directory recursively (-rf). Depth-protected.
rootbooleanUse 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.

ParameterTypeDescription
destination *stringDestination path
source *stringSource file or directory path
devicestringDevice serial
rootbooleanUse 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.

ParameterTypeDescription
destination *stringDestination path
source *stringSource file or directory path
devicestringDevice serial
recursivebooleanCopy directories recursively (-r)
rootbooleanUse 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.

ParameterTypeDescription
mode *stringOctal permission mode (e.g., '755', '644', '0600')
path *stringFile or directory path
devicestringDevice serial
recursivebooleanApply recursively to directory contents. Depth-protected.
rootbooleanUse 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.

ParameterTypeDescription
path *stringFile path on device
devicestringDevice serial
rootbooleanUse root shell for protected paths
timestampstringExplicit 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.

ParameterTypeDescription
path *stringFile or directory path to inspect
devicestringDevice serial
rootbooleanUse 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.

ParameterTypeDescription
owner *stringOwner in user:group format (e.g., '0:0', 'system:system', '10150:10150')
path *stringFile or directory path
devicestringDevice serial
recursivebooleanApply 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.

ParameterTypeDescription
path *stringFile or directory path to search
pattern *stringText pattern to search for
devicestringDevice serial
filesWithMatchesbooleanShow only filenames that contain matches, not the matching lines
fixedStringbooleanUse fixed-string matching (default: true, safer). Set false for regex.
ignoreCasebooleanCase-insensitive search (default: true)
maxDepthnumberMaximum directory depth for recursive search (1-50, default 10)
maxResultsnumberMaximum matching lines to return (1-10000, default 500)
recursivebooleanSearch directories recursively
result_handlestringOptional. 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_ttlintegerOptional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.
rootbooleanUse 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.

ParameterTypeDescription
find *stringText to find (literal string, not regex)
path *stringFile path on device
replace *stringReplacement text
backupbooleanCreate a .bak backup before modifying
devicestringDevice serial
globalbooleanReplace all occurrences (default: true). Set false for first-only.
lineNumbernumberRestrict replacement to a specific line number
rootbooleanUse root shell for protected paths

adb_logcat

Capture a logcat snapshot. Supports tag filtering, priority levels, and grep patterns.

ParameterTypeDescription
bufferstringLogcat buffer to read from
devicestringDevice serial
grepstringGrep filter applied to output (literal string match, case-insensitive)
linesnumberNumber of recent lines to capture (1-10000)
prioritystringMinimum priority: V(erbose), D(ebug), I(nfo), W(arn), E(rror), F(atal)
result_handlestringOptional. 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_ttlintegerOptional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.
tagstringFilter by tag (e.g., 'ActivityManager' or 'MyApp')

adb_logcat_clear

Clear all logcat buffers on the device

ParameterTypeDescription
devicestringDevice serial

adb_logcat_crash

Get recent crash logs from the crash buffer

ParameterTypeDescription
devicestringDevice serial
linesnumberNumber of lines (1-10000)

adb_dumpsys

Run dumpsys for a specific service. Use 'list' as the service to see all available services.

ParameterTypeDescription
service *stringService name (e.g., 'battery', 'telephony.registry', 'activity') or 'list'
argsstringAdditional arguments passed to dumpsys
devicestringDevice serial
result_handlestringOptional. 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_ttlintegerOptional. 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.

ParameterTypeDescription
devicestringDevice serial

adb_battery

Get battery status, level, temperature, and charging info

ParameterTypeDescription
devicestringDevice serial

adb_network

Get network connectivity info including WiFi, cellular, and active connections

ParameterTypeDescription
devicestringDevice serial

adb_top

Get current CPU and memory usage snapshot

ParameterTypeDescription
countnumberNumber of iterations (1-100, 1 = snapshot)
devicestringDevice serial

adb_perf_snapshot

Capture a performance snapshot for a package: memory usage, frame stats, and CPU info in one call.

ParameterTypeDescription
packageName *stringPackage name to profile (e.g., 'com.example.app')
devicestringDevice serial

adb_bugreport

Capture a full bug report zip (device state, logs, dumpsys, system info). Returns the local file path.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
devicestringDevice serial
maxEntriesintegerMaximum entries to return per type (1-20, default 5)
typestringType 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.

ParameterTypeDescription
target *stringProcess PID (number) or package name (e.g., com.example.app)
devicestringDevice serial
filenamestringOutput filename (default: heap_<target>_<timestamp>.hprof)

adb_screencap

Take a screenshot and save to local filesystem. Returns the file path.

ParameterTypeDescription
devicestringDevice serial
filenamestringOutput filename (default: screenshot_<timestamp>.png)

adb_current_activity

Get the currently focused activity and window stack

ParameterTypeDescription
devicestringDevice serial

adb_input

Send input events to the device (tap, swipe, text, keyevent)

ParameterTypeDescription
args *stringArguments: tap='x y', swipe='x1 y1 x2 y2 [duration_ms]', text='string', keyevent='KEYCODE_HOME'
type *stringInput 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…
devicestringDevice serial

adb_start_activity

Start an activity or app by intent or component name

ParameterTypeDescription
intent *stringIntent or component (e.g., 'com.example/.MainActivity' or '-a android.intent.action.VIEW -d https://example.com')
devicestringDevice 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.

ParameterTypeDescription
clickableOnlybooleanOnly show clickable/interactive elements
devicestringDevice serial
formatstringOutput 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.

ParameterTypeDescription
contentDescstringMatch elements with this content-description (partial, case-insensitive)
devicestringDevice serial
resourceIdstringMatch elements with this resource-id (partial match)
textstringMatch 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.

ParameterTypeDescription
clickableOnlybooleanOnly annotate clickable/scrollable elements (default true — reduces visual noise)
devicestringDevice serial
filenamestringOutput 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.

ParameterTypeDescription
clickableOnlybooleanOnly include clickable/scrollable elements in TSV output (default true)
devicestringDevice serial

adb_gradle

Run a Gradle task in an Android project directory

ParameterTypeDescription
projectPath *stringPath to the Android project root (containing gradlew)
task *stringGradle task (e.g., 'assembleDebug', 'installDebug', 'clean')
argsarrayAdditional 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…
timeoutintegerBuild 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)

ParameterTypeDescription
projectPath *stringPath to the Android project root
devicestringDevice serial
timeoutintegerBuild+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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
devicestringDevice serial to audit

adb_pair

Pair with a device over WiFi using the pairing code from Developer Options → Wireless debugging → Pair device

ParameterTypeDescription
code *string6-digit pairing code shown on the device
host *stringDevice 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.

ParameterTypeDescription
host *stringDevice 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

ParameterTypeDescription
hoststringDevice 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.

ParameterTypeDescription
devicestringDevice serial (must be USB-connected)
portnumberTCP port for ADB (1-65535, default 5555)

adb_airplane_mode

Toggle airplane mode on/off. Useful for resetting cellular registration during radio testing.

ParameterTypeDescription
enabled *booleantrue = enable airplane mode, false = disable
devicestringDevice serial

adb_wifi

Enable or disable WiFi

ParameterTypeDescription
enabled *booleantrue = enable WiFi, false = disable
devicestringDevice serial

adb_mobile_data

Enable or disable mobile data

ParameterTypeDescription
enabled *booleantrue = enable mobile data, false = disable
devicestringDevice serial

adb_location

Enable or disable location services

ParameterTypeDescription
mode *stringLocation mode: off, sensors (GPS only), battery (network only), high (GPS + network)
devicestringDevice 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.

ParameterTypeDescription
action *stringScreen 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)
devicestringDevice serial
pinstringPIN/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.

ParameterTypeDescription
delaySecondsnumberSeconds to keep airplane mode on (1-60, default 3)
devicestringDevice serial

adb_settings_get

Read an Android settings value from any namespace (system, secure, global)

ParameterTypeDescription
key *stringSetting key (e.g., 'screen_brightness', 'location_mode', 'airplane_mode_on')
namespace *stringSettings namespace
devicestringDevice serial

adb_settings_put

Write an Android settings value to any namespace (system, secure, global)

ParameterTypeDescription
key *stringSetting 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 *stringSettings namespace
value *stringValue 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.
devicestringDevice serial

adb_reboot

Reboot the device. Supports normal, recovery, and bootloader modes.

ParameterTypeDescription
devicestringDevice serial
modestringReboot 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.

ParameterTypeDescription
bufferSizenumberMax lines to keep in ring buffer (100-50000, default 2000)
devicestringDevice serial
prioritystringMinimum priority level
tagstringFilter 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.

ParameterTypeDescription
session *stringSession ID from adb_logcat_start (e.g., 'watch_1')
maxLinesnumberMax lines to return per poll (1-10000)
result_handlestringOptional. 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_ttlintegerOptional. 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

ParameterTypeDescription
session *stringSession 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.

ParameterTypeDescription
local *stringLocal (host) spec, e.g., 'tcp:8080'. AF2 fix: format-validated.
remote *stringRemote (device) spec, e.g., 'tcp:8080' or 'localabstract:app_socket'. AF2 fix: format-validated.
devicestringDevice 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.

ParameterTypeDescription
local *stringLocal (host) spec, e.g., 'tcp:3000'. AF2 fix: format-validated.
remote *stringRemote (device) spec, e.g., 'tcp:3000'. AF2 fix: format-validated.
devicestringDevice serial

adb_forward_list

List all active port forwards and reverse forwards

ParameterTypeDescription
devicestringDevice serial (omit for all devices)

adb_forward_remove

Remove a port forward (host → device), or all forwards. Use after testing to clean up.

ParameterTypeDescription
devicestringDevice serial
localstringLocal 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.

ParameterTypeDescription
devicestringDevice serial
remotestringRemote 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.

ParameterTypeDescription
deviceSpec *stringDevice-side spec, e.g., 'tcp:3000' or 'localabstract:app_socket'
direction *string'forward' (host → device) or 'reverse' (device → host)
devicestringDevice serial
hostSpecstringHost-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.

ParameterTypeDescription
devicestringFilter 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.

ParameterTypeDescription
id *stringTunnel 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.

ParameterTypeDescription
devicestringDevice serial
maxDurationnumberMaximum 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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
avdName *stringAVD name (from adb_avd_list)
coldBootbooleanForce cold boot (-no-snapshot-load)
gpuModestringGPU acceleration mode
headlessbooleanRun without GUI window (-no-window)

adb_emulator_stop

Stop a running emulator. Uses 'adb emu kill' for graceful shutdown.

ParameterTypeDescription
avdNamestringAVD name to stop. If omitted, lists running emulators.
devicestringEmulator 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.

ParameterTypeDescription
installbooleanIf 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.

ParameterTypeDescription
action *stringAction to perform
formatstringImage format. qcow2 is recommended (sparse, snapshots). raw for maximum I/O performance.
namestringImage name (for create/delete). Alphanumeric, hyphens, underscores only.
sizeMbnumberImage 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.

ParameterTypeDescription
image *stringDisk image filename (from adb_qemu_images) or absolute path
name *stringVM name (used to track and stop the VM)
adbPortnumberHost port to forward to guest ADB (port 5555). Default 5556.
appendstringKernel command line arguments (for Android boot).
cpusnumberVirtual CPUs. Auto-detected if omitted (total cores minus 1). Capped at safe limit.
displaystringDisplay output. 'none' for headless (default). 'vnc' starts a VNC server on port 5900.
initrdstringPath to initrd/ramdisk image (for Android boot).
kernelstringPath to kernel image (for Android boot). If omitted, QEMU uses the disk image's bootloader.
memoryMbnumberRAM 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.

ParameterTypeDescription
forcebooleanUse SIGKILL instead of SIGTERM for immediate termination.
namestringVM 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.

ParameterTypeDescription
name *stringVM name to connect to (must be running)
timeoutnumberConnection 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.

ParameterTypeDescription
name *stringVM 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.

ParameterTypeDescription
command *stringShell command to execute on the guest
name *stringVM name (must be connected via adb_qemu_connect)
timeoutnumberCommand 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.

ParameterTypeDescription
name *stringTest session name (e.g., 'login_flow', 'threat_detection')
devicestringDevice 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.

ParameterTypeDescription
description *stringDescription of what this step tests or verifies
captureLogcatbooleanCapture logcat since last step
captureScreenshotbooleanTake 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.

ParameterTypeDescription
command *stringShell command to execute on each device
devicesarrayDevice serials to target (omit for all online devices)
timeoutnumberTimeout per device in milliseconds (1s-10min)

adb_multi_install

Install an APK on multiple (or all) connected devices in parallel.

ParameterTypeDescription
apkPath *stringLocal filesystem path to the APK file
devicesarrayDevice serials (omit for all online devices)
replacebooleanReplace existing app (-r)

adb_multi_compare

Run a command on all devices and compare outputs side by side. Highlights differences across devices.

ParameterTypeDescription
command *stringShell command to compare across devices
devicesarrayDevice 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.

ParameterTypeDescription
commandsarrayCustom checks to run (max 50). Each has a label and command.
devicesarrayDevice serials to target (omit for all online devices)
profilestringPredefined test profile to run. 'full' runs all profiles.
timeoutnumberTimeout 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.

ParameterTypeDescription
devicestringDevice serial
namestringSnapshot 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.

ParameterTypeDescription
snapshotPath *stringPath to the saved snapshot JSON file
devicestringDevice 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.

ParameterTypeDescription
snapshotPath *stringPath to the saved snapshot JSON file
devicestringDevice serial
namespacestringWhich 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.

ParameterTypeDescription
devicestringDevice serial
filterstringtcpdump filter expression (e.g., 'port 443', 'host 10.0.0.1')
interfacestringNetwork interface to capture (default: 'any')
maxPacketsnumberStop 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.

ParameterTypeDescription
devicestringDevice serial

adb_network_connections

Show active network connections on the device (TCP/UDP). Similar to netstat — shows established connections, listening ports, and connection states.

ParameterTypeDescription
devicestringDevice serial
protocolstringFilter 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.

ParameterTypeDescription
devicestringDevice serial
timeoutSecondsnumberMaximum 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.

ParameterTypeDescription
devicestringDevice serial

adb_ci_run_tests

Run Android instrumented tests (androidTest) via `am instrument` and capture results. Returns structured pass/fail output.

ParameterTypeDescription
testPackage *stringTest package (e.g., 'com.example.app.test')
devicestringDevice serial
runnerstringTest runner class (default: AndroidX JUnit runner)
testClassstringSpecific test class to run (optional)
testMethodstringSpecific test method (requires testClass)
timeoutnumberTimeout 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.

ParameterTypeDescription
devicestringDevice serial
includeImeibooleanInclude IMEI in output (sensitive permanent device identifier — opt-in only)
result_handlestringOptional. 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_ttlintegerOptional. 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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
devicestringDevice serial

adb_carrier_config

Dump carrier configuration values. Useful for verifying carrier settings, detecting configuration anomalies, and inspecting APN configurations.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
devicestringDevice serial
grepstringAdditional grep filter applied to all sources
linesnumberMax 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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
belowMinOnlybooleanOnly show elements below the 48dp minimum
devicestringDevice 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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
packageName *stringPackage name to profile
devicestringDevice serial
labelstringLabel 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.

ParameterTypeDescription
baselinePath *stringPath to the saved baseline JSON file
cpuThresholdnumberCPU regression threshold in percent (0-1000, default 50%)
devicestringDevice serial
jankThresholdnumberJank rate regression threshold in percent (0-1000, default 25%)
memoryThresholdnumberMemory 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.

ParameterTypeDescription
packageNamestringFilter 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.

ParameterTypeDescription
appApk *stringPath to the app APK file
testApk *stringPath to the test/instrumentation APK file
devicesarrayDevice specs as 'model=DEVICE,version=API' (e.g., 'model=bluejay,version=33'). Omit for default device.
execTimeoutMsintegerLocal 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.
resultsBucketstringGCS bucket for results (omit for default)
testTargetsstringSpecific test class or method (e.g., 'class com.example.MyTest')
timeoutstringTest 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.

ParameterTypeDescription
matrixIdstringTest 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.

ParameterTypeDescription
typestringList available device models or Android API versions

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.

ParameterTypeDescription
name *stringPlugin name from the registry
forcebooleanOverwrite 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.

ParameterTypeDescription
devicestringDevice serial
includeIdentitybooleanAfter a successful AT handshake, also send the read-only ATI identity query
portstringOptional Shannon device node override (for example /dev/umts_router)
timeoutintegerHandshake 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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
command *stringAT command to send (e.g., 'AT+CSQ', 'ATI', 'AT+COPS?')
devicestringDevice serial
forcebooleanBypass dangerous command safety check
portstringModem device node (e.g., '/dev/umts_router'). If omitted, auto-detects.
timeoutnumberResponse 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.

ParameterTypeDescription
commands *arrayArray of AT commands to send in order (max 50)
delayMsnumberDelay between commands in ms (0-10000, default 500)
devicestringDevice serial
forcebooleanBypass dangerous command safety checks
portstringModem device node (auto-detects if omitted)
timeoutnumberTimeout 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.

ParameterTypeDescription
devicestringDevice serial
portstringModem 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.

ParameterTypeDescription
devicestringDevice serial
portstringModem device node (auto-detects if omitted)
timeoutnumberResponse 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.

ParameterTypeDescription
name *stringBaseline name (e.g., 'home_screen', 'login_page', 'threat_alert')
devicestringDevice serial
result_handlestringOptional. 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_ttlintegerOptional. 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.

ParameterTypeDescription
baseline *stringBaseline name to compare against (from adb_screenshot_baseline)
devicestringDevice serial
result_handlestringOptional. 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_ttlintegerOptional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.
tolerancePercentnumberPixel 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).

ParameterTypeDescription
result_handlestringOptional. 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_ttlintegerOptional. 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.

ParameterTypeDescription
workflow *stringWorkflow JSON string, or the name of a saved workflow file
devicestringDevice serial
dryRunbooleanValidate and show execution plan without running
variablesobjectOverride workflow variables (merged with defaults)

adb_workflow_validate

Validate a workflow JSON definition without executing it. Reports structural errors and shows the execution plan.

ParameterTypeDescription
workflow *stringWorkflow 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).

ParameterTypeDescription
apkPaths *arrayArray of local paths to split APK files (base + config splits)
allowDowngradebooleanAllow version downgrade (-d)
devicestringDevice serial
replacebooleanReplace 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).

ParameterTypeDescription
packageName *stringPackage name (e.g., 'com.example.app')
devicestringDevice 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.

ParameterTypeDescription
packageName *stringPackage name to extract
devicestringDevice serial
outputDirstringLocal 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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
bitratestringVideo bitrate (e.g., '4M', '8M', '2M'). AK2 fix: format-validated at schema layer.
devicestringDevice serial
headlessbooleanNo-display mode — useful with recording. Omits the scrcpy window.
maxFpsnumberMaximum frame rate (1-120, default 30)
maxSizenumberMax dimension in pixels (0 = no limit, max 4096)
recordstringRecord to a local file path (e.g., 'mirror.mp4')
stayAwakebooleanKeep device awake while mirroring
turnScreenOffbooleanTurn device screen off during mirroring (saves battery)

adb_mirror_stop

Stop an active scrcpy mirroring session for a device.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
packageName *stringPackage name to monitor during test (used for logcat filtering and crash detection)
devicestringDevice serial
returnToStartbooleanPress Back after each tap to return to the starting screen
screenshotAfterEachbooleanTake 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.

ParameterTypeDescription
packageName *stringPackage name to analyze
devicestringDevice serial

adb_test_gen_save

Save a generated workflow JSON to the workflows directory for later execution with adb_workflow_run.

ParameterTypeDescription
name *stringWorkflow name (used as filename)
workflow *stringWorkflow 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.

ParameterTypeDescription
devicestringDevice serial
labelstringLabel 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.

ParameterTypeDescription
devicestringDevice serial
fingerprintPathstringPath 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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
bufferSizenumberMax messages to keep in ring buffer (100-50000, default 5000)
devicestringDevice serial
includeKernelbooleanAlso 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).

ParameterTypeDescription
session *stringSession ID from adb_ril_start (e.g., 'ril_1')
categorystringFilter by category: registration, cell_info, signal, network, security, handover, data, radio_state, sms, nas, other
maxMessagesnumberMax messages to return per poll (1-10000)
rawbooleanReturn raw logcat lines instead of parsed messages

adb_ril_stop

Stop a RIL capture session. Shows a summary of captured message categories.

ParameterTypeDescription
session *stringSession 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.

ParameterTypeDescription
devicestringDevice serial
savebooleanAutomatically 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.

ParameterTypeDescription
name *stringProfile name (used as filename)
profile *stringProfile 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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
devicestringDevice serial (used when 'from' or 'to' is 'current', or for auto-selecting fingerprints)
fromstringPath to 'from' fingerprint JSON (or 'current' to use live device state). Defaults to the second-most-recent fingerprint.
result_handlestringOptional. 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_ttlintegerOptional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.
tostringPath 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.

ParameterTypeDescription
devicestringDevice serial (filters fingerprints to this device)

adb_market_install

Download and install a workflow from the marketplace. Saves to the workflows directory for immediate use with adb_workflow_run.

ParameterTypeDescription
name *stringWorkflow name from the marketplace
forcebooleanOverwrite 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.

ParameterTypeDescription
workflow *stringName of the local workflow to export (from adb_workflow_list)
authorstringAuthor name to include in metadata
tagsarrayTags for discovery (e.g., ['testing', 'diagnostics'])
versionstringVersion 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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
devicestringDevice serial
linesnumberMax denial entries to return (1-1000, default 50)
processstringFilter 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.

ParameterTypeDescription
packageName *stringPackage 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.
devicestringDevice 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.

ParameterTypeDescription
devicestringDevice serial
labelstringLabel for saved baseline
savebooleanSave 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.

ParameterTypeDescription
baselinePathstringPath to baseline JSON. If omitted, uses the most recent baseline for the device.
devicestringDevice 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.

ParameterTypeDescription
devicestringDevice serial
durationMsnumberMeasurement duration in ms (3s-60s, default 10s)
packageNamestringIf 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.

ParameterTypeDescription
devicestringDevice serial (used to determine the local subnet if no ipRange given)
ipRangestringIP range to scan (e.g., '192.168.1.1-254'). If omitted, scans hosts from the ARP table only.
portsarrayCustom ports to probe (default: [5555, 5554, 5556, 5557, 5558], max 20)
timeoutMsnumberConnection 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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
devicestringDevice serial (used to determine local subnet for ARP-based discovery)
ipRangestringIP range to scan (e.g., '192.168.1.1-254')
portnumberADB 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.

ParameterTypeDescription
packageName *stringInstalled Android package to inspect
devicestringDevice serial
includeConnectivitySummarybooleanInclude 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.

ParameterTypeDescription
packageName *stringInstalled Android package whose databases directory may be inspected
accessstringAccess method. auto prefers run-as and falls back to root.
actionstringList databases, show sqlite_master schema, or run a read-only query
databasestringDatabase filename inside the package databases directory (no path separators)
devicestringDevice serial
maxRowsintegerMaximum rows returned for SELECT/WITH queries (1-1000, default 100)
querystringOne 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.

ParameterTypeDescription
phoneDevicestringPhone device serial; auto-detected when omitted
phonePackagestringOptional companion app package expected on the phone
wearDevicestringWear device serial; auto-detected when omitted
wearPackagestringOptional 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.

ParameterTypeDescription
categorystringFilter by sensor category: all, accelerometer, gyroscope, magnetometer, light, barometer, proximity, gravity, linear_accel, rotation, orientation, motion, step, temperature
devicestringDevice serial
listOnlybooleanIf 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.

ParameterTypeDescription
devicestringDevice serial
listOnlybooleanIf 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).

ParameterTypeDescription
devicestringDevice serial
includeMacbooleanInclude WiFi MAC address (permanent hardware identifier — opt-in only)
maxLinesintegerLines 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).

ParameterTypeDescription
devicestringDevice serial
includeIdentifiersbooleanInclude Bluetooth MAC address and device name (permanent identifiers — opt-in only)
maxLinesintegerLines 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.

ParameterTypeDescription
devicestringDevice serial
maxLinesintegerLines 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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
x1 *integerStart X coordinate
x2 *integerEnd X coordinate
y1 *integerStart Y coordinate
y2 *integerEnd Y coordinate
devicestringDevice serial
durationMsintegerDrag 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.

ParameterTypeDescription
x1 *integerStart X coordinate
x2 *integerEnd X coordinate
y1 *integerStart Y coordinate
y2 *integerEnd Y coordinate
devicestringDevice serial
durationMsintegerFling 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.

ParameterTypeDescription
x *integerX coordinate
y *integerY coordinate
devicestringDevice serial
durationMsintegerHold 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.

ParameterTypeDescription
x *integerX coordinate
y *integerY coordinate
devicestringDevice serial
intervalMsintegerInterval 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.

ParameterTypeDescription
text *stringText to type on the device
devicestringDevice serial

adb_open_url

Open a URL on the device in the default browser or handling app. Uses Android's VIEW intent action.

ParameterTypeDescription
url *stringURL to open (must be a valid URL with scheme)
devicestringDevice serial

adb_orientation

Get or set screen orientation. Can lock to portrait, landscape, reverse portrait, reverse landscape, or restore auto-rotate.

ParameterTypeDescription
action *string'get' to read current orientation, 'set' to change it
devicestringDevice serial
orientationstringOrientation 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+.

ParameterTypeDescription
action *string'read' to get clipboard, 'write' to set it
devicestringDevice serial
textstringText 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.

ParameterTypeDescription
contentDescstringMatch elements with this content-description (partial, case-insensitive)
devicestringDevice serial
indexintegerWhich match to tap if multiple found (0 = first match, default)
resourceIdstringMatch elements with this resource-id (partial match)
textstringMatch 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.

ParameterTypeDescription
conditionstringWait for element to 'appear' (default) or 'disappear'
contentDescstringMatch elements with this content-description (partial, case-insensitive)
devicestringDevice serial
pollMsintegerPolling interval in ms (200-5000, default 500)
resourceIdstringMatch elements with this resource-id (partial match)
textstringMatch elements containing this text (case-insensitive)
timeoutMsintegerMaximum 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.

ParameterTypeDescription
devicestringDevice serial
pollMsintegerPolling interval in ms (200-5000, default 500)
stableCountintegerNumber of consecutive identical dumps required (2-10, default 2)
timeoutMsintegerMaximum 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.

ParameterTypeDescription
contentDescstringMatch elements with this content-description (partial, case-insensitive)
devicestringDevice serial
directionstringScroll direction (default 'down' = content moves up, revealing lower items)
maxScrollsintegerMaximum scroll attempts (1-50, default 10)
resourceIdstringMatch elements with this resource-id (partial match)
tapWhenFoundbooleanAutomatically tap the element when found
textstringMatch 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.)

ParameterTypeDescription
devicestringDevice serial
filenamestringOutput filename (default: screenshot_compressed_<timestamp>.jpg)
qualityintegerJPEG quality (10-100, default 50). Lower = smaller file, more artifacts
scalenumberScale 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.

ParameterTypeDescription
actions *arrayArray of actions to execute (1-50)
delayMsintegerDelay between actions in ms (0-5000, default 100)
devicestringDevice serial
stopOnErrorbooleanStop 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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
devicestringDevice 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.

ParameterTypeDescription
devicestringDevice serial
filterstringFilter by package name (partial match, case-insensitive)
maxResultsintegerMaximum 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.

ParameterTypeDescription
cx *integerCenter X coordinate of the pinch gesture
cy *integerCenter Y coordinate of the pinch gesture
endRadius *integerEnding distance (px) from center to each finger. Smaller than startRadius = pinch/zoom-out, larger = spread/zoom-in
startRadius *integerStarting distance (px) from center to each finger
anglenumberAngle in degrees for the pinch axis (0=horizontal, 90=vertical, default 90)
devicestringDevice serial
durationMsintegerGesture duration in ms (100-5000, default 500)
methodstringInjection method: 'auto' (sendevent if root, else swipe), 'swipe' (parallel swipes, universal), 'sendevent' (raw MT protocol, requires root)
stepsintegerInterpolation 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.

ParameterTypeDescription
name *stringHandle name supplied at storage time (e.g., 'initial')
tool *stringSource 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.

ParameterTypeDescription
allbooleanIf true, delete every handle in this namespace. tool/name must be omitted when all=true.
namestringHandle name (required unless all=true)
toolstringSource tool name (required unless all=true)