{"at":"2026-11-23T05:00:14.010Z","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-23T05:00:14.442Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T05:00:14.543Z","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-23T05:00:14.955Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"android","version":"1.0.0"}}}}
{"at":"2026-11-23T05:00:14.955Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:00:14.955Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:00:14.982Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"List connected Android devices and emulators","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_devices"},{"description":"List available Android Virtual Devices","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_avds"},{"description":"Start an Android emulator. Waits up to 60s for it to come online.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"avd_name":{"description":"Name of the AVD to start (from list_avds)","type":"string"}},"required":["avd_name"],"type":"object"},"name":"start_emulator"},{"description":"Take a screenshot of the Android device. Returns the image for visual analysis. Optionally saves to a file path.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"device_id":{"description":"Device ID (optional if only one device)","type":"string"},"save_path":{"description":"Local file path to save the screenshot PNG (optional)","type":"string"}},"type":"object"},"name":"screenshot"},{"description":"Get the UI element hierarchy of the current screen. Returns interactive elements with their bounds, text, resource IDs, and state. Use this to find elements before tapping.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"device_id":{"description":"Device ID (optional if only one device)","type":"string"}},"type":"object"},"name":"get_ui_tree"},{"description":"Tap at specific screen coordinates","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"device_id":{"description":"Device ID (optional if only one device)","type":"string"},"x":{"description":"X coordinate","type":"number"},"y":{"description":"Y coordinate","type":"number"}},"required":["x","y"],"type":"object"},"name":"tap"},{"description":"Tap a UI element by its resource-id, text, or content-desc. Finds the element in the UI tree and taps its center.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"by":{"description":"How to find the element","enum":["resource-id","text","content-desc"],"type":"string"},"device_id":{"description":"Device ID (optional if only one device)","type":"string"},"value":{"description":"Value to match","type":"string"}},"required":["by","value"],"type":"object"},"name":"tap_element"},{"description":"Tap element then wait for UI to settle and return the new UI tree. Combines tap + wait + get_ui_tree into a single fast operation.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"by":{"description":"How to find the element to tap","enum":["resource-id","text","content-desc"],"type":"string"},"device_id":{"description":"Device ID (optional if only one device)","type":"string"},"value":{"description":"Value to match","type":"string"},"wait_ms":{"default":1000,"description":"Time to wait for UI to settle after tap (default 1000ms)","type":"number"}},"required":["by","value"],"type":"object"},"name":"tap_and_wait"},{"description":"Type text into the currently focused input field","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"device_id":{"description":"Device ID (optional if only one device)","type":"string"},"text":{"description":"Text to type","type":"string"}},"required":["text"],"type":"object"},"name":"type_text"},{"description":"Press a hardware/software key","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"device_id":{"description":"Device ID (optional if only one device)","type":"string"},"key":{"description":"Key to press","enum":["back","home","enter","tab","delete","menu","recent_apps","volume_up","volume_down","power","search","dpad_up","dpad_down","dpad_left","dpad_right","dpad_center"],"type":"string"}},"required":["key"],"type":"object"},"name":"press_key"},{"description":"Perform a swipe gesture on the screen","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"device_id":{"description":"Device ID (optional if only one device)","type":"string"},"duration_ms":{"default":300,"description":"Swipe duration in ms (default 300)","type":"number"},"end_x":{"description":"End X coordinate","type":"number"},"end_y":{"description":"End Y coordinate","type":"number"},"start_x":{"description":"Start X coordinate","type":"number"},"start_y":{"description":"Start Y coordinate","type":"number"}},"required":["start_x","start_y","end_x","end_y"],"type":"object"},"name":"swipe"},{"description":"Scroll down repeatedly until an element matching the given criteria is visible","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"by":{"description":"How to find the element","enum":["resource-id","text","content-desc"],"type":"string"},"device_id":{"description":"Device ID (optional if only one device)","type":"string"},"max_scrolls":{"default":10,"description":"Maximum scroll attempts (default 10)","type":"number"},"value":{"description":"Value to match","type":"string"}},"required":["by","value"],"type":"object"},"name":"scroll_to_element"},{"description":"Wait for a UI element to appear on screen. Polls every 500ms.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"by":{"description":"How to find the element","enum":["resource-id","text","content-desc"],"type":"string"},"device_id":{"description":"Device ID (optional if only one device)","type":"string"},"timeout_ms":{"default":10000,"description":"Timeout in ms (default 10000)","type":"number"},"value":{"description":"Value to match","type":"string"}},"required":["by","value"],"type":"object"},"name":"wait_for_element"},{"description":"Launch an Android app by package name","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"activity":{"description":"Activity to launch (optional - launches default if omitted)","type":"string"},"device_id":{"description":"Device ID (optional if only one device)","type":"string"},"package_name":{"description":"App package name (e.g., com.android.settings)","type":"string"}},"required":["package_name"],"type":"object"},"name":"launch_app"},{"description":"Install an APK file on the device","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"apk_path":{"description":"Local path to the APK file","type":"string"},"device_id":{"description":"Device ID (optional if only one device)","type":"string"}},"required":["apk_path"],"type":"object"},"name":"install_apk"},{"description":"Get the currently displayed app and activity","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"device_id":{"description":"Device ID (optional if only one device)","type":"string"}},"type":"object"},"name":"get_current_activity"},{"description":"Run an arbitrary ADB shell command","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"command":{"description":"Shell command to execute on the device","type":"string"},"device_id":{"description":"Device ID (optional if only one device)","type":"string"}},"required":["command"],"type":"object"},"name":"adb_shell"},{"description":"Get device logcat output. Use to find crashes, exceptions, and errors after reproducing a bug.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"device_id":{"description":"Device ID (optional if only one device)","type":"string"},"level":{"description":"Minimum log level: V(erbose), D(ebug), I(nfo), W(arn), E(rror), F(atal)","enum":["V","D","I","W","E","F"],"type":"string"},"lines":{"default":200,"description":"Number of recent log lines to return (default 200)","type":"number"},"package_name":{"description":"Filter logs by app package name (e.g., com.example.app)","type":"string"},"since":{"description":"Show logs since timestamp (e.g., '2024-01-15 10:30:00.000')","type":"string"}},"type":"object"},"name":"get_logs"},{"description":"Clear the logcat buffer. Call this before reproducing a bug to get clean logs.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"device_id":{"description":"Device ID (optional if only one device)","type":"string"}},"type":"object"},"name":"clear_logs"},{"description":"Get device details: model, manufacturer, Android version, API level, screen size, and DPI.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"device_id":{"description":"Device ID (optional if only one device)","type":"string"}},"type":"object"},"name":"get_device_info"},{"description":"Pull a file from the Android device to the local filesystem.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"device_id":{"description":"Device ID (optional if only one device)","type":"string"},"local_path":{"description":"Local path to save the file to","type":"string"},"remote_path":{"description":"Path on the device (e.g., /sdcard/somefile.txt)","type":"string"}},"required":["remote_path","local_path"],"type":"object"},"name":"pull_file"}]}}}
