{"at":"2026-11-22T23:42:29.021Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-22T23:42:29.542Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-22T23:42:29.643Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-22T23:42:30.149Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true},"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"deepadb","version":"1.1.6"}}}}
{"at":"2026-11-22T23:42:30.149Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-22T23:42:30.149Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-22T23:42:30.209Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"List all connected Android devices with their state, model, and product info","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"adb_devices"},{"description":"Get detailed properties for a connected device (model, OS version, build, etc.)","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial (auto-selects if only one connected)","type":"string"}},"type":"object"},"name":"adb_device_info"},{"description":"Get a specific Android system property, or all properties if no key given","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"key":{"description":"Property key (e.g., 'ro.build.version.sdk'). Omit for all.","type":"string"}},"type":"object"},"name":"adb_getprop"},{"description":"Execute a shell command on the Android device. Returns stdout and stderr.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"command":{"description":"Shell command to execute on the device","type":"string"},"device":{"description":"Device serial","type":"string"},"timeout":{"description":"Timeout in milliseconds (1s-10min)","maximum":600000,"minimum":1000,"type":"number"}},"required":["command"],"type":"object"},"name":"adb_shell"},{"description":"Execute a command as root via su. Requires rooted device.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"command":{"description":"Command to run as root","type":"string"},"device":{"description":"Device serial","type":"string"}},"required":["command"],"type":"object"},"name":"adb_root_shell"},{"description":"Install an APK on the device. Provide the full local path to the APK file.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"apkPath":{"description":"Local filesystem path to the APK file","type":"string"},"device":{"description":"Device serial","type":"string"},"downgrade":{"default":false,"description":"Allow version downgrade (-d flag)","type":"boolean"},"replace":{"default":true,"description":"Replace existing app (-r flag)","type":"boolean"}},"required":["apkPath"],"type":"object"},"name":"adb_install"},{"description":"Uninstall a package from the device","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"keepData":{"default":false,"description":"Keep app data and cache (-k flag)","type":"boolean"},"packageName":{"description":"Package name (e.g., 'com.example.app')","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_uninstall"},{"description":"List installed packages. Supports filtering by name.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"filter":{"description":"Filter packages containing this string","type":"string"},"type":{"default":"all","description":"Show all, system-only, or third-party-only packages","enum":["all","system","third-party"],"type":"string"}},"type":"object"},"name":"adb_list_packages"},{"description":"Get detailed info about an installed package (version, permissions, paths)","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"packageName":{"description":"Package name (e.g., 'com.example.app')","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_package_info"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"confirm":{"description":"Must equal packageName to confirm the destructive operation. AP5 fix: prevents accidental data loss from misclicks/mistyped invocations.","type":"string"},"device":{"description":"Device serial","type":"string"},"packageName":{"description":"Package name (e.g., 'com.example.app')","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_clear_data"},{"description":"Grant a runtime permission to a package","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"packageName":{"description":"Package name (e.g., 'com.example.app')","type":"string"},"permission":{"description":"Full permission string (e.g., 'android.permission.READ_PHONE_STATE')","type":"string"}},"required":["packageName","permission"],"type":"object"},"name":"adb_grant_permission"},{"description":"Revoke a runtime permission from a package. Useful for resetting permission state to test first-run flows or denial handling.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"packageName":{"description":"Package name (e.g., 'com.example.app')","type":"string"},"permission":{"description":"Full permission string (e.g., 'android.permission.CAMERA')","type":"string"}},"required":["packageName","permission"],"type":"object"},"name":"adb_revoke_permission"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"filter":{"default":"all","description":"Show all permissions, only granted, or only denied (default: all)","enum":["all","granted","denied"],"type":"string"},"packageName":{"description":"Package name (e.g., 'com.example.app')","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_list_permissions"},{"description":"Force-stop an app immediately. The most common debugging action.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"packageName":{"description":"Package name (e.g., 'com.example.app')","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_force_stop"},{"description":"Launch an app by package name (resolves and starts the default launcher activity)","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"packageName":{"description":"Package name (e.g., 'com.example.app')","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_start_app"},{"description":"Force-stop then re-launch an app. The most frequent debugging workflow in a single call.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"delayMs":{"default":500,"description":"Delay between stop and start in ms (0-10000, default 500)","maximum":10000,"minimum":0,"type":"number"},"device":{"description":"Device serial","type":"string"},"packageName":{"description":"Package name (e.g., 'com.example.app')","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_restart_app"},{"description":"Discover all activities, services, and receivers registered by a package with their intent filters","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"packageName":{"description":"Package name to query","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_resolve_intents"},{"description":"Push a local file to the device filesystem. Pre-flight checks: hard-blocked kernel paths, filesystem type warnings, symlink resolution, and destination storage availability.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"localPath":{"description":"Local file path to push","type":"string"},"remotePath":{"description":"Destination path on device","type":"string"}},"required":["localPath","remotePath"],"type":"object"},"name":"adb_push"},{"description":"Pull a file from the device to local filesystem","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"localPath":{"description":"Local destination (defaults to temp dir)","type":"string"},"remotePath":{"description":"File path on the device","type":"string"}},"required":["remotePath"],"type":"object"},"name":"adb_pull"},{"description":"List files and directories on the device","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"details":{"default":false,"description":"Show detailed listing (ls -la)","type":"boolean"},"device":{"description":"Device serial","type":"string"},"path":{"default":"/sdcard","description":"Directory path on device","type":"string"}},"type":"object"},"name":"adb_ls"},{"description":"Read a text file from the device","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"maxLines":{"description":"Maximum lines to return (1-10000)","maximum":10000,"minimum":1,"type":"number"},"path":{"description":"File path on device","type":"string"}},"required":["path"],"type":"object"},"name":"adb_cat"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"append":{"default":false,"description":"Append to existing file instead of overwriting","type":"boolean"},"content":{"description":"File content to write","type":"string"},"device":{"description":"Device serial","type":"string"},"path":{"description":"Destination file path on device","type":"string"},"root":{"default":false,"description":"Use root shell for protected paths","type":"boolean"}},"required":["path","content"],"type":"object"},"name":"adb_file_write"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"maxDepth":{"default":10,"description":"Maximum directory depth to search (1-50, default 10)","maximum":50,"minimum":1,"type":"number"},"maxResults":{"default":500,"description":"Maximum results to return (1-10000, default 500)","maximum":10000,"minimum":1,"type":"number"},"name":{"description":"Filename pattern (glob: *.apk, config.*, *test*)","type":"string"},"result_handle":{"description":"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 overwritten. Use adb_result_list to see active handles, adb_result_get or the MCP Resource URI to retrieve.","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"result_handle_ttl":{"description":"Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.","maximum":604800,"minimum":60,"type":"integer"},"root":{"default":false,"description":"Use root shell for system paths","type":"boolean"},"searchPath":{"default":"/sdcard","description":"Starting directory for search","type":"string"},"type":{"default":"any","description":"Filter by type: file, directory, or any","enum":["file","directory","any"],"type":"string"}},"required":["name"],"type":"object"},"name":"adb_find"},{"description":"Get detailed file metadata: size, permissions, ownership, timestamps (access/modify/change), SELinux security context, and file type. Read-only operation.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"path":{"description":"File or directory path on device","type":"string"},"root":{"default":false,"description":"Use root shell for protected paths","type":"boolean"}},"required":["path"],"type":"object"},"name":"adb_file_stat"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"algorithm":{"default":"sha256","description":"Hash algorithm (default: sha256)","enum":["sha256","sha1","md5"],"type":"string"},"device":{"description":"Device serial","type":"string"},"path":{"description":"File path on device","type":"string"},"root":{"default":false,"description":"Use root shell for protected paths","type":"boolean"}},"required":["path"],"type":"object"},"name":"adb_file_checksum"},{"description":"Create a directory on the device. Supports -p flag for creating parent directories.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"parents":{"default":true,"description":"Create parent directories as needed (-p flag, default true)","type":"boolean"},"path":{"description":"Directory path to create","type":"string"},"root":{"default":false,"description":"Use root shell for protected paths","type":"boolean"}},"required":["path"],"type":"object"},"name":"adb_mkdir"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"path":{"description":"File or directory path to delete","type":"string"},"recursive":{"default":false,"description":"Delete directory recursively (-rf). Depth-protected.","type":"boolean"},"root":{"default":false,"description":"Use root shell for protected paths","type":"boolean"}},"required":["path"],"type":"object"},"name":"adb_rm"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"destination":{"description":"Destination path","type":"string"},"device":{"description":"Device serial","type":"string"},"root":{"default":false,"description":"Use root shell for protected paths","type":"boolean"},"source":{"description":"Source file or directory path","type":"string"}},"required":["source","destination"],"type":"object"},"name":"adb_file_move"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"destination":{"description":"Destination path","type":"string"},"device":{"description":"Device serial","type":"string"},"recursive":{"default":false,"description":"Copy directories recursively (-r)","type":"boolean"},"root":{"default":false,"description":"Use root shell for protected paths","type":"boolean"},"source":{"description":"Source file or directory path","type":"string"}},"required":["source","destination"],"type":"object"},"name":"adb_file_copy"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"mode":{"description":"Octal permission mode (e.g., '755', '644', '0600')","pattern":"^[0-7]{3,4}$","type":"string"},"path":{"description":"File or directory path","type":"string"},"recursive":{"default":false,"description":"Apply recursively to directory contents. Depth-protected.","type":"boolean"},"root":{"default":false,"description":"Use root shell (typically required for chmod)","type":"boolean"}},"required":["path","mode"],"type":"object"},"name":"adb_file_chmod"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"path":{"description":"File path on device","type":"string"},"root":{"default":false,"description":"Use root shell for protected paths","type":"boolean"},"timestamp":{"description":"Explicit timestamp in 'YYYY-MM-DD HH:MM:SS' format. Omit to use current time.","type":"string"}},"required":["path"],"type":"object"},"name":"adb_file_touch"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"path":{"description":"File or directory path to inspect","type":"string"},"root":{"default":false,"description":"Use root shell for system paths","type":"boolean"}},"required":["path"],"type":"object"},"name":"adb_file_fsinfo"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"owner":{"description":"Owner in user:group format (e.g., '0:0', 'system:system', '10150:10150')","pattern":"^[a-zA-Z0-9_]+:[a-zA-Z0-9_]+$","type":"string"},"path":{"description":"File or directory path","type":"string"},"recursive":{"default":false,"description":"Apply recursively to directory contents. Depth-protected.","type":"boolean"}},"required":["path","owner"],"type":"object"},"name":"adb_file_chown"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"filesWithMatches":{"default":false,"description":"Show only filenames that contain matches, not the matching lines","type":"boolean"},"fixedString":{"default":true,"description":"Use fixed-string matching (default: true, safer). Set false for regex.","type":"boolean"},"ignoreCase":{"default":true,"description":"Case-insensitive search (default: true)","type":"boolean"},"maxDepth":{"default":10,"description":"Maximum directory depth for recursive search (1-50, default 10)","maximum":50,"minimum":1,"type":"number"},"maxResults":{"default":500,"description":"Maximum matching lines to return (1-10000, default 500)","maximum":10000,"minimum":1,"type":"number"},"path":{"description":"File or directory path to search","type":"string"},"pattern":{"description":"Text pattern to search for","type":"string"},"recursive":{"default":false,"description":"Search directories recursively","type":"boolean"},"result_handle":{"description":"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 overwritten. Use adb_result_list to see active handles, adb_result_get or the MCP Resource URI to retrieve.","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"result_handle_ttl":{"description":"Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.","maximum":604800,"minimum":60,"type":"integer"},"root":{"default":false,"description":"Use root shell for protected paths","type":"boolean"}},"required":["pattern","path"],"type":"object"},"name":"adb_grep"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"backup":{"default":false,"description":"Create a .bak backup before modifying","type":"boolean"},"device":{"description":"Device serial","type":"string"},"find":{"description":"Text to find (literal string, not regex)","type":"string"},"global":{"default":true,"description":"Replace all occurrences (default: true). Set false for first-only.","type":"boolean"},"lineNumber":{"description":"Restrict replacement to a specific line number","minimum":1,"type":"number"},"path":{"description":"File path on device","type":"string"},"replace":{"description":"Replacement text","type":"string"},"root":{"default":false,"description":"Use root shell for protected paths","type":"boolean"}},"required":["path","find","replace"],"type":"object"},"name":"adb_file_replace"},{"description":"Capture a logcat snapshot. Supports tag filtering, priority levels, and grep patterns.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"buffer":{"default":"main","description":"Logcat buffer to read from","enum":["main","system","crash","events","all"],"type":"string"},"device":{"description":"Device serial","type":"string"},"grep":{"description":"Grep filter applied to output (literal string match, case-insensitive)","type":"string"},"lines":{"default":100,"description":"Number of recent lines to capture (1-10000)","maximum":10000,"minimum":1,"type":"number"},"priority":{"description":"Minimum priority: V(erbose), D(ebug), I(nfo), W(arn), E(rror), F(atal)","enum":["V","D","I","W","E","F"],"type":"string"},"result_handle":{"description":"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 overwritten. Use adb_result_list to see active handles, adb_result_get or the MCP Resource URI to retrieve.","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"result_handle_ttl":{"description":"Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.","maximum":604800,"minimum":60,"type":"integer"},"tag":{"description":"Filter by tag (e.g., 'ActivityManager' or 'MyApp')","type":"string"}},"type":"object"},"name":"adb_logcat"},{"description":"Clear all logcat buffers on the device","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_logcat_clear"},{"description":"Get recent crash logs from the crash buffer","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"lines":{"default":50,"description":"Number of lines (1-10000)","maximum":10000,"minimum":1,"type":"number"}},"type":"object"},"name":"adb_logcat_crash"},{"description":"Run dumpsys for a specific service. Use 'list' as the service to see all available services.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"args":{"description":"Additional arguments passed to dumpsys","type":"string"},"device":{"description":"Device serial","type":"string"},"result_handle":{"description":"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 overwritten. Use adb_result_list to see active handles, adb_result_get or the MCP Resource URI to retrieve.","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"result_handle_ttl":{"description":"Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.","maximum":604800,"minimum":60,"type":"integer"},"service":{"description":"Service name (e.g., 'battery', 'telephony.registry', 'activity') or 'list'","type":"string"}},"required":["service"],"type":"object"},"name":"adb_dumpsys"},{"description":"Get telephony state including cell info, signal strength, and network registration.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_telephony"},{"description":"Get battery status, level, temperature, and charging info","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_battery"},{"description":"Get network connectivity info including WiFi, cellular, and active connections","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_network"},{"description":"Get current CPU and memory usage snapshot","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"count":{"default":1,"description":"Number of iterations (1-100, 1 = snapshot)","maximum":100,"minimum":1,"type":"number"},"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_top"},{"description":"Capture a performance snapshot for a package: memory usage, frame stats, and CPU info in one call.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"packageName":{"description":"Package name to profile (e.g., 'com.example.app')","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_perf_snapshot"},{"description":"Capture a full bug report zip (device state, logs, dumpsys, system info). Returns the local file path.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_bugreport"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"maxEntries":{"default":5,"description":"Maximum entries to return per type (1-20, default 5)","maximum":20,"minimum":1,"type":"integer"},"type":{"default":"both","description":"Type of crash data to retrieve (default: both)","enum":["anr","tombstones","both"],"type":"string"}},"type":"object"},"name":"adb_crash_logs"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"filename":{"description":"Output filename (default: heap_<target>_<timestamp>.hprof)","type":"string"},"target":{"description":"Process PID (number) or package name (e.g., com.example.app)","type":"string"}},"required":["target"],"type":"object"},"name":"adb_heap_dump"},{"description":"Take a screenshot and save to local filesystem. Returns the file path.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"filename":{"description":"Output filename (default: screenshot_<timestamp>.png)","type":"string"}},"type":"object"},"name":"adb_screencap"},{"description":"Get the currently focused activity and window stack","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_current_activity"},{"description":"Send input events to the device (tap, swipe, text, keyevent)","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"args":{"description":"Arguments: tap='x y', swipe='x1 y1 x2 y2 [duration_ms]', text='string', keyevent='KEYCODE_HOME'","type":"string"},"device":{"description":"Device serial","type":"string"},"type":{"description":"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 format per type.","enum":["tap","swipe","text","keyevent"],"type":"string"}},"required":["type","args"],"type":"object"},"name":"adb_input"},{"description":"Start an activity or app by intent or component name","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"intent":{"description":"Intent or component (e.g., 'com.example/.MainActivity' or '-a android.intent.action.VIEW -d https://example.com')","type":"string"}},"required":["intent"],"type":"object"},"name":"adb_start_activity"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"clickableOnly":{"default":false,"description":"Only show clickable/interactive elements","type":"boolean"},"device":{"description":"Device serial","type":"string"},"format":{"default":"text","description":"Output format: 'text' (default, human-readable), 'tsv' (tab-separated, token-efficient), 'xml' (raw uiautomator XML)","enum":["text","tsv","xml"],"type":"string"}},"type":"object"},"name":"adb_ui_dump"},{"description":"Search the UI hierarchy for elements matching text, resource-id, or content-description. Returns matching elements with coordinates for precise adb_input targeting.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"contentDesc":{"description":"Match elements with this content-description (partial, case-insensitive)","type":"string"},"device":{"description":"Device serial","type":"string"},"resourceId":{"description":"Match elements with this resource-id (partial match)","type":"string"},"text":{"description":"Match elements containing this text (case-insensitive)","type":"string"}},"type":"object"},"name":"adb_ui_find"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"clickableOnly":{"default":true,"description":"Only annotate clickable/scrollable elements (default true — reduces visual noise)","type":"boolean"},"device":{"description":"Device serial","type":"string"},"filename":{"description":"Output filename (default: annotated_<timestamp>.png)","type":"string"}},"type":"object"},"name":"adb_screencap_annotated"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"clickableOnly":{"default":true,"description":"Only include clickable/scrollable elements in TSV output (default true)","type":"boolean"},"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_screen_state"},{"description":"Run a Gradle task in an Android project directory","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"args":{"description":"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 tokens.","items":{"type":"string"},"type":"array"},"projectPath":{"description":"Path to the Android project root (containing gradlew)","type":"string"},"task":{"description":"Gradle task (e.g., 'assembleDebug', 'installDebug', 'clean')","type":"string"},"timeout":{"default":300000,"description":"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.","maximum":1800000,"minimum":30000,"type":"integer"}},"required":["projectPath","task"],"type":"object"},"name":"adb_gradle"},{"description":"Build a debug APK and install it on the connected device (convenience wrapper)","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"projectPath":{"description":"Path to the Android project root","type":"string"},"timeout":{"default":300000,"description":"Build+install timeout in milliseconds (30s-30min, default 5min). V5 fix.","maximum":1800000,"minimum":30000,"type":"integer"}},"required":["projectPath"],"type":"object"},"name":"adb_build_and_install"},{"description":"Run a comprehensive health check of the ADB toolchain. Validates: ADB binary, server, device connection, authorization, and root access.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial to check (optional)","type":"string"}},"type":"object"},"name":"adb_health_check"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial to audit","type":"string"}},"type":"object"},"name":"adb_runtime_audit"},{"description":"Pair with a device over WiFi using the pairing code from Developer Options → Wireless debugging → Pair device","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"description":"6-digit pairing code shown on the device","type":"string"},"host":{"description":"Device IP and pairing port (e.g., '192.168.1.100:37123')","pattern":"^(?:\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|\\[[0-9a-fA-F:]+\\]|[a-zA-Z0-9][a-zA-Z0-9.-]*):\\d{1,5}$","type":"string"}},"required":["host","code"],"type":"object"},"name":"adb_pair"},{"description":"Connect to a device over WiFi/TCP. Device must be paired first or have TCP/IP enabled.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"host":{"description":"Device IP and port (e.g., '192.168.1.100:5555' or '192.168.1.100:41567')","pattern":"^(?:\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|\\[[0-9a-fA-F:]+\\]|[a-zA-Z0-9][a-zA-Z0-9.-]*):\\d{1,5}$","type":"string"}},"required":["host"],"type":"object"},"name":"adb_connect"},{"description":"Disconnect from a wireless device, or all wireless devices if no host specified","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"host":{"description":"Device IP:port to disconnect (omit for all)","pattern":"^(?:\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|\\[[0-9a-fA-F:]+\\]|[a-zA-Z0-9][a-zA-Z0-9.-]*):\\d{1,5}$","type":"string"}},"type":"object"},"name":"adb_disconnect"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial (must be USB-connected)","type":"string"},"port":{"default":5555,"description":"TCP port for ADB (1-65535, default 5555)","maximum":65535,"minimum":1,"type":"number"}},"type":"object"},"name":"adb_tcpip"},{"description":"Toggle airplane mode on/off. Useful for resetting cellular registration during radio testing.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"enabled":{"description":"true = enable airplane mode, false = disable","type":"boolean"}},"required":["enabled"],"type":"object"},"name":"adb_airplane_mode"},{"description":"Enable or disable WiFi","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"enabled":{"description":"true = enable WiFi, false = disable","type":"boolean"}},"required":["enabled"],"type":"object"},"name":"adb_wifi"},{"description":"Enable or disable mobile data","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"enabled":{"description":"true = enable mobile data, false = disable","type":"boolean"}},"required":["enabled"],"type":"object"},"name":"adb_mobile_data"},{"description":"Enable or disable location services","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"mode":{"description":"Location mode: off, sensors (GPS only), battery (network only), high (GPS + network)","enum":["off","sensors","battery","high"],"type":"string"}},"required":["mode"],"type":"object"},"name":"adb_location"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"action":{"description":"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)","enum":["wake","sleep","toggle","lock","unlock"],"type":"string"},"device":{"description":"Device serial","type":"string"},"pin":{"description":"PIN/password to enter when unlock encounters an active keyguard (digits only for PIN, alphanumeric for password). Only used with action='unlock'.","pattern":"^[a-zA-Z0-9]+$","type":"string"}},"required":["action"],"type":"object"},"name":"adb_screen"},{"description":"Cycle airplane mode on then off after a delay. Forces cellular re-registration — useful for radio diagnostics and network testing.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"delaySeconds":{"default":3,"description":"Seconds to keep airplane mode on (1-60, default 3)","maximum":60,"minimum":1,"type":"number"},"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_airplane_cycle"},{"description":"Read an Android settings value from any namespace (system, secure, global)","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"key":{"description":"Setting key (e.g., 'screen_brightness', 'location_mode', 'airplane_mode_on')","minLength":1,"type":"string"},"namespace":{"description":"Settings namespace","enum":["system","secure","global"],"type":"string"}},"required":["namespace","key"],"type":"object"},"name":"adb_settings_get"},{"description":"Write an Android settings value to any namespace (system, secure, global)","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"key":{"description":"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 enumerate available keys for a device.","minLength":1,"type":"string"},"namespace":{"description":"Settings namespace","enum":["system","secure","global"],"type":"string"},"value":{"description":"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.","type":"string"}},"required":["namespace","key","value"],"type":"object"},"name":"adb_settings_put"},{"description":"Reboot the device. Supports normal, recovery, and bootloader modes.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"mode":{"default":"normal","description":"Reboot mode: normal (default), recovery, or bootloader","enum":["normal","recovery","bootloader"],"type":"string"}},"type":"object"},"name":"adb_reboot"},{"description":"Start a background logcat watcher. Lines accumulate in a ring buffer. Use adb_logcat_poll to retrieve new entries.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"bufferSize":{"default":2000,"description":"Max lines to keep in ring buffer (100-50000, default 2000)","maximum":50000,"minimum":100,"type":"number"},"device":{"description":"Device serial","type":"string"},"priority":{"description":"Minimum priority level","enum":["V","D","I","W","E","F"],"type":"string"},"tag":{"description":"Filter by tag (e.g., 'MyApp'). Must match /^[a-zA-Z0-9_]+$/ — Android tags are identifier-shaped in practice.","pattern":"^[a-zA-Z0-9_]+$","type":"string"}},"type":"object"},"name":"adb_logcat_start"},{"description":"Retrieve new logcat lines since the last poll from a running watcher session.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"maxLines":{"default":200,"description":"Max lines to return per poll (1-10000)","maximum":10000,"minimum":1,"type":"number"},"result_handle":{"description":"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 overwritten. Use adb_result_list to see active handles, adb_result_get or the MCP Resource URI to retrieve.","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"result_handle_ttl":{"description":"Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.","maximum":604800,"minimum":60,"type":"integer"},"session":{"description":"Session ID from adb_logcat_start (e.g., 'watch_1')","type":"string"}},"required":["session"],"type":"object"},"name":"adb_logcat_poll"},{"description":"Stop a running logcat watcher session","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"session":{"description":"Session ID to stop (e.g., 'watch_1'), or 'all' to stop all","type":"string"}},"required":["session"],"type":"object"},"name":"adb_logcat_stop"},{"description":"List all active logcat watcher sessions","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"adb_logcat_sessions"},{"description":"Forward a local port to a port on the device (host → device). Use for connecting to services running on the device.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"local":{"description":"Local (host) spec, e.g., 'tcp:8080'. AF2 fix: format-validated.","pattern":"^(tcp:\\d{1,5}|localabstract:[A-Za-z0-9_./-]+|localreserved:[A-Za-z0-9_./-]+|localfilesystem:[A-Za-z0-9_./-]+|dev:[A-Za-z0-9_./-]+|jdwp:\\d+)$","type":"string"},"remote":{"description":"Remote (device) spec, e.g., 'tcp:8080' or 'localabstract:app_socket'. AF2 fix: format-validated.","pattern":"^(tcp:\\d{1,5}|localabstract:[A-Za-z0-9_./-]+|localreserved:[A-Za-z0-9_./-]+|localfilesystem:[A-Za-z0-9_./-]+|dev:[A-Za-z0-9_./-]+|jdwp:\\d+)$","type":"string"}},"required":["local","remote"],"type":"object"},"name":"adb_forward"},{"description":"Reverse-forward a device port to a port on the host (device → host). Use for letting device apps reach services on your machine.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"local":{"description":"Local (host) spec, e.g., 'tcp:3000'. AF2 fix: format-validated.","pattern":"^(tcp:\\d{1,5}|localabstract:[A-Za-z0-9_./-]+|localreserved:[A-Za-z0-9_./-]+|localfilesystem:[A-Za-z0-9_./-]+|dev:[A-Za-z0-9_./-]+|jdwp:\\d+)$","type":"string"},"remote":{"description":"Remote (device) spec, e.g., 'tcp:3000'. AF2 fix: format-validated.","pattern":"^(tcp:\\d{1,5}|localabstract:[A-Za-z0-9_./-]+|localreserved:[A-Za-z0-9_./-]+|localfilesystem:[A-Za-z0-9_./-]+|dev:[A-Za-z0-9_./-]+|jdwp:\\d+)$","type":"string"}},"required":["remote","local"],"type":"object"},"name":"adb_reverse"},{"description":"List all active port forwards and reverse forwards","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial (omit for all devices)","type":"string"}},"type":"object"},"name":"adb_forward_list"},{"description":"Remove a port forward (host → device), or all forwards. Use after testing to clean up.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"local":{"description":"Local spec to remove (e.g., 'tcp:8080'). Omit to remove all forwards. AF2 fix: format-validated.","pattern":"^(tcp:\\d{1,5}|localabstract:[A-Za-z0-9_./-]+|localreserved:[A-Za-z0-9_./-]+|localfilesystem:[A-Za-z0-9_./-]+|dev:[A-Za-z0-9_./-]+|jdwp:\\d+)$","type":"string"}},"type":"object"},"name":"adb_forward_remove"},{"description":"Remove a reverse forward (device → host), or all reverse forwards. Use after testing to clean up.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"remote":{"description":"Remote spec to remove (e.g., 'tcp:3000'). Omit to remove all reverse forwards. AF2 fix: format-validated.","pattern":"^(tcp:\\d{1,5}|localabstract:[A-Za-z0-9_./-]+|localreserved:[A-Za-z0-9_./-]+|localfilesystem:[A-Za-z0-9_./-]+|dev:[A-Za-z0-9_./-]+|jdwp:\\d+)$","type":"string"}},"type":"object"},"name":"adb_reverse_remove"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"deviceSpec":{"description":"Device-side spec, e.g., 'tcp:3000' or 'localabstract:app_socket'","pattern":"^(tcp:\\d{1,5}|localabstract:[A-Za-z0-9_./-]+|localreserved:[A-Za-z0-9_./-]+|localfilesystem:[A-Za-z0-9_./-]+|dev:[A-Za-z0-9_./-]+|jdwp:\\d+)$","type":"string"},"direction":{"description":"'forward' (host → device) or 'reverse' (device → host)","enum":["forward","reverse"],"type":"string"},"hostSpec":{"description":"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).","pattern":"^(tcp:\\d{1,5}|localabstract:[A-Za-z0-9_./-]+|localreserved:[A-Za-z0-9_./-]+|localfilesystem:[A-Za-z0-9_./-]+|dev:[A-Za-z0-9_./-]+|jdwp:\\d+)$","type":"string"}},"required":["direction","deviceSpec"],"type":"object"},"name":"adb_tunnel_open"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Filter to a specific device serial (default: all devices)","type":"string"}},"type":"object"},"name":"adb_tunnel_list"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"id":{"description":"Tunnel ID (tun_XXXXXX) returned by adb_tunnel_open, or the literal string 'all' to close every managed tunnel.","type":"string"}},"required":["id"],"type":"object"},"name":"adb_tunnel_close"},{"description":"Start recording the device screen. Recording runs on-device. Use adb_screenrecord_stop to finish and pull the video file.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"maxDuration":{"default":60,"description":"Maximum recording duration in seconds (1-180, default 60)","maximum":180,"minimum":1,"type":"number"}},"type":"object"},"name":"adb_screenrecord_start"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_screenrecord_stop"},{"description":"List all available Android Virtual Devices (AVDs) that can be started.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"adb_avd_list"},{"description":"Launch an Android Virtual Device (AVD) emulator. Returns once the emulator process has started.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"avdName":{"description":"AVD name (from adb_avd_list)","type":"string"},"coldBoot":{"default":false,"description":"Force cold boot (-no-snapshot-load)","type":"boolean"},"gpuMode":{"default":"auto","description":"GPU acceleration mode","enum":["auto","host","swiftshader_indirect","off"],"type":"string"},"headless":{"default":false,"description":"Run without GUI window (-no-window)","type":"boolean"}},"required":["avdName"],"type":"object"},"name":"adb_emulator_start"},{"description":"Stop a running emulator. Uses 'adb emu kill' for graceful shutdown.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"avdName":{"description":"AVD name to stop. If omitted, lists running emulators.","type":"string"},"device":{"description":"Emulator device serial (e.g., 'emulator-5554') — alternative to avdName","type":"string"}},"type":"object"},"name":"adb_emulator_stop"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"install":{"default":false,"description":"If true, install QEMU via pkg if not already present","type":"boolean"}},"type":"object"},"name":"adb_qemu_setup"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"action":{"description":"Action to perform","enum":["list","create","delete"],"type":"string"},"format":{"default":"qcow2","description":"Image format. qcow2 is recommended (sparse, snapshots). raw for maximum I/O performance.","enum":["qcow2","raw"],"type":"string"},"name":{"description":"Image name (for create/delete). Alphanumeric, hyphens, underscores only.","type":"string"},"sizeMb":{"default":8192,"description":"Image size in MB (for create). Default 8192 (8GB). Range: 64-65536.","maximum":65536,"minimum":64,"type":"number"}},"required":["action"],"type":"object"},"name":"adb_qemu_images"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"adbPort":{"default":5556,"description":"Host port to forward to guest ADB (port 5555). Default 5556.","maximum":65535,"minimum":1024,"type":"number"},"append":{"description":"Kernel command line arguments (for Android boot).","type":"string"},"cpus":{"description":"Virtual CPUs. Auto-detected if omitted (total cores minus 1). Capped at safe limit.","maximum":64,"minimum":1,"type":"number"},"display":{"default":"none","description":"Display output. 'none' for headless (default). 'vnc' starts a VNC server on port 5900.","enum":["none","vnc"],"type":"string"},"image":{"description":"Disk image filename (from adb_qemu_images) or absolute path","type":"string"},"initrd":{"description":"Path to initrd/ramdisk image (for Android boot).","type":"string"},"kernel":{"description":"Path to kernel image (for Android boot). If omitted, QEMU uses the disk image's bootloader.","type":"string"},"memoryMb":{"description":"RAM in MB. Auto-detected if omitted (65% of physical RAM). Capped at safe limit.","maximum":65536,"minimum":128,"type":"number"},"name":{"description":"VM name (used to track and stop the VM)","type":"string"}},"required":["name","image"],"type":"object"},"name":"adb_qemu_start"},{"description":"Stop a running QEMU virtual machine. Sends SIGTERM for graceful shutdown, with force kill option.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"force":{"default":false,"description":"Use SIGKILL instead of SIGTERM for immediate termination.","type":"boolean"},"name":{"description":"VM name to stop. If omitted, lists running VMs.","type":"string"}},"type":"object"},"name":"adb_qemu_stop"},{"description":"Show status of QEMU virtual machines — running VMs with resource usage and port mappings, plus KVM and QEMU availability.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"adb_qemu_status"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"name":{"description":"VM name to connect to (must be running)","type":"string"},"timeout":{"default":10000,"description":"Connection timeout in milliseconds (3s-30s). Default 10s.","maximum":30000,"minimum":3000,"type":"number"}},"required":["name"],"type":"object"},"name":"adb_qemu_connect"},{"description":"Disconnect from a QEMU VM's ADB service. Removes the guest from the device list.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"name":{"description":"VM name to disconnect from","type":"string"}},"required":["name"],"type":"object"},"name":"adb_qemu_disconnect"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"command":{"description":"Shell command to execute on the guest","type":"string"},"name":{"description":"VM name (must be connected via adb_qemu_connect)","type":"string"},"timeout":{"default":15000,"description":"Command timeout in milliseconds (1s-60s). Default 15s.","maximum":60000,"minimum":1000,"type":"number"}},"required":["name","command"],"type":"object"},"name":"adb_qemu_guest_shell"},{"description":"Start a structured test session. Creates a named directory for organizing numbered screenshots and logcat captures.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"name":{"description":"Test session name (e.g., 'login_flow', 'threat_detection')","type":"string"}},"required":["name"],"type":"object"},"name":"adb_test_session_start"},{"description":"Capture a numbered test step: takes a screenshot and captures logcat since the last step. Saves both to the session directory.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"captureLogcat":{"default":true,"description":"Capture logcat since last step","type":"boolean"},"captureScreenshot":{"default":true,"description":"Take a screenshot for this step","type":"boolean"},"description":{"description":"Description of what this step tests or verifies","type":"string"}},"required":["description"],"type":"object"},"name":"adb_test_step"},{"description":"End the active test session. Writes a summary manifest and returns the session directory path.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"adb_test_session_end"},{"description":"Execute a shell command on multiple (or all) connected devices in parallel. Returns results grouped by device.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"command":{"description":"Shell command to execute on each device","type":"string"},"devices":{"description":"Device serials to target (omit for all online devices)","items":{"type":"string"},"type":"array"},"timeout":{"description":"Timeout per device in milliseconds (1s-10min)","maximum":600000,"minimum":1000,"type":"number"}},"required":["command"],"type":"object"},"name":"adb_multi_shell"},{"description":"Install an APK on multiple (or all) connected devices in parallel.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"apkPath":{"description":"Local filesystem path to the APK file","type":"string"},"devices":{"description":"Device serials (omit for all online devices)","items":{"type":"string"},"type":"array"},"replace":{"default":true,"description":"Replace existing app (-r)","type":"boolean"}},"required":["apkPath"],"type":"object"},"name":"adb_multi_install"},{"description":"Run a command on all devices and compare outputs side by side. Highlights differences across devices.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"command":{"description":"Shell command to compare across devices","type":"string"},"devices":{"description":"Device serials (omit for all online devices)","items":{"type":"string"},"type":"array"}},"required":["command"],"type":"object"},"name":"adb_multi_compare"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"commands":{"description":"Custom checks to run (max 50). Each has a label and command.","items":{"properties":{"command":{"description":"Shell command to execute","type":"string"},"label":{"description":"Human-readable label for this check","type":"string"}},"required":["label","command"],"type":"object"},"maxItems":50,"type":"array"},"devices":{"description":"Device serials to target (omit for all online devices)","items":{"type":"string"},"type":"array"},"profile":{"description":"Predefined test profile to run. 'full' runs all profiles.","enum":["firmware","security","network","identity","full"],"type":"string"},"timeout":{"default":10000,"description":"Timeout per command per device in ms (1s-60s, default 10s)","maximum":60000,"minimum":1000,"type":"number"}},"type":"object"},"name":"adb_multi_test"},{"description":"Capture a comprehensive device state snapshot: installed packages, key settings, and system properties. Saves to a JSON file.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"name":{"description":"Snapshot name (default: auto-generated timestamp)","type":"string"}},"type":"object"},"name":"adb_snapshot_capture"},{"description":"Compare current device state against a saved snapshot. Shows added/removed packages, changed settings, and property differences.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"snapshotPath":{"description":"Path to the saved snapshot JSON file","type":"string"}},"required":["snapshotPath"],"type":"object"},"name":"adb_snapshot_compare"},{"description":"Restore settings from a saved snapshot to the current device. Only restores global and secure settings — does not install/uninstall packages.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"namespace":{"default":"both","description":"Which settings namespace to restore","enum":["global","secure","both"],"type":"string"},"snapshotPath":{"description":"Path to the saved snapshot JSON file","type":"string"}},"required":["snapshotPath"],"type":"object"},"name":"adb_snapshot_restore_settings"},{"description":"Start a packet capture on the device using tcpdump. Requires root or tcpdump binary on device. Capture runs in background.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"filter":{"description":"tcpdump filter expression (e.g., 'port 443', 'host 10.0.0.1')","type":"string"},"interface":{"default":"any","description":"Network interface to capture (default: 'any')","type":"string"},"maxPackets":{"description":"Stop after N packets (1-1000000, omit for continuous until stop)","maximum":1000000,"minimum":1,"type":"number"}},"type":"object"},"name":"adb_tcpdump_start"},{"description":"Stop an active packet capture and pull the pcap file locally for analysis.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_tcpdump_stop"},{"description":"Show active network connections on the device (TCP/UDP). Similar to netstat — shows established connections, listening ports, and connection states.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"protocol":{"default":"all","description":"Filter by protocol","enum":["tcp","udp","all"],"type":"string"}},"type":"object"},"name":"adb_network_connections"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"timeoutSeconds":{"default":120,"description":"Maximum time to wait for boot in seconds (default 120)","maximum":300,"minimum":10,"type":"number"}},"type":"object"},"name":"adb_ci_wait_boot"},{"description":"Comprehensive CI readiness check. Verifies: device online, booted, package manager ready, screen unlocked, network available. Returns structured pass/fail results.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_ci_device_ready"},{"description":"Run Android instrumented tests (androidTest) via `am instrument` and capture results. Returns structured pass/fail output.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"runner":{"default":"androidx.test.runner.AndroidJUnitRunner","description":"Test runner class (default: AndroidX JUnit runner)","type":"string"},"testClass":{"description":"Specific test class to run (optional)","type":"string"},"testMethod":{"description":"Specific test method (requires testClass)","type":"string"},"testPackage":{"description":"Test package (e.g., 'com.example.app.test')","type":"string"},"timeout":{"default":300000,"description":"Timeout in ms (10s-10min, default 5 min)","maximum":600000,"minimum":10000,"type":"number"}},"required":["testPackage"],"type":"object"},"name":"adb_ci_run_tests"},{"description":"List all loaded plugins and the plugin directory path.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"adb_plugin_list"},{"description":"Show information about the plugin system: directory, how to create plugins, and loaded plugin count.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"adb_plugin_info"},{"description":"Get comprehensive modem/baseband identification: firmware version, RIL implementation, chipset, IMEI, SIM state, and radio capabilities.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"includeImei":{"default":false,"description":"Include IMEI in output (sensitive permanent device identifier — opt-in only)","type":"boolean"},"result_handle":{"description":"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 overwritten. Use adb_result_list to see active handles, adb_result_get or the MCP Resource URI to retrieve.","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"result_handle_ttl":{"description":"Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.","maximum":604800,"minimum":60,"type":"integer"}},"type":"object"},"name":"adb_baseband_info"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_cell_identity"},{"description":"Get detailed signal strength measurements: RSRP, RSRQ, SINR, RSSI, timing advance, and signal bars. Provides raw radio measurements for signal analysis and anomaly detection.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_signal_detail"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_neighboring_cells"},{"description":"Dump carrier configuration values. Useful for verifying carrier settings, detecting configuration anomalies, and inspecting APN configurations.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_carrier_config"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"grep":{"description":"Additional grep filter applied to all sources","type":"string"},"lines":{"default":200,"description":"Max lines per log source (1-5000, default 200)","maximum":5000,"minimum":1,"type":"number"}},"type":"object"},"name":"adb_modem_logs"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_a11y_audit"},{"description":"List all interactive elements with their touch target dimensions in dp. Highlights elements below the 48dp minimum. Useful for quickly identifying cramped UI layouts.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"belowMinOnly":{"default":false,"description":"Only show elements below the 48dp minimum","type":"boolean"},"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_a11y_touch_targets"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_a11y_tree"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"label":{"default":"baseline","description":"Label for this baseline (e.g., 'before-refactor', 'v2.5.0')","type":"string"},"packageName":{"description":"Package name to profile","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_regression_baseline"},{"description":"Compare current performance against a saved baseline. Flags regressions in memory (>20% increase), CPU (>50% increase), and jank rate (>25% increase). Thresholds are configurable.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"baselinePath":{"description":"Path to the saved baseline JSON file","type":"string"},"cpuThreshold":{"default":50,"description":"CPU regression threshold in percent (0-1000, default 50%)","maximum":1000,"minimum":0,"type":"number"},"device":{"description":"Device serial","type":"string"},"jankThreshold":{"default":25,"description":"Jank rate regression threshold in percent (0-1000, default 25%)","maximum":1000,"minimum":0,"type":"number"},"memoryThreshold":{"default":20,"description":"Memory regression threshold in percent (0-1000, default 20%)","maximum":1000,"minimum":0,"type":"number"}},"required":["baselinePath"],"type":"object"},"name":"adb_regression_check"},{"description":"List all saved regression baselines, optionally filtered by package name. Shows trends over time.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"packageName":{"description":"Filter by package name","type":"string"}},"type":"object"},"name":"adb_regression_history"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"appApk":{"description":"Path to the app APK file","type":"string"},"devices":{"description":"Device specs as 'model=DEVICE,version=API' (e.g., 'model=bluejay,version=33'). Omit for default device.","items":{"type":"string"},"type":"array"},"execTimeoutMs":{"default":600000,"description":"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.","maximum":3600000,"minimum":60000,"type":"integer"},"resultsBucket":{"description":"GCS bucket for results (omit for default)","type":"string"},"testApk":{"description":"Path to the test/instrumentation APK file","type":"string"},"testTargets":{"description":"Specific test class or method (e.g., 'class com.example.MyTest')","type":"string"},"timeout":{"default":"300s","description":"Test timeout passed to gcloud --timeout (e.g., '300s', '10m'). This is the LAB-side timeout.","type":"string"}},"required":["appApk","testApk"],"type":"object"},"name":"adb_farm_run"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"matrixId":{"description":"Test matrix ID (from adb_farm_run output). Omit to list recent matrices.","type":"string"}},"type":"object"},"name":"adb_farm_results"},{"description":"List available device models and API levels on Firebase Test Lab. Use to plan test matrices.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"type":{"default":"models","description":"List available device models or Android API versions","enum":["models","versions"],"type":"string"}},"type":"object"},"name":"adb_farm_matrix"},{"description":"Search the community plugin registry for available plugins. Shows name, description, version, and author. Fetches the latest manifest from the configured registry URL.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"query":{"description":"Filter plugins by name or description keyword","type":"string"}},"type":"object"},"name":"adb_registry_search"},{"description":"Install a plugin from the community registry by name. Downloads the plugin JavaScript file into the plugins directory. Restart DeepADB to load it.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"force":{"default":false,"description":"Overwrite if already installed","type":"boolean"},"name":{"description":"Plugin name from the registry","type":"string"}},"required":["name"],"type":"object"},"name":"adb_registry_install"},{"description":"List all locally installed plugins with their versions and metadata. Shows which plugins have updates available in the registry.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"adb_registry_installed"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"includeIdentity":{"default":false,"description":"After a successful AT handshake, also send the read-only ATI identity query","type":"boolean"},"port":{"description":"Optional Shannon device node override (for example /dev/umts_router)","type":"string"},"timeout":{"default":3000,"description":"Handshake timeout per port in milliseconds (1000-10000, default 3000)","maximum":10000,"minimum":1000,"type":"integer"}},"type":"object"},"name":"adb_shannon_session"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_at_detect"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"command":{"description":"AT command to send (e.g., 'AT+CSQ', 'ATI', 'AT+COPS?')","type":"string"},"device":{"description":"Device serial","type":"string"},"force":{"default":false,"description":"Bypass dangerous command safety check","type":"boolean"},"port":{"description":"Modem device node (e.g., '/dev/umts_router'). If omitted, auto-detects.","type":"string"},"timeout":{"default":5000,"description":"Response timeout in ms (1000-30000, default 5000)","maximum":30000,"minimum":1000,"type":"number"}},"required":["command"],"type":"object"},"name":"adb_at_send"},{"description":"Send multiple AT commands sequentially and capture all responses. Useful for running a diagnostic sequence. Requires root.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"commands":{"description":"Array of AT commands to send in order (max 50)","items":{"type":"string"},"maxItems":50,"minItems":1,"type":"array"},"delayMs":{"default":500,"description":"Delay between commands in ms (0-10000, default 500)","maximum":10000,"minimum":0,"type":"number"},"device":{"description":"Device serial","type":"string"},"force":{"default":false,"description":"Bypass dangerous command safety checks","type":"boolean"},"port":{"description":"Modem device node (auto-detects if omitted)","type":"string"},"timeout":{"default":5000,"description":"Timeout per command in ms","maximum":30000,"minimum":1000,"type":"number"}},"required":["commands"],"type":"object"},"name":"adb_at_batch"},{"description":"Run a standard AT diagnostic probe: modem identification, signal quality, network registration, SIM status, and supported bands. Requires root.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"port":{"description":"Modem device node (auto-detects if omitted)","type":"string"}},"type":"object"},"name":"adb_at_probe"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"port":{"description":"Modem device node (auto-detects if omitted)","type":"string"},"timeout":{"default":5000,"description":"Response timeout per command in ms","maximum":30000,"minimum":1000,"type":"number"}},"type":"object"},"name":"adb_at_cross_validate"},{"description":"Capture a named screenshot baseline for later comparison. Saves the screenshot and metadata to the baselines directory.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"name":{"description":"Baseline name (e.g., 'home_screen', 'login_page', 'threat_alert')","type":"string"},"result_handle":{"description":"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 overwritten. Use adb_result_list to see active handles, adb_result_get or the MCP Resource URI to retrieve.","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"result_handle_ttl":{"description":"Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.","maximum":604800,"minimum":60,"type":"integer"}},"required":["name"],"type":"object"},"name":"adb_screenshot_baseline"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"baseline":{"description":"Baseline name to compare against (from adb_screenshot_baseline)","type":"string"},"device":{"description":"Device serial","type":"string"},"result_handle":{"description":"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 overwritten. Use adb_result_list to see active handles, adb_result_get or the MCP Resource URI to retrieve.","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"result_handle_ttl":{"description":"Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.","maximum":604800,"minimum":60,"type":"integer"},"tolerancePercent":{"default":0,"description":"Pixel difference percentage threshold below which the result reports IDENTICAL. 0 = exact match required. 1-2 absorbs clock/status bar changes.","maximum":100,"minimum":0,"type":"number"}},"required":["baseline"],"type":"object"},"name":"adb_screenshot_diff"},{"description":"List all saved screenshot baselines with their metadata (timestamp, dimensions, device, file size).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"result_handle":{"description":"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 overwritten. Use adb_result_list to see active handles, adb_result_get or the MCP Resource URI to retrieve.","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"result_handle_ttl":{"description":"Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.","maximum":604800,"minimum":60,"type":"integer"}},"type":"object"},"name":"adb_screenshot_history"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"dryRun":{"default":false,"description":"Validate and show execution plan without running","type":"boolean"},"variables":{"additionalProperties":{"type":"string"},"description":"Override workflow variables (merged with defaults)","propertyNames":{"type":"string"},"type":"object"},"workflow":{"description":"Workflow JSON string, or the name of a saved workflow file","type":"string"}},"required":["workflow"],"type":"object"},"name":"adb_workflow_run"},{"description":"Validate a workflow JSON definition without executing it. Reports structural errors and shows the execution plan.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"workflow":{"description":"Workflow JSON string to validate","type":"string"}},"required":["workflow"],"type":"object"},"name":"adb_workflow_validate"},{"description":"List saved workflow files in the workflows directory.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"adb_workflow_list"},{"description":"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).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"allowDowngrade":{"default":false,"description":"Allow version downgrade (-d)","type":"boolean"},"apkPaths":{"description":"Array of local paths to split APK files (base + config splits)","items":{"type":"string"},"minItems":1,"type":"array"},"device":{"description":"Device serial","type":"string"},"replace":{"default":true,"description":"Replace existing app (-r)","type":"boolean"}},"required":["apkPaths"],"type":"object"},"name":"adb_install_bundle"},{"description":"List all APK split paths installed for a package. Shows the base APK and any configuration splits (language, screen density, ABI).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"packageName":{"description":"Package name (e.g., 'com.example.app')","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_list_splits"},{"description":"Pull all APK splits for a package from the device to a local directory. Useful for analysis, backup, or transfer to another device.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"outputDir":{"description":"Local output directory (default: temp dir)","type":"string"},"packageName":{"description":"Package name to extract","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_extract_apks"},{"description":"List installed APEX modules on the device. APEX (Android Pony EXpress) modules deliver updatable system components. Shows module name, version, and active/staged status.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_apex_list"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"bitrate":{"default":"4M","description":"Video bitrate (e.g., '4M', '8M', '2M'). AK2 fix: format-validated at schema layer.","pattern":"^\\d+(\\.\\d+)?[KMG]?$","type":"string"},"device":{"description":"Device serial","type":"string"},"headless":{"default":false,"description":"No-display mode — useful with recording. Omits the scrcpy window.","type":"boolean"},"maxFps":{"default":30,"description":"Maximum frame rate (1-120, default 30)","maximum":120,"minimum":1,"type":"number"},"maxSize":{"default":0,"description":"Max dimension in pixels (0 = no limit, max 4096)","maximum":4096,"minimum":0,"type":"number"},"record":{"description":"Record to a local file path (e.g., 'mirror.mp4')","type":"string"},"stayAwake":{"default":true,"description":"Keep device awake while mirroring","type":"boolean"},"turnScreenOff":{"default":false,"description":"Turn device screen off during mirroring (saves battery)","type":"boolean"}},"type":"object"},"name":"adb_mirror_start"},{"description":"Stop an active scrcpy mirroring session for a device.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial (stops that device's session). Omit to stop all.","type":"string"}},"type":"object"},"name":"adb_mirror_stop"},{"description":"Check scrcpy availability and list active mirroring sessions.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"adb_mirror_status"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"packageName":{"description":"Package name to monitor during test (used for logcat filtering and crash detection)","type":"string"},"returnToStart":{"default":true,"description":"Press Back after each tap to return to the starting screen","type":"boolean"},"screenshotAfterEach":{"default":true,"description":"Take a screenshot after each tap","type":"boolean"}},"required":["packageName"],"type":"object"},"name":"adb_test_gen_from_ui"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"packageName":{"description":"Package name to analyze","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_test_gen_from_intents"},{"description":"Save a generated workflow JSON to the workflows directory for later execution with adb_workflow_run.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"name":{"description":"Workflow name (used as filename)","type":"string"},"workflow":{"description":"Workflow JSON string to save","type":"string"}},"required":["name","workflow"],"type":"object"},"name":"adb_test_gen_save"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"label":{"default":"current","description":"Label for this fingerprint (e.g., 'pre-update', 'post-ota')","type":"string"}},"type":"object"},"name":"adb_ota_fingerprint"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"fingerprintPath":{"description":"Path to saved fingerprint JSON. If omitted, compares against the most recent fingerprint for this device.","type":"string"}},"type":"object"},"name":"adb_ota_check"},{"description":"List all saved system fingerprints for a device, showing version progression over time. Highlights changes between consecutive snapshots.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial (filters to this device). Omit for all devices.","type":"string"}},"type":"object"},"name":"adb_ota_history"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"bufferSize":{"default":5000,"description":"Max messages to keep in ring buffer (100-50000, default 5000)","maximum":50000,"minimum":100,"type":"number"},"device":{"description":"Device serial","type":"string"},"includeKernel":{"default":false,"description":"Also capture from main and kernel logcat buffers for modem framework and kernel-level radio messages","type":"boolean"}},"type":"object"},"name":"adb_ril_start"},{"description":"Retrieve captured RIL messages since the last poll. Optionally filter by category (registration, cell_info, signal, network, security, handover, data, radio_state, nas).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"category":{"description":"Filter by category: registration, cell_info, signal, network, security, handover, data, radio_state, sms, nas, other","type":"string"},"maxMessages":{"default":100,"description":"Max messages to return per poll (1-10000)","maximum":10000,"minimum":1,"type":"number"},"raw":{"default":false,"description":"Return raw logcat lines instead of parsed messages","type":"boolean"},"session":{"description":"Session ID from adb_ril_start (e.g., 'ril_1')","type":"string"}},"required":["session"],"type":"object"},"name":"adb_ril_poll"},{"description":"Stop a RIL capture session. Shows a summary of captured message categories.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"session":{"description":"Session ID to stop (e.g., 'ril_1'), or 'all' to stop all","type":"string"}},"required":["session"],"type":"object"},"name":"adb_ril_stop"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"save":{"default":false,"description":"Automatically save the detected profile","type":"boolean"}},"type":"object"},"name":"adb_profile_detect"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"name":{"description":"Profile name (used as filename)","type":"string"},"profile":{"description":"Profile JSON string (from adb_profile_detect output or manually composed)","type":"string"}},"required":["name","profile"],"type":"object"},"name":"adb_profile_save"},{"description":"List all device profiles: built-in library entries and user-saved profiles.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"adb_profile_list"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_firmware_probe"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial (used when 'from' or 'to' is 'current', or for auto-selecting fingerprints)","type":"string"},"from":{"description":"Path to 'from' fingerprint JSON (or 'current' to use live device state). Defaults to the second-most-recent fingerprint.","type":"string"},"result_handle":{"description":"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 overwritten. Use adb_result_list to see active handles, adb_result_get or the MCP Resource URI to retrieve.","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"result_handle_ttl":{"description":"Optional. TTL in seconds for the result handle (60 to 604800). Default 43200 (12 hours). Ignored if result_handle is not provided.","maximum":604800,"minimum":60,"type":"integer"},"to":{"description":"Path to 'to' fingerprint JSON (or 'current' to use live device state). Defaults to the most recent fingerprint.","type":"string"}},"type":"object"},"name":"adb_firmware_diff"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial (filters fingerprints to this device)","type":"string"}},"type":"object"},"name":"adb_firmware_history"},{"description":"Search the workflow marketplace for community-shared workflow definitions. Shows name, description, tags, author, and step count. Indicates which workflows are already installed locally.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"query":{"description":"Filter by name, description, or tag keyword","type":"string"},"tag":{"description":"Filter by exact tag (e.g., 'testing', 'diagnostics', 'security')","type":"string"}},"type":"object"},"name":"adb_market_search"},{"description":"Download and install a workflow from the marketplace. Saves to the workflows directory for immediate use with adb_workflow_run.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"force":{"default":false,"description":"Overwrite if a workflow with this name already exists locally","type":"boolean"},"name":{"description":"Workflow name from the marketplace","type":"string"}},"required":["name"],"type":"object"},"name":"adb_market_install"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"author":{"description":"Author name to include in metadata","type":"string"},"tags":{"description":"Tags for discovery (e.g., ['testing', 'diagnostics'])","items":{"type":"string"},"type":"array"},"version":{"default":"1.0.0","description":"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.","type":"string"},"workflow":{"description":"Name of the local workflow to export (from adb_workflow_list)","type":"string"}},"required":["workflow"],"type":"object"},"name":"adb_market_export"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_selinux_status"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"lines":{"default":50,"description":"Max denial entries to return (1-1000, default 50)","maximum":1000,"minimum":1,"type":"number"},"process":{"description":"Filter denials by process/source context name","type":"string"}},"type":"object"},"name":"adb_selinux_denials"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"packageName":{"description":"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.","pattern":"^[a-zA-Z][a-zA-Z0-9_]*(\\.[a-zA-Z][a-zA-Z0-9_]*)+$","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_permission_audit"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"label":{"default":"snapshot","description":"Label for saved baseline","type":"string"},"save":{"default":false,"description":"Save snapshot as a baseline JSON file","type":"boolean"}},"type":"object"},"name":"adb_thermal_snapshot"},{"description":"Compare current thermal/power state against a saved baseline. Reports temperature changes per zone, CPU frequency shifts, and battery drain rate differences.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"baselinePath":{"description":"Path to baseline JSON. If omitted, uses the most recent baseline for the device.","type":"string"},"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_thermal_compare"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"durationMs":{"default":10000,"description":"Measurement duration in ms (3s-60s, default 10s)","maximum":60000,"minimum":3000,"type":"number"},"packageName":{"description":"If specified, show battery stats for this package (requires root for detailed stats)","type":"string"}},"type":"object"},"name":"adb_battery_drain"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial (used to determine the local subnet if no ipRange given)","type":"string"},"ipRange":{"description":"IP range to scan (e.g., '192.168.1.1-254'). If omitted, scans hosts from the ARP table only.","type":"string"},"ports":{"description":"Custom ports to probe (default: [5555, 5554, 5556, 5557, 5558], max 20)","items":{"maximum":65535,"minimum":1,"type":"number"},"maxItems":20,"type":"array"},"timeoutMs":{"default":2000,"description":"Connection timeout per host in ms (500-10000, default 2000)","maximum":10000,"minimum":500,"type":"number"}},"type":"object"},"name":"adb_network_scan"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_network_device_ip"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial (used to determine local subnet for ARP-based discovery)","type":"string"},"ipRange":{"description":"IP range to scan (e.g., '192.168.1.1-254')","type":"string"},"port":{"default":5555,"description":"ADB port to probe and connect (1-65535, default 5555)","maximum":65535,"minimum":1,"type":"number"}},"type":"object"},"name":"adb_network_auto_connect"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"includeConnectivitySummary":{"default":true,"description":"Include a privacy-conscious connectivity/VPN/default-network summary","type":"boolean"},"packageName":{"description":"Installed Android package to inspect","pattern":"^[A-Za-z][A-Za-z0-9_]*(?:\\.[A-Za-z0-9_]+)+$","type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_app_route_context"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"access":{"default":"auto","description":"Access method. auto prefers run-as and falls back to root.","enum":["auto","run-as","root"],"type":"string"},"action":{"default":"list","description":"List databases, show sqlite_master schema, or run a read-only query","enum":["list","schema","query"],"type":"string"},"database":{"description":"Database filename inside the package databases directory (no path separators)","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","type":"string"},"device":{"description":"Device serial","type":"string"},"maxRows":{"default":100,"description":"Maximum rows returned for SELECT/WITH queries (1-1000, default 100)","maximum":1000,"minimum":1,"type":"integer"},"packageName":{"description":"Installed Android package whose databases directory may be inspected","pattern":"^[A-Za-z][A-Za-z0-9_]*(?:\\.[A-Za-z0-9_]+)+$","type":"string"},"query":{"description":"One read-only SELECT, WITH, EXPLAIN, or allowlisted PRAGMA statement","maxLength":8192,"type":"string"}},"required":["packageName"],"type":"object"},"name":"adb_sqlite_inspect"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"phoneDevice":{"description":"Phone device serial; auto-detected when omitted","type":"string"},"phonePackage":{"description":"Optional companion app package expected on the phone","pattern":"^[A-Za-z][A-Za-z0-9_]*(?:\\.[A-Za-z0-9_]+)+$","type":"string"},"wearDevice":{"description":"Wear device serial; auto-detected when omitted","type":"string"},"wearPackage":{"description":"Optional Wear app package expected on the watch","pattern":"^[A-Za-z][A-Za-z0-9_]*(?:\\.[A-Za-z0-9_]+)+$","type":"string"}},"type":"object"},"name":"adb_wear_datalayer_preflight"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"category":{"default":"all","description":"Filter by sensor category: all, accelerometer, gyroscope, magnetometer, light, barometer, proximity, gravity, linear_accel, rotation, orientation, motion, step, temperature","enum":["all","accelerometer","gyroscope","magnetometer","light","barometer","proximity","gravity","linear_accel","rotation","orientation","motion","step","temperature"],"type":"string"},"device":{"description":"Device serial","type":"string"},"listOnly":{"default":false,"description":"If true, list available sensors without reading values (faster, useful for discovery)","type":"boolean"}},"type":"object"},"name":"adb_sensor_read"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"listOnly":{"default":false,"description":"If true, list available IIO devices without reading values","type":"boolean"}},"type":"object"},"name":"adb_iio_read"},{"description":"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).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"includeMac":{"default":false,"description":"Include WiFi MAC address (permanent hardware identifier — opt-in only)","type":"boolean"},"maxLines":{"default":200,"description":"Lines of dumpsys output to inspect (50-2000, default 200). Raise for verbose vendor builds where firmware info appears late in dumpsys output.","maximum":2000,"minimum":50,"type":"integer"}},"type":"object"},"name":"adb_wifi_firmware"},{"description":"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).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"includeIdentifiers":{"default":false,"description":"Include Bluetooth MAC address and device name (permanent identifiers — opt-in only)","type":"boolean"},"maxLines":{"default":300,"description":"Lines of dumpsys output to inspect (50-2000, default 300). Raise for verbose vendor builds.","maximum":2000,"minimum":50,"type":"integer"}},"type":"object"},"name":"adb_bluetooth_firmware"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"maxLines":{"default":200,"description":"Lines of dumpsys output to inspect (50-2000, default 200). Raise for verbose vendor builds.","maximum":2000,"minimum":50,"type":"integer"}},"type":"object"},"name":"adb_nfc_firmware"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_gps_firmware"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"durationMs":{"default":1000,"description":"Drag duration in ms (100-10000, default 1000)","maximum":10000,"minimum":100,"type":"integer"},"x1":{"description":"Start X coordinate","maximum":9999,"minimum":0,"type":"integer"},"x2":{"description":"End X coordinate","maximum":9999,"minimum":0,"type":"integer"},"y1":{"description":"Start Y coordinate","maximum":9999,"minimum":0,"type":"integer"},"y2":{"description":"End Y coordinate","maximum":9999,"minimum":0,"type":"integer"}},"required":["x1","y1","x2","y2"],"type":"object"},"name":"adb_input_drag"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"durationMs":{"default":50,"description":"Fling duration in ms (20-200, default 50). Shorter = more velocity","maximum":200,"minimum":20,"type":"integer"},"x1":{"description":"Start X coordinate","maximum":9999,"minimum":0,"type":"integer"},"x2":{"description":"End X coordinate","maximum":9999,"minimum":0,"type":"integer"},"y1":{"description":"Start Y coordinate","maximum":9999,"minimum":0,"type":"integer"},"y2":{"description":"End Y coordinate","maximum":9999,"minimum":0,"type":"integer"}},"required":["x1","y1","x2","y2"],"type":"object"},"name":"adb_input_fling"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"durationMs":{"default":1500,"description":"Hold duration in ms (300-10000, default 1500)","maximum":10000,"minimum":300,"type":"integer"},"x":{"description":"X coordinate","maximum":9999,"minimum":0,"type":"integer"},"y":{"description":"Y coordinate","maximum":9999,"minimum":0,"type":"integer"}},"required":["x","y"],"type":"object"},"name":"adb_input_long_press"},{"description":"Double tap at a point on screen. Triggers zoom, text selection, or double-tap gestures. Two rapid taps with a configurable interval.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"intervalMs":{"default":80,"description":"Interval between taps in ms (20-500, default 80)","maximum":500,"minimum":20,"type":"integer"},"x":{"description":"X coordinate","maximum":9999,"minimum":0,"type":"integer"},"y":{"description":"Y coordinate","maximum":9999,"minimum":0,"type":"integer"}},"required":["x","y"],"type":"object"},"name":"adb_input_double_tap"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"text":{"description":"Text to type on the device","maxLength":5000,"minLength":1,"type":"string"}},"required":["text"],"type":"object"},"name":"adb_input_text"},{"description":"Open a URL on the device in the default browser or handling app. Uses Android's VIEW intent action.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"url":{"description":"URL to open (must be a valid URL with scheme)","format":"uri","type":"string"}},"required":["url"],"type":"object"},"name":"adb_open_url"},{"description":"Get or set screen orientation. Can lock to portrait, landscape, reverse portrait, reverse landscape, or restore auto-rotate.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"action":{"description":"'get' to read current orientation, 'set' to change it","enum":["get","set"],"type":"string"},"device":{"description":"Device serial","type":"string"},"orientation":{"description":"Orientation to set (required when action='set'): auto=sensor, portrait=0°, landscape=90°, reverse_portrait=180°, reverse_landscape=270°","enum":["auto","portrait","landscape","reverse_portrait","reverse_landscape"],"type":"string"}},"required":["action"],"type":"object"},"name":"adb_orientation"},{"description":"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+.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"action":{"description":"'read' to get clipboard, 'write' to set it","enum":["read","write"],"type":"string"},"device":{"description":"Device serial","type":"string"},"text":{"description":"Text to write to clipboard (required when action='write')","maxLength":10000,"type":"string"}},"required":["action"],"type":"object"},"name":"adb_clipboard"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"contentDesc":{"description":"Match elements with this content-description (partial, case-insensitive)","type":"string"},"device":{"description":"Device serial","type":"string"},"index":{"default":0,"description":"Which match to tap if multiple found (0 = first match, default)","maximum":99,"minimum":0,"type":"integer"},"resourceId":{"description":"Match elements with this resource-id (partial match)","type":"string"},"text":{"description":"Match elements containing this text (case-insensitive)","type":"string"}},"type":"object"},"name":"adb_tap_element"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"condition":{"default":"appear","description":"Wait for element to 'appear' (default) or 'disappear'","enum":["appear","disappear"],"type":"string"},"contentDesc":{"description":"Match elements with this content-description (partial, case-insensitive)","type":"string"},"device":{"description":"Device serial","type":"string"},"pollMs":{"default":500,"description":"Polling interval in ms (200-5000, default 500)","maximum":5000,"minimum":200,"type":"integer"},"resourceId":{"description":"Match elements with this resource-id (partial match)","type":"string"},"text":{"description":"Match elements containing this text (case-insensitive)","type":"string"},"timeoutMs":{"default":10000,"description":"Maximum wait time in ms (1s-60s, default 10s)","maximum":60000,"minimum":1000,"type":"integer"}},"type":"object"},"name":"adb_wait_element"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"pollMs":{"default":500,"description":"Polling interval in ms (200-5000, default 500)","maximum":5000,"minimum":200,"type":"integer"},"stableCount":{"default":2,"description":"Number of consecutive identical dumps required (2-10, default 2)","maximum":10,"minimum":2,"type":"integer"},"timeoutMs":{"default":10000,"description":"Maximum wait time in ms (1s-60s, default 10s)","maximum":60000,"minimum":1000,"type":"integer"}},"type":"object"},"name":"adb_wait_stable"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"contentDesc":{"description":"Match elements with this content-description (partial, case-insensitive)","type":"string"},"device":{"description":"Device serial","type":"string"},"direction":{"default":"down","description":"Scroll direction (default 'down' = content moves up, revealing lower items)","enum":["up","down","left","right"],"type":"string"},"maxScrolls":{"default":10,"description":"Maximum scroll attempts (1-50, default 10)","maximum":50,"minimum":1,"type":"integer"},"resourceId":{"description":"Match elements with this resource-id (partial match)","type":"string"},"tapWhenFound":{"default":false,"description":"Automatically tap the element when found","type":"boolean"},"text":{"description":"Match elements containing this text (case-insensitive)","type":"string"}},"type":"object"},"name":"adb_scroll_until"},{"description":"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.)","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"filename":{"description":"Output filename (default: screenshot_compressed_<timestamp>.jpg)","type":"string"},"quality":{"default":50,"description":"JPEG quality (10-100, default 50). Lower = smaller file, more artifacts","maximum":100,"minimum":10,"type":"integer"},"scale":{"default":0.5,"description":"Scale factor (0.1-1.0, default 0.5). 0.5 = half resolution","maximum":1,"minimum":0.1,"type":"number"}},"type":"object"},"name":"adb_screenshot_compressed"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"actions":{"description":"Array of actions to execute (1-50)","items":{"properties":{"args":{"description":"Action arguments: tap='x y', swipe='x1 y1 x2 y2 [ms]', fling='x1 y1 x2 y2 [ms]', long_press='x y [ms]', double_tap='x y', keyevent='KEYCODE_*', text='string', drag='x1 y1 x2 y2 [ms]', pinch='cx cy startRadius endRadius [durationMs]', sleep='ms', back/home=none","type":"string"},"type":{"description":"Action type — one of: tap, swipe, fling, long_press, double_tap, keyevent, text, drag, pinch, back, home, sleep. The args field documents the expected argument format per type.","enum":["tap","swipe","fling","long_press","double_tap","keyevent","text","drag","pinch","back","home","sleep"],"type":"string"}},"required":["type"],"type":"object"},"maxItems":50,"minItems":1,"type":"array"},"delayMs":{"default":100,"description":"Delay between actions in ms (0-5000, default 100)","maximum":5000,"minimum":0,"type":"integer"},"device":{"description":"Device serial","type":"string"},"stopOnError":{"default":true,"description":"Stop execution if any action fails (default true)","type":"boolean"}},"required":["actions"],"type":"object"},"name":"adb_batch_actions"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_screen_size"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"}},"type":"object"},"name":"adb_device_state"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"device":{"description":"Device serial","type":"string"},"filter":{"description":"Filter by package name (partial match, case-insensitive)","type":"string"},"maxResults":{"default":20,"description":"Maximum notifications to return (1-50, default 20)","maximum":50,"minimum":1,"type":"integer"}},"type":"object"},"name":"adb_notifications"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"angle":{"default":90,"description":"Angle in degrees for the pinch axis (0=horizontal, 90=vertical, default 90)","maximum":360,"minimum":0,"type":"number"},"cx":{"description":"Center X coordinate of the pinch gesture","maximum":9999,"minimum":0,"type":"integer"},"cy":{"description":"Center Y coordinate of the pinch gesture","maximum":9999,"minimum":0,"type":"integer"},"device":{"description":"Device serial","type":"string"},"durationMs":{"default":500,"description":"Gesture duration in ms (100-5000, default 500)","maximum":5000,"minimum":100,"type":"integer"},"endRadius":{"description":"Ending distance (px) from center to each finger. Smaller than startRadius = pinch/zoom-out, larger = spread/zoom-in","maximum":2000,"minimum":10,"type":"integer"},"method":{"default":"auto","description":"Injection method: 'auto' (sendevent if root, else swipe), 'swipe' (parallel swipes, universal), 'sendevent' (raw MT protocol, requires root)","enum":["auto","swipe","sendevent"],"type":"string"},"startRadius":{"description":"Starting distance (px) from center to each finger","maximum":2000,"minimum":10,"type":"integer"},"steps":{"default":20,"description":"Interpolation steps for sendevent method (5-60, default 20). More steps = smoother gesture","maximum":60,"minimum":5,"type":"integer"}},"required":["cx","cy","startRadius","endRadius"],"type":"object"},"name":"adb_input_pinch"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"adb_result_list"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"name":{"description":"Handle name supplied at storage time (e.g., 'initial')","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"tool":{"description":"Source tool name (the tool that originally stored the handle, e.g., 'bugreport')","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}},"required":["tool","name"],"type":"object"},"name":"adb_result_get"},{"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"all":{"default":false,"description":"If true, delete every handle in this namespace. tool/name must be omitted when all=true.","type":"boolean"},"name":{"description":"Handle name (required unless all=true)","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"tool":{"description":"Source tool name (required unless all=true)","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}},"type":"object"},"name":"adb_result_drop"}]}}}
