{"at":"2026-11-23T01:51:17.263Z","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-23T01:51:17.708Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:51:17.809Z","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-23T01:51:18.253Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"androidbuild-mcp","version":"0.1.0"}}}}
{"at":"2026-11-23T01:51:18.253Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:51:18.253Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:51:18.258Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"readOnlyHint":true},"description":"Check the Android development environment: SDK location, adb, emulator, avdmanager, Java, and connected devices. Run this first if any other tool fails with a missing-binary error.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"doctor","title":"Doctor"},{"annotations":{"readOnlyHint":true},"description":"Set default projectDir/module/variant/serial/appId used by other tools when the corresponding argument is omitted. Set these once after discovering the project.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"appId":{"description":"Application id (package name)","type":"string"},"module":{"description":"Gradle module, e.g. 'app'","type":"string"},"projectDir":{"description":"Absolute path to the Gradle project root","type":"string"},"serial":{"description":"adb device serial, e.g. emulator-5554","type":"string"},"variant":{"description":"Build variant, e.g. 'debug'","type":"string"}},"type":"object"},"name":"session_set_defaults","title":"Set session defaults"},{"annotations":{"readOnlyHint":true},"description":"Show the current session defaults.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"session_show_defaults","title":"Show session defaults"},{"annotations":{"readOnlyHint":true},"description":"Clear all session defaults, or only the listed keys.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"keys":{"description":"Keys to clear; omit to clear everything","items":{"enum":["projectDir","module","variant","serial","appId"],"type":"string"},"type":"array"}},"type":"object"},"name":"session_clear_defaults","title":"Clear session defaults"},{"annotations":{"readOnlyHint":true},"description":"Find Android/Gradle projects (directories with settings.gradle[.kts]) under a path. Use the result to session_set_defaults projectDir.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"maxDepth":{"description":"Max directory depth (default 3)","maximum":6,"minimum":0,"type":"integer"},"searchPath":{"description":"Directory to search from","type":"string"}},"required":["searchPath"],"type":"object"},"name":"discover_projects","title":"Discover Gradle projects"},{"annotations":{"readOnlyHint":true},"description":"List modules declared in settings.gradle(.kts) of the project.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"projectDir":{"description":"Project root (defaults to session)","type":"string"}},"type":"object"},"name":"list_modules","title":"List Gradle modules"},{"annotations":{"readOnlyHint":true},"description":"List build variants of a module by inspecting its Gradle assemble tasks (runs './gradlew <module>:tasks').","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"module":{"description":"Module name, e.g. 'app' (defaults to session)","type":"string"},"projectDir":{"description":"Project root (defaults to session)","type":"string"}},"type":"object"},"name":"list_variants","title":"List build variants"},{"annotations":{"readOnlyHint":true},"description":"Get the applicationId (package name) of a module, parsed from its build.gradle(.kts). Needed by install/launch/log tools.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"module":{"description":"Module name (defaults to session)","type":"string"},"projectDir":{"description":"Project root (defaults to session)","type":"string"},"variant":{"description":"Variant, used to warn about applicationIdSuffix","type":"string"}},"type":"object"},"name":"get_app_id","title":"Get application id"},{"annotations":{"readOnlyHint":true},"description":"Show toolchain versions: Gradle (from wrapper properties) and everything in the version catalog (AGP, Kotlin, Compose, ...).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"projectDir":{"description":"Project root (defaults to session)","type":"string"}},"type":"object"},"name":"show_gradle_config","title":"Show Gradle config"},{"description":"Build an APK with Gradle (assemble<Variant>). On failure returns compact compiler errors with file:line. On success returns the APK path.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"module":{"description":"Gradle module, e.g. 'app' (defaults to session)","type":"string"},"projectDir":{"description":"Project root (defaults to session)","type":"string"},"variant":{"description":"Build variant, e.g. 'debug' (defaults to session)","type":"string"}},"type":"object"},"name":"build_app","title":"Build app"},{"description":"Build the APK, install it on a device/emulator (adb install -r), and launch the app. Needs appId (session default or argument) to launch.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"appId":{"description":"Application id to launch (defaults to session)","type":"string"},"module":{"description":"Gradle module, e.g. 'app' (defaults to session)","type":"string"},"projectDir":{"description":"Project root (defaults to session)","type":"string"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"},"variant":{"description":"Build variant, e.g. 'debug' (defaults to session)","type":"string"}},"type":"object"},"name":"build_run","title":"Build, install and run"},{"description":"Run local JVM unit tests (test<Variant>UnitTest) and return a parsed pass/fail summary with failure messages.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"module":{"description":"Gradle module, e.g. 'app' (defaults to session)","type":"string"},"projectDir":{"description":"Project root (defaults to session)","type":"string"},"tests":{"description":"Filter passed to --tests, e.g. 'com.foo.MyTest' or '*MyTest*'","type":"string"},"variant":{"description":"Build variant, e.g. 'debug' (defaults to session)","type":"string"}},"type":"object"},"name":"test_app","title":"Run unit tests"},{"description":"Run instrumented tests on a connected device/emulator (connected<Variant>AndroidTest) and return a parsed summary. Requires a booted device.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"module":{"description":"Gradle module, e.g. 'app' (defaults to session)","type":"string"},"projectDir":{"description":"Project root (defaults to session)","type":"string"},"variant":{"description":"Build variant, e.g. 'debug' (defaults to session)","type":"string"}},"type":"object"},"name":"test_instrumented","title":"Run instrumented tests"},{"description":"Run Android Lint (lint<Variant>) and return the textual report summary.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"module":{"description":"Gradle module, e.g. 'app' (defaults to session)","type":"string"},"projectDir":{"description":"Project root (defaults to session)","type":"string"},"variant":{"description":"Build variant, e.g. 'debug' (defaults to session)","type":"string"}},"type":"object"},"name":"lint","title":"Run Android Lint"},{"description":"Run gradle clean for the project.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"projectDir":{"description":"Project root (defaults to session)","type":"string"}},"type":"object"},"name":"clean","title":"Clean build"},{"annotations":{"readOnlyHint":true},"description":"Locate the most recent built APK for a module/variant without building.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"module":{"description":"Gradle module, e.g. 'app' (defaults to session)","type":"string"},"projectDir":{"description":"Project root (defaults to session)","type":"string"},"variant":{"description":"Build variant, e.g. 'debug' (defaults to session)","type":"string"}},"type":"object"},"name":"get_apk_path","title":"Get APK path"},{"description":"Stop the project's Gradle daemons (use when a build hangs or to free memory).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"projectDir":{"description":"Project root (defaults to session)","type":"string"}},"type":"object"},"name":"stop_gradle","title":"Stop Gradle daemons"},{"annotations":{"readOnlyHint":true},"description":"List connected devices and emulators with serial, state, model, Android version and API level.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_devices","title":"List devices"},{"description":"Install an APK on a device/emulator (adb install -r).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"apkPath":{"description":"Path to the APK (from build_app / get_apk_path)","type":"string"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"}},"required":["apkPath"],"type":"object"},"name":"install_app","title":"Install app"},{"description":"Launch an app by application id (resolves the launcher activity automatically).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"appId":{"description":"Application id (defaults to session)","type":"string"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"}},"type":"object"},"name":"launch_app","title":"Launch app"},{"description":"Force-stop a running app (am force-stop).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"appId":{"description":"Application id (defaults to session)","type":"string"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"}},"type":"object"},"name":"stop_app","title":"Stop app"},{"description":"Uninstall an app from a device/emulator.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"appId":{"description":"Application id (defaults to session)","type":"string"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"}},"type":"object"},"name":"uninstall_app","title":"Uninstall app"},{"description":"Clear all data of an app (pm clear) — resets it to a fresh-install state.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"appId":{"description":"Application id (defaults to session)","type":"string"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"}},"type":"object"},"name":"clear_app_data","title":"Clear app data"},{"annotations":{"readOnlyHint":true},"description":"Get installed-app info from the device: version, target/min SDK, install path, running PID.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"appId":{"description":"Application id (defaults to session)","type":"string"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"}},"type":"object"},"name":"get_app_info","title":"Get app info"},{"annotations":{"readOnlyHint":true},"description":"List available Android Virtual Devices and which ones are currently running.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_avds","title":"List AVDs"},{"description":"Boot an AVD in the background and wait until Android finishes booting. Returns the adb serial. Set wipeData to factory-reset the AVD on boot.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"avdName":{"description":"AVD name from list_avds","type":"string"},"timeoutSeconds":{"description":"Boot timeout (default 180)","type":"integer"},"wipeData":{"description":"Factory-reset the AVD (erases all data)","type":"boolean"}},"required":["avdName"],"type":"object"},"name":"boot_emulator","title":"Boot emulator"},{"description":"Shut down a running emulator (adb emu kill).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"serial":{"description":"Emulator serial (defaults to session or the only device)","type":"string"}},"type":"object"},"name":"kill_emulator","title":"Kill emulator"},{"description":"Create an AVD from an installed system image (e.g. 'system-images;android-35;google_apis;arm64-v8a'). If systemImage is omitted, lists the installed images to choose from.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"device":{"description":"Device profile, e.g. 'pixel_7' (default: generic)","type":"string"},"name":{"description":"Name for the new AVD","type":"string"},"systemImage":{"description":"Installed system-images package id","type":"string"}},"required":["name"],"type":"object"},"name":"create_avd","title":"Create AVD"},{"description":"Delete an AVD permanently.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"name":{"description":"AVD name to delete","type":"string"}},"required":["name"],"type":"object"},"name":"delete_avd","title":"Delete AVD"},{"description":"Set the GPS location of a running emulator.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"latitude":{"description":"Latitude in decimal degrees","type":"number"},"longitude":{"description":"Longitude in decimal degrees","type":"number"},"serial":{"description":"Emulator serial (defaults to session or the only device)","type":"string"}},"required":["latitude","longitude"],"type":"object"},"name":"set_emulator_location","title":"Set emulator location"},{"description":"Switch a device/emulator between dark and light mode (cmd uimode night).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"mode":{"description":"Appearance to set","enum":["dark","light"],"type":"string"},"serial":{"description":"Emulator serial (defaults to session or the only device)","type":"string"}},"required":["mode"],"type":"object"},"name":"set_appearance","title":"Set dark/light mode"},{"description":"Enable clean status bar for screenshots (fixed clock, full battery, full signal) or disable it.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"clock":{"description":"Clock as hhmm, e.g. '1200' (default 1200)","type":"string"},"enabled":{"description":"true to enter demo mode, false to exit","type":"boolean"},"serial":{"description":"Emulator serial (defaults to session or the only device)","type":"string"}},"required":["enabled"],"type":"object"},"name":"statusbar_demo_mode","title":"Status bar demo mode"},{"description":"Start recording the device screen (adb screenrecord, max 3 minutes). Returns a recordingId for record_video_stop.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"serial":{"description":"Emulator serial (defaults to session or the only device)","type":"string"},"timeLimitSeconds":{"description":"Auto-stop after (default 180)","maximum":180,"type":"integer"}},"type":"object"},"name":"record_video_start","title":"Start screen recording"},{"description":"Stop a screen recording and pull the MP4 to the local machine.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"recordingId":{"description":"Id from record_video_start","type":"string"}},"required":["recordingId"],"type":"object"},"name":"record_video_stop","title":"Stop screen recording"},{"description":"Start capturing logcat to a file in the background. Filter by app (via its pid) and/or tag. Returns a sessionId for stop_log_capture. The app must be running to filter by appId.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"appId":{"description":"Only capture logs of this app (defaults to session appId; must be running)","type":"string"},"clear":{"description":"Clear the log buffer first (default true)","type":"boolean"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"},"tag":{"description":"Only capture this log tag (logcat '<tag>:V *:S')","type":"string"}},"type":"object"},"name":"start_log_capture","title":"Start log capture"},{"description":"Stop a log capture session and return the file path plus the last lines.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"sessionId":{"description":"Session id from start_log_capture","type":"string"},"tailLines":{"description":"Lines of tail to inline (default 60)","type":"integer"}},"required":["sessionId"],"type":"object"},"name":"stop_log_capture","title":"Stop log capture"},{"annotations":{"readOnlyHint":true},"description":"One-shot dump of recent logcat lines, optionally filtered by app (must be running) and/or tag.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"appId":{"description":"Filter to this app (defaults to session appId if running)","type":"string"},"lines":{"description":"Max lines (default 200)","type":"integer"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"},"tag":{"description":"Filter to this log tag","type":"string"}},"type":"object"},"name":"get_logs","title":"Get recent logs"},{"annotations":{"readOnlyHint":true},"description":"Dump the crash log buffer (Java exceptions, native crashes, ANRs).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"lines":{"description":"Max lines (default 300)","type":"integer"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"}},"type":"object"},"name":"get_crash_logs","title":"Get crash logs"},{"annotations":{"readOnlyHint":true},"description":"Take a screenshot of the device/emulator screen and return it as an image. With annotate: true (needs the Google android CLI), UI elements get numbered bounding boxes — including text inside images/WebViews that snapshot_ui cannot see.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"annotate":{"description":"Draw labeled bounding boxes around UI elements (vision-based)","type":"boolean"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"}},"type":"object"},"name":"screenshot","title":"Screenshot"},{"annotations":{"readOnlyHint":true},"description":"Dump the current UI as a compact list of actionable elements (text, id, content-desc, tap coordinates). Use the @(x,y) centers with tap/long_press. Text-heavy screens are capped; pass 'filter' to search within them.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"filter":{"description":"Only include elements whose text/desc/id contains this (case-insensitive)","type":"string"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"}},"type":"object"},"name":"snapshot_ui","title":"Snapshot UI hierarchy"},{"annotations":{"readOnlyHint":true},"description":"Tap the screen. Coordinates from snapshot_ui are exact device pixels — prefer them over estimating positions by looking at a screenshot image. Instead of pixels you can pass screen percentages (0-1): safer when estimating positions from a screenshot image.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"},"x":{"description":"X in device pixels","type":"integer"},"xPct":{"description":"X as fraction of screen width (0-1)","maximum":1,"minimum":0,"type":"number"},"y":{"description":"Y in device pixels","type":"integer"},"yPct":{"description":"Y as fraction of screen height (0-1)","maximum":1,"minimum":0,"type":"number"}},"type":"object"},"name":"tap","title":"Tap"},{"annotations":{"readOnlyHint":true},"description":"Tap element #N from the most recent screenshot { annotate: true } capture — no coordinate math needed. The mapping is exact even if your client displays the image scaled. Re-capture after the UI changes: element numbers go stale.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"element":{"description":"Element number from the annotated screenshot","minimum":0,"type":"integer"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"}},"required":["element"],"type":"object"},"name":"tap_element","title":"Tap annotated element"},{"annotations":{"readOnlyHint":true},"description":"Scroll the screen in a direction (computes a safe swipe in the middle of the screen, avoiding the status bar and navigation areas). Prefer this over raw swipe for scrolling.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"amount":{"description":"Fraction of screen to scroll (default 0.5)","maximum":1,"minimum":0.1,"type":"number"},"direction":{"description":"'down' reveals content below (finger moves up), 'up' reveals content above","enum":["down","up","left","right"],"type":"string"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"}},"required":["direction"],"type":"object"},"name":"scroll","title":"Scroll"},{"annotations":{"readOnlyHint":true},"description":"Long-press the screen at coordinates. Instead of pixels you can pass screen percentages (0-1): safer when estimating positions from a screenshot image.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"durationMs":{"description":"Press duration (default 1000ms — launchers ignore shorter holds)","type":"integer"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"},"x":{"description":"X in device pixels","type":"integer"},"xPct":{"description":"X as fraction of screen width (0-1)","maximum":1,"minimum":0,"type":"number"},"y":{"description":"Y in device pixels","type":"integer"},"yPct":{"description":"Y as fraction of screen height (0-1)","maximum":1,"minimum":0,"type":"number"}},"type":"object"},"name":"long_press","title":"Long press"},{"annotations":{"readOnlyHint":true},"description":"Swipe from one point to another (scrolling, dismissing). For drag-and-drop use drag instead. Instead of pixels you can pass screen percentages (0-1): safer when estimating positions from a screenshot image.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"durationMs":{"description":"Swipe duration (default 300ms)","type":"integer"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"},"x1":{"description":"Start X in device pixels","type":"integer"},"x1Pct":{"description":"Start X as fraction of width (0-1)","maximum":1,"minimum":0,"type":"number"},"x2":{"description":"End X in device pixels","type":"integer"},"x2Pct":{"description":"End X as fraction of width (0-1)","maximum":1,"minimum":0,"type":"number"},"y1":{"description":"Start Y in device pixels","type":"integer"},"y1Pct":{"description":"Start Y as fraction of height (0-1)","maximum":1,"minimum":0,"type":"number"},"y2":{"description":"End Y in device pixels","type":"integer"},"y2Pct":{"description":"End Y as fraction of height (0-1)","maximum":1,"minimum":0,"type":"number"}},"type":"object"},"name":"swipe","title":"Swipe"},{"annotations":{"readOnlyHint":true},"description":"Drag an element from one point to another (input draganddrop). Instead of pixels you can pass screen percentages (0-1): safer when estimating positions from a screenshot image.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"durationMs":{"description":"Drag duration (default 800ms)","type":"integer"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"},"x1":{"description":"Start X in device pixels","type":"integer"},"x1Pct":{"description":"Start X as fraction of width (0-1)","maximum":1,"minimum":0,"type":"number"},"x2":{"description":"End X in device pixels","type":"integer"},"x2Pct":{"description":"End X as fraction of width (0-1)","maximum":1,"minimum":0,"type":"number"},"y1":{"description":"Start Y in device pixels","type":"integer"},"y1Pct":{"description":"Start Y as fraction of height (0-1)","maximum":1,"minimum":0,"type":"number"},"y2":{"description":"End Y in device pixels","type":"integer"},"y2Pct":{"description":"End Y as fraction of height (0-1)","maximum":1,"minimum":0,"type":"number"}},"type":"object"},"name":"drag","title":"Drag and drop"},{"annotations":{"readOnlyHint":true},"description":"Type ASCII text into the focused field. Waits for the soft keyboard first, so it is safe to call right after tapping a field. Options: clear the field first, press ENTER after. Non-ASCII characters are not supported by adb input.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"clear":{"description":"Clear the field before typing (select-all + delete)","type":"boolean"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"},"submit":{"description":"Press ENTER after typing","type":"boolean"},"text":{"description":"Text to type (ASCII)","type":"string"}},"required":["text"],"type":"object"},"name":"type_text","title":"Type text"},{"annotations":{"readOnlyHint":true},"description":"Press a hardware/navigation key: BACK, HOME, ENTER, TAB, DELETE, ESCAPE, MENU, APP_SWITCH, DPAD_*, or any KEYCODE_ name.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"key":{"description":"Key name","type":"string"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"}},"required":["key"],"type":"object"},"name":"key_press","title":"Press key"},{"annotations":{"readOnlyHint":true},"description":"Press several keys in order (same names as key_press).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"keys":{"description":"Keys in press order","items":{"type":"string"},"minItems":1,"type":"array"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"}},"required":["keys"],"type":"object"},"name":"key_sequence","title":"Press key sequence"},{"annotations":{"readOnlyHint":true},"description":"Poll the UI until an element containing the given text / content-desc / resource-id appears. Returns its tap coordinates.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"match":{"description":"Substring to look for in text, content-desc or resource-id","type":"string"},"serial":{"description":"Device serial (defaults to session or the only device)","type":"string"},"timeoutSeconds":{"description":"Give up after this long (default 15)","type":"integer"}},"required":["match"],"type":"object"},"name":"wait_for_ui","title":"Wait for UI"},{"description":"Run a coverage Gradle task (Kover or Jacoco) and summarize line coverage per package. Tries koverXmlReport<Variant> by default; pass 'task' for a custom one (e.g. jacocoTestReport). The project must apply a coverage plugin.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"module":{"description":"Module (defaults to session)","type":"string"},"projectDir":{"description":"Project root (defaults to session)","type":"string"},"skipRun":{"description":"Only parse an existing report without running Gradle","type":"boolean"},"task":{"description":"Coverage task to run, e.g. 'koverXmlReportDebug'","type":"string"}},"type":"object"},"name":"get_coverage_report","title":"Get coverage report"},{"annotations":{"readOnlyHint":true},"description":"Show covered/uncovered line numbers of one source file from the latest coverage report (run get_coverage_report first).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"file":{"description":"Source file name, e.g. 'BookRepository.kt'","type":"string"},"module":{"description":"Module (defaults to session)","type":"string"},"projectDir":{"description":"Project root (defaults to session)","type":"string"}},"required":["file"],"type":"object"},"name":"get_file_coverage","title":"Get file coverage"},{"description":"Create a new minimal Jetpack Compose app project (single module, version catalog, Gradle wrapper included) ready to build with build_app.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"appName":{"description":"App name, e.g. 'My Notes'","pattern":"^[A-Za-z][\\w -]*$","type":"string"},"directory":{"description":"Directory to create the project in (must not exist or be empty)","type":"string"},"packageName":{"description":"Application id, e.g. 'com.example.mynotes'","pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$","type":"string"}},"required":["directory","appName","packageName"],"type":"object"},"name":"scaffold_android_project","title":"Scaffold Android project"}]}}}
