{"at":"2026-11-23T02:29:24.575Z","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-23T02:29:29.239Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T02:29:29.340Z","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-23T02:29:34.124Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true},"tools":{"listChanged":true}},"instructions":"Devicely controls real iOS and Android devices. You plan the steps; Devicely has no AI of its own here.\nWork in a loop: devicely_snapshot to read the screen, act (devicely_tap, devicely_type_text, devicely_swipe, devicely_launch_app, devicely_open_url, devicely_press_key), then snapshot again to confirm the result.\nRead the state before tapping a toggle, so you never switch off something that is already on.\nFor a sequence you already know, send it in one devicely_run_commands call; use devicely_commander to mirror the commander onto followers.\nA step reported as successful only means it was sent. Check the screen to know it worked.","protocolVersion":"2025-11-25","serverInfo":{"name":"devicely","version":"2.4.7"}}}}
{"at":"2026-11-23T02:29:34.124Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:29:34.124Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:29:34.130Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"List all devices managed by Devicely (physical phones, Android emulators, iOS simulators), including platform, model, connection type, status, and whether agent control is allowed. Prefer calling this first to discover available device identifiers.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"includeStopped":{"default":false,"description":"Whether to include stopped emulators and simulators in the list","type":"boolean"}},"type":"object"},"name":"devicely_list_devices"},{"description":"Initiate connection and start automation drivers (UIAutomator2 for Android, WebDriverAgent for iOS) on a target device. Idempotent: returns immediately if already connected. First-time iOS start may take 10-60s.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"device":{"description":"Target device name, serial, or UDID","type":"string"}},"required":["device"],"type":"object"},"name":"devicely_connect_device"},{"description":"Disconnect automation driver sessions from a device. Safe and idempotent.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"device":{"description":"Target device name, serial, or UDID","type":"string"}},"required":["device"],"type":"object"},"name":"devicely_disconnect_device"},{"description":"Reboot/restart connected mobile device(s). Destructive action gated by user policy. Use only when troubleshooting frozen system state.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"devices":{"description":"Target device name, serial, or UDID","type":"string"}},"required":["devices"],"type":"object"},"name":"devicely_restart_device"},{"description":"Set the screen-lock passcode/PIN on connected devices (default: every online device). Android is set via adb and verified on the device. iOS cannot be set programmatically: those devices return NOT_SUPPORTED_ON_IOS with the manual Settings steps - do not try to work around it with taps.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"devices":{"anyOf":[{"description":"Target device name, serial, UDID, or selector (\"all\", \"online\", \"commander\", \"followers\")","type":"string"},{"description":"Array of target device names, serials, or UDIDs","items":{"type":"string"},"type":"array"}],"description":"Target device(s); defaults to \"online\" (all connected devices)"},"oldPasscode":{"description":"Current PIN, required when the device already has a screen lock","pattern":"^\\d{4,16}$","type":"string"},"passcode":{"description":"New numeric passcode, 4-16 digits (e.g. \"111111\")","pattern":"^\\d{4,16}$","type":"string"}},"required":["passcode"],"type":"object"},"name":"devicely_set_passcode"},{"description":"Capture device screen state. Returns a downscaled JPEG screenshot (image content) and/or pruned interactive UI element tree with stable references (e.g. e1, e2). Prefer this before acting. Use returned element refs or coordinates directly in devicely_tap.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"device":{"description":"Target device name, serial, or UDID","type":"string"},"include":{"default":["image","elements"],"description":"Components to capture: \"image\" (screenshot), \"elements\" (interactive UI tree), or both","items":{"enum":["image","elements"],"type":"string"},"type":"array"},"interactiveOnly":{"default":true,"description":"Prune non-interactive containers to keep tokens minimal (default true)","type":"boolean"},"maxEdge":{"default":1280,"description":"Maximum pixel dimension for screenshot long edge","type":"number"},"maxElements":{"default":150,"description":"Maximum UI elements to return (capped at 500)","type":"number"},"query":{"description":"Filter UI elements by text, ID, or label substring","type":"string"}},"required":["device"],"type":"object"},"name":"devicely_snapshot"},{"description":"Fast, cheap lookup of UI elements by text or ID without capturing or transferring screenshot images. Useful for checking if buttons or labels are currently present.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"device":{"description":"Target device name, serial, or UDID","type":"string"},"max":{"default":20,"description":"Max elements to return","type":"number"},"query":{"description":"Text, label, or resource ID to search for","type":"string"}},"required":["device","query"],"type":"object"},"name":"devicely_find_elements"},{"description":"Tap an element or coordinate on one or more devices in parallel. Specify target by element ref (e.g. \"e1\"), text label, ID, or (x, y) coordinates. Set returnSnapshot=true to receive fresh post-tap screen verification in the same turn.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"devices":{"anyOf":[{"description":"Target device name, serial, UDID, or selector (\"all\", \"online\", \"commander\", \"followers\")","type":"string"},{"description":"Array of target device names, serials, or UDIDs","items":{"type":"string"},"type":"array"}]},"returnSnapshot":{"default":false,"description":"Return fresh screenshot and UI tree immediately after tap","type":"boolean"},"target":{"additionalProperties":false,"description":"Target element locator or coordinate","properties":{"exact":{"default":false,"description":"Whether text matching must be exact (case-sensitive)","type":"boolean"},"id":{"description":"Resource ID or Accessibility ID of the element","type":"string"},"index":{"default":0,"description":"Index if multiple elements match text/id (0-indexed)","type":"number"},"ref":{"description":"Element reference from a recent snapshot (e.g. \"e1\", \"e12\")","type":"string"},"snapshotId":{"description":"Snapshot ID that generated the ref or screenshot coordinates","type":"string"},"space":{"default":"screenshot","description":"Coordinate space for (x, y): \"screenshot\" (pixels in the snapshot image) or \"device\" (same units as element bounds/center: points on iOS, pixels on Android)","enum":["device","screenshot"],"type":"string"},"text":{"description":"Visible element text or accessibility label to match","type":"string"},"x":{"description":"X coordinate on screen","type":"number"},"y":{"description":"Y coordinate on screen","type":"number"}},"type":"object"}},"required":["devices","target"],"type":"object"},"name":"devicely_tap"},{"description":"Long-press on a target element or coordinate for a specified duration (default 800ms). Supports context menus and drag triggers.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"devices":{"anyOf":[{"description":"Target device name, serial, UDID, or selector (\"all\", \"online\", \"commander\", \"followers\")","type":"string"},{"description":"Array of target device names, serials, or UDIDs","items":{"type":"string"},"type":"array"}]},"durationMs":{"default":800,"description":"Press duration in milliseconds","type":"number"},"target":{"additionalProperties":false,"description":"Target element locator or coordinate","properties":{"exact":{"default":false,"description":"Whether text matching must be exact (case-sensitive)","type":"boolean"},"id":{"description":"Resource ID or Accessibility ID of the element","type":"string"},"index":{"default":0,"description":"Index if multiple elements match text/id (0-indexed)","type":"number"},"ref":{"description":"Element reference from a recent snapshot (e.g. \"e1\", \"e12\")","type":"string"},"snapshotId":{"description":"Snapshot ID that generated the ref or screenshot coordinates","type":"string"},"space":{"default":"screenshot","description":"Coordinate space for (x, y): \"screenshot\" (pixels in the snapshot image) or \"device\" (same units as element bounds/center: points on iOS, pixels on Android)","enum":["device","screenshot"],"type":"string"},"text":{"description":"Visible element text or accessibility label to match","type":"string"},"x":{"description":"X coordinate on screen","type":"number"},"y":{"description":"Y coordinate on screen","type":"number"}},"type":"object"}},"required":["devices","target"],"type":"object"},"name":"devicely_long_press"},{"description":"Perform a directional swipe or scroll on devices. Specify direction (\"up\", \"down\", \"left\", \"right\") or explicit start/end coordinates.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"devices":{"anyOf":[{"description":"Target device name, serial, UDID, or selector (\"all\", \"online\", \"commander\", \"followers\")","type":"string"},{"description":"Array of target device names, serials, or UDIDs","items":{"type":"string"},"type":"array"}]},"direction":{"description":"Swipe direction","enum":["up","down","left","right"],"type":"string"},"distance":{"default":0.5,"description":"Relative swipe distance (0.1 to 1.0)","maximum":1,"minimum":0,"type":"number"},"durationMs":{"default":500,"description":"Duration of swipe motion in ms","type":"number"},"from":{"additionalProperties":false,"description":"Start target/coordinate","properties":{"exact":{"default":false,"description":"Whether text matching must be exact (case-sensitive)","type":"boolean"},"id":{"description":"Resource ID or Accessibility ID of the element","type":"string"},"index":{"default":0,"description":"Index if multiple elements match text/id (0-indexed)","type":"number"},"ref":{"description":"Element reference from a recent snapshot (e.g. \"e1\", \"e12\")","type":"string"},"snapshotId":{"description":"Snapshot ID that generated the ref or screenshot coordinates","type":"string"},"space":{"default":"screenshot","description":"Coordinate space for (x, y): \"screenshot\" (pixels in the snapshot image) or \"device\" (same units as element bounds/center: points on iOS, pixels on Android)","enum":["device","screenshot"],"type":"string"},"text":{"description":"Visible element text or accessibility label to match","type":"string"},"x":{"description":"X coordinate on screen","type":"number"},"y":{"description":"Y coordinate on screen","type":"number"}},"type":"object"},"to":{"$ref":"#/properties/from","description":"End target/coordinate"}},"required":["devices"],"type":"object"},"name":"devicely_swipe"},{"description":"Type text into the currently focused input or into a specific target element. When sensitive=true, input is masked in audit logs and dashboard view for security.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"clearFirst":{"default":false,"description":"Clear existing text before typing","type":"boolean"},"devices":{"anyOf":[{"description":"Target device name, serial, UDID, or selector (\"all\", \"online\", \"commander\", \"followers\")","type":"string"},{"description":"Array of target device names, serials, or UDIDs","items":{"type":"string"},"type":"array"}]},"sensitive":{"default":false,"description":"Mask text in audit logs and dashboard UI","type":"boolean"},"submit":{"default":false,"description":"Press enter/return after typing","type":"boolean"},"target":{"additionalProperties":false,"description":"Optional target input field to focus first before typing","properties":{"exact":{"default":false,"description":"Whether text matching must be exact (case-sensitive)","type":"boolean"},"id":{"description":"Resource ID or Accessibility ID of the element","type":"string"},"index":{"default":0,"description":"Index if multiple elements match text/id (0-indexed)","type":"number"},"ref":{"description":"Element reference from a recent snapshot (e.g. \"e1\", \"e12\")","type":"string"},"snapshotId":{"description":"Snapshot ID that generated the ref or screenshot coordinates","type":"string"},"space":{"default":"screenshot","description":"Coordinate space for (x, y): \"screenshot\" (pixels in the snapshot image) or \"device\" (same units as element bounds/center: points on iOS, pixels on Android)","enum":["device","screenshot"],"type":"string"},"text":{"description":"Visible element text or accessibility label to match","type":"string"},"x":{"description":"X coordinate on screen","type":"number"},"y":{"description":"Y coordinate on screen","type":"number"}},"type":"object"},"text":{"description":"Text string to type into the field","type":"string"}},"required":["devices","text"],"type":"object"},"name":"devicely_type_text"},{"description":"Send standard hardware or system navigation keys to device(s): home, back, enter, recent (app switcher), lock, unlock, notifications, quicksettings, volume_up, volume_down.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"devices":{"anyOf":[{"description":"Target device name, serial, UDID, or selector (\"all\", \"online\", \"commander\", \"followers\")","type":"string"},{"description":"Array of target device names, serials, or UDIDs","items":{"type":"string"},"type":"array"}]},"key":{"description":"System key verb to press","enum":["home","back","enter","recent","notifications","quicksettings","lock","unlock","volume_up","volume_down"],"type":"string"}},"required":["devices","key"],"type":"object"},"name":"devicely_press_key"},{"description":"Launch an application on target device(s) by app name (e.g. \"settings\", \"camera\", \"youtube\") or bundle/package ID (e.g. \"com.android.settings\", \"com.apple.Preferences\").","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"app":{"description":"Friendly application name or bundle/package ID","type":"string"},"devices":{"anyOf":[{"description":"Target device name, serial, UDID, or selector (\"all\", \"online\", \"commander\", \"followers\")","type":"string"},{"description":"Array of target device names, serials, or UDIDs","items":{"type":"string"},"type":"array"}]}},"required":["devices","app"],"type":"object"},"name":"devicely_launch_app"},{"description":"Terminate/kill a running application on target device(s).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"app":{"description":"Application name or package/bundle ID to kill","type":"string"},"devices":{"anyOf":[{"description":"Target device name, serial, UDID, or selector (\"all\", \"online\", \"commander\", \"followers\")","type":"string"},{"description":"Array of target device names, serials, or UDIDs","items":{"type":"string"},"type":"array"}]}},"required":["devices","app"],"type":"object"},"name":"devicely_close_app"},{"description":"Open a URL or custom deep link on target device(s) using system browser or app handler. Only http, https, and recognized app schemes are allowed.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"devices":{"anyOf":[{"description":"Target device name, serial, UDID, or selector (\"all\", \"online\", \"commander\", \"followers\")","type":"string"},{"description":"Array of target device names, serials, or UDIDs","items":{"type":"string"},"type":"array"}]},"url":{"description":"HTTP/HTTPS or app deep link URL to open","format":"uri","type":"string"}},"required":["devices","url"],"type":"object"},"name":"devicely_open_url"},{"description":"Deterministic wait condition on a device. Polls until an element becomes visible, disappears, or text appears on screen. Capped at 60s.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"condition":{"default":"visible","description":"Condition to await: \"visible\" (element appears), \"gone\" (element disappears), \"text_present\"","enum":["visible","gone","text_present"],"type":"string"},"device":{"description":"Target device name, serial, or UDID","type":"string"},"target":{"additionalProperties":false,"description":"Target element ref, ID, or text to monitor","properties":{"exact":{"default":false,"description":"Whether text matching must be exact (case-sensitive)","type":"boolean"},"id":{"description":"Resource ID or Accessibility ID of the element","type":"string"},"index":{"default":0,"description":"Index if multiple elements match text/id (0-indexed)","type":"number"},"ref":{"description":"Element reference from a recent snapshot (e.g. \"e1\", \"e12\")","type":"string"},"snapshotId":{"description":"Snapshot ID that generated the ref or screenshot coordinates","type":"string"},"space":{"default":"screenshot","description":"Coordinate space for (x, y): \"screenshot\" (pixels in the snapshot image) or \"device\" (same units as element bounds/center: points on iOS, pixels on Android)","enum":["device","screenshot"],"type":"string"},"text":{"description":"Visible element text or accessibility label to match","type":"string"},"x":{"description":"X coordinate on screen","type":"number"},"y":{"description":"Y coordinate on screen","type":"number"}},"type":"object"},"timeoutMs":{"default":10000,"description":"Maximum wait timeout in milliseconds (max 60000ms)","type":"number"}},"required":["device","target"],"type":"object"},"name":"devicely_wait_for"},{"description":"Execute a multi-line Devicely DSL automation script across devices. Supports commands: tap <target>, longpress <target> <ms>, swipe <dir>, type \"<text>\", launch <app>, kill <app>, home, back, enter, url <url>, WAIT <ms>. Comments start with #.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"commands":{"description":"Multi-line Devicely DSL commands string","type":"string"},"devices":{"anyOf":[{"description":"Target device name, serial, UDID, or selector (\"all\", \"online\", \"commander\", \"followers\")","type":"string"},{"description":"Array of target device names, serials, or UDIDs","items":{"type":"string"},"type":"array"}]},"stopOnError":{"default":true,"description":"Halt execution if any step fails","type":"boolean"}},"required":["devices","commands"],"type":"object"},"name":"devicely_run_commands"},{"description":"Export a saved Devicely recording into a standard zero-AI CI test script. Supported frameworks: maestro (declarative YAML), appium-python (Pytest class), appium-java (JUnit 5 class), webdriverio (Mocha JS spec).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"format":{"default":"maestro","description":"Target test framework format","enum":["maestro","appium-python","appium-java","webdriverio"],"type":"string"},"recordingName":{"description":"Name of the saved recording to export","type":"string"}},"required":["recordingName"],"type":"object"},"name":"devicely_export_test"},{"description":"Manage Devicely Commander Mode (leader-follower mirroring). Actions performed on the commander leader device are automatically scaled and broadcast to all follower devices.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"action":{"description":"Commander action to perform","enum":["start","stop","add_follower","remove_follower","status"],"type":"string"},"device":{"description":"Target device name for start (as commander) or add/remove follower","type":"string"}},"required":["action"],"type":"object"},"name":"devicely_commander"},{"description":"List all saved Devicely test recordings available for replay.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"devicely_list_recordings"},{"description":"Save an action sequence or recent session history into a reusable Devicely recording file.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dsl":{"description":"Devicely DSL commands to save; omit to save successful actions from the current backend session","type":"string"},"name":{"description":"Recording name to save","minLength":1,"type":"string"}},"required":["name"],"type":"object"},"name":"devicely_save_recording"},{"description":"Replay a previously saved Devicely recording across target device(s). Executes commands sequentially with progress reporting.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"autoWaitTimeoutMs":{"description":"Auto-wait timeout per step in milliseconds (default 10000)","type":"number"},"devices":{"anyOf":[{"description":"Target device name, serial, UDID, or selector (\"all\", \"online\", \"commander\", \"followers\")","type":"string"},{"description":"Array of target device names, serials, or UDIDs","items":{"type":"string"},"type":"array"}]},"name":{"description":"Recording to replay: its filename (with or without .json) or the name it was saved under (newest wins if several share it)","type":"string"}},"required":["name","devices"],"type":"object"},"name":"devicely_replay_recording"},{"description":"Retrieve verified action history with precise locators, coordinates, and timings. Can export in JSON, Devicely DSL, or runnable Appium test code (JavaScript/Java) following the dynamic-first, coordinate-fallback pattern.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"device":{"description":"Filter action log to a specific device","type":"string"},"format":{"default":"json","description":"Output format: \"json\", \"dsl\", \"appium-js\", or \"appium-java\"","enum":["json","dsl","appium-js","appium-java"],"type":"string"},"since":{"description":"Filter actions occurred after this Unix timestamp in ms","type":"number"}},"type":"object"},"name":"devicely_get_action_log"},{"description":"List installed third-party or system applications and package bundle IDs on target device.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"device":{"description":"Target device name, serial, or UDID","type":"string"},"query":{"description":"Filter by package or app name substring","type":"string"}},"required":["device"],"type":"object"},"name":"devicely_list_apps"},{"description":"Install an application package (.apk, .ipa, .app) from the host machine onto target devices. Destructive action gated by user policy.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"devices":{"anyOf":[{"description":"Target device name, serial, UDID, or selector (\"all\", \"online\", \"commander\", \"followers\")","type":"string"},{"description":"Array of target device names, serials, or UDIDs","items":{"type":"string"},"type":"array"}]},"path":{"description":"Absolute file path on host machine to the application package","type":"string"}},"required":["devices","path"],"type":"object"},"name":"devicely_install_app"},{"description":"Uninstall an application by package ID or bundle name. Destructive action gated by user policy.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"app":{"description":"Package ID or bundle name to uninstall","type":"string"},"devices":{"anyOf":[{"description":"Target device name, serial, UDID, or selector (\"all\", \"online\", \"commander\", \"followers\")","type":"string"},{"description":"Array of target device names, serials, or UDIDs","items":{"type":"string"},"type":"array"}]}},"required":["devices","app"],"type":"object"},"name":"devicely_uninstall_app"},{"description":"Run environment and toolchain diagnostics on the Devicely host: Node, adb (+ mDNS), Python, Xcode (full vs Command Line Tools), libimobiledevice, iproxy, WebDriverAgent, emulators and simulators. Returns what is ready (readyFor) and the exact fix command for anything missing.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"devicely_doctor"},{"description":"Retrieve recent system log lines (logcat on Android, simctl log on iOS Simulator; a short live idevicesyslog capture on USB iPhones) for diagnostics or debugging crash stack traces.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"device":{"description":"Target device name, serial, or UDID","type":"string"},"grep":{"description":"Regex or string filter for log lines","type":"string"},"lines":{"default":100,"description":"Number of recent log lines to fetch (max 1000)","type":"number"}},"required":["device"],"type":"object"},"name":"devicely_get_device_logs"},{"description":"Boot an Android Virtual Device (AVD) emulator or iOS Simulator. Booting runs in the background and the device is connected automatically when ready; poll devicely_list_devices.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"headless":{"default":false,"description":"Run Android emulator in headless mode (-no-window)","type":"boolean"},"name":{"description":"Emulator AVD name or simulator UDID/name","type":"string"},"platform":{"description":"Platform: \"android\" or \"ios\"","enum":["android","ios"],"type":"string"}},"required":["platform","name"],"type":"object"},"name":"devicely_launch_virtual_device"},{"description":"Shutdown/stop a running Android emulator or iOS Simulator. Destructive action gated by user policy.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"name":{"description":"Virtual device name, serial, or UDID to terminate","type":"string"},"platform":{"description":"Platform: \"android\" or \"ios\"","enum":["android","ios"],"type":"string"}},"required":["platform","name"],"type":"object"},"name":"devicely_stop_virtual_device"}]}}}
