{"at":"2026-11-23T00:50:29.349Z","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-23T00:50:29.706Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"agent-device","version":"0.21.37"}},"cacheScope":"public","capabilities":{"tools":{}},"instructions":"agent-device drives iOS, Android, tvOS, Android TV, macOS, Linux, and web apps. Tools mirror CLI commands of the same name; CLI flags are camelCase properties (--settle -> settle: true). If your client defers tool schemas, load a tool's schema before its first call.\n\nStart: known app -> call open {app, foreground: true} at once; do not probe with devices, apps, appstate, snapshot, or screenshot first. open returns the initial interactive snapshot with @refs. Unknown app id: devices, then apps, then open the discovered id; never invent ids. Existing session: continue from its state, do not reopen.\n\nLoop: press/click/fill/longpress/hover/scroll/back with settle: true; the response is the settled UI diff, continue from it. To reach an off-screen target, scroll {direction, until: \"<selector>\"} scrolls until it is on screen in one call, and direction \"bottom\" runs to the end of the content; repeated bare scrolls are the slow way to find something. snapshot {interactiveOnly: true} only when the diff lacks the next target or did not settle. Verify with wait {kind: \"text\", text}, wait {selector}, wait {absent: selector}, is, get, or find; a bare screenshot is not verification. End with close.\n\nTargets are top-level arguments: press {ref: \"@e12\"}, click {selector: \"id=submit\"}, press {x, y}. Copy refs byte-for-byte (@e12, @e12~s4; keep @ and any ~sN). Refs go stale after mutations. Prefer refs, then id/label/role selectors; coordinates last. On a sparse/AX-unavailable warning its refs and selectors are invalid: screenshot, read the image, press {x, y}, then snapshot the changed screen.\n\nErrors carry hints; follow them instead of re-planning. Call help only for specialized work (gestures, scripting, TV, macOS, web, remote, debugging) or an unclear command shape, never at startup.","resultType":"complete","supportedVersions":["2026-07-28","2025-11-25","2025-06-18"],"ttlMs":3600000}}}
{"at":"2026-11-23T00:50:29.706Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T00:50:29.709Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"agent-device","version":"0.21.37"}},"cacheScope":"public","resultType":"complete","tools":[{"description":"Press the iPhone or iPad Action Button once. The press is dispatched without activating the session app and nothing is re-observed afterwards, so the app keeps the state the press found. What the system does with the press is not observed by this command: Simulators run no Shortcuts or App Intents, so delivery to an assigned Shortcut is verifiable only on a physical iPhone. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"action-button"},{"description":"Inspect, wait for, accept, or dismiss a platform alert. Use get before acting when the alert content matters; accept and dismiss change the active alert state. Each iOS XCTest execution activates once, then only observes. Apple XCTest and Limrun iOS choose recognized English labels by preference (Allow While Using App before Allow Once); on iOS simulators, including Limrun, the runner also recognizes the device's preferred languages' wording of those labels from the OS permission-prompt strings, on any alert; equal-ranked choices and unknown labels refuse, including a lone unknown button. Open, Done, and Confirm… accept; Keep Browsing, Deny, and Skip dismiss. On the Apple XCUITest runner, dismiss taps only a recognized decline label (Cancel, Don't Allow, Ask App Not to Track, and similar) or the close element of a popover whose accessibility marker reads exactly \"dismiss popup\"; when no button fits the action, accept and dismiss answer ALERT_BUTTON_NOT_FOUND having tapped nothing — read labels with alert get, then press the button by label. Inspect again after an unconfirmed action; never assume a timeout means nothing happened. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["get","accept","dismiss","wait"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"timeoutMs":{"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"alert"},{"description":"Open the device app switcher to inspect or change foreground apps. This changes the visible system UI and may move focus away from the current app. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"app-switcher"},{"description":"List the apps installed on the selected device. Include system or OEM apps only when they are needed as automation targets. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"appsFilter":{"description":"Restrict the listing to user-installed apps, or include system and OEM apps.","enum":["user-installed","all"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"apps"},{"description":"Show foreground app/activity (Android and HarmonyOS; iOS and macOS answer per session) Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"appstate"},{"description":"List daemon or cloud provider artifacts for an active or completed session. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"provider":{"description":"Cloud provider name, for example browserstack, aws-device-farm, or testmu.","type":"string"},"providerSessionId":{"description":"Cloud provider session id or ARN.","type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"artifacts"},{"description":"Measure browser or host-rendered simulator/emulator audio as compact dBFS buckets. Start a probe before requesting its status or stopping it. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["probe"],"type":"string"},"bucketMs":{"description":"Audio level bucket size in milliseconds.","type":"integer"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"durationMs":{"description":"Probe duration in milliseconds.","type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"probeAction":{"enum":["start","status","stop"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"audio"},{"description":"Navigate back in the app or through system navigation. Use in-app for the app navigation stack and system when the platform back behavior is required. On iOS both modes swipe from the left edge and succeed only when the app screen changes. Reason back_swipe_no_change: the swipe was sent and the screen did not change; press the visible back or close control. Reason back_swipe_unverified: the swipe may or may not have navigated, because the screen kept changing before it or could not be sampled after it; check with snapshot. Reason back_swipe_not_dispatched, or a screen that cannot be sampled before the swipe, means nothing was sent. An app with a left-edge drawer may open the drawer instead. Press a visible back or close control by its ref directly. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"mode":{"enum":["in-app","system"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"settle":{"description":"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.","type":"boolean"},"settleQuietMs":{"description":"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs.","minimum":0,"type":"integer"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"timeoutMs":{"description":"Settle: wait deadline in milliseconds (default 10000).","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"back"},{"description":"Execute multiple commands in one daemon request. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"maxSteps":{"description":"Maximum number of steps accepted for this batch.","maximum":1000,"minimum":1,"type":"integer"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"onError":{"description":"Batch failure policy.","enum":["stop"],"type":"string"},"out":{"description":"Optional output path for command artifacts.","type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"steps":{"description":"Structured batch steps. Each step uses a command name and the same input object as that command tool.","items":{"additionalProperties":false,"properties":{"command":{"description":"Command name to run with structured input.","enum":["devices","capabilities","doctor","apps","boot","shutdown","appstate","perf","logs","network","audio","test","clipboard","keyboard","install","reinstall","uninstall","push","trigger-app-event","open","close","snapshot","diff","wait","alert","settings","react-native","record","trace","find","click","fill","longpress","hover","press","type","get","is","back","gesture","home","tv-remote","orientation","fold","telephony","scroll","swipe","focus","screenshot","app-switcher","action-button","hardware-button","install-from-source"],"type":"string"},"input":{"additionalProperties":true,"commandInputFor":"command","description":"Structured command input for the nested command. Use the matching MCP tool schema for this object.","type":"object"},"runtime":{"additionalProperties":true,"description":"Optional per-step runtime payload.","type":"object"}},"required":["command","input"],"type":"object"},"type":"array"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["steps"],"type":"object"},"name":"batch"},{"description":"Boot or prepare the selected device or simulator so later commands can target it. The device is chosen through the device-selection inputs, not by naming it here. On Limrun, allocate or reuse an instance. Existing-instance credentials attach without creating one. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"headless":{"description":"Boot without showing simulator UI when supported.","type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"pick":{"description":"When no device is named and several equally preferred devices match, all shut down, boot one instead of failing: newest picks mobile over TV, then the newest OS version, then the first name in name order (numbers compared by value; not device age), which alone decides for stopped Android AVDs because they report no OS version. Several booted matches still fail.","enum":["newest"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"timeoutMs":{"description":"Startup budget in milliseconds. Bounds the boot wait, so a never-booted Simulator can finish its first-boot migration or a cold emulator its boot; omit for the default startup behavior.","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"boot"},{"description":"List the commands supported by the selected device or active session. Use device-selection inputs when checking support before a session is open. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"capabilities"},{"description":"Activate a UI target by snapshot ref, selector, or coordinates. Prefer a ref or selector after a snapshot; use coordinates only when semantic targeting is unavailable. This can change app state. Success means the click was dispatched, not that it landed: use settle or verify to confirm the result without a follow-up snapshot, or wait for the expected screen. A ref or selector target is re-checked for motion before dispatch when the session's previous action just animated the screen, and is dispatched at its resting position; one that has not stopped refuses with target_still_moving rather than acting where it was. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"button":{"description":"Pointer button for platforms that support mouse buttons.","enum":["primary","secondary","middle"],"type":"string"},"count":{"description":"Number of press/click repetitions.","minimum":1,"type":"integer"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"description":"Snapshot traversal depth.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"doubleTap":{"description":"Request a double-tap action.","type":"boolean"},"holdMs":{"description":"Hold duration for each action.","minimum":0,"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"intervalMs":{"description":"Delay between repeated press/click actions.","minimum":0,"type":"integer"},"jitterPx":{"description":"Deterministic per-axis coordinate jitter in pixels (each press offsets x and y by up to this amount).","minimum":0,"type":"integer"},"label":{"description":"Optional human label for ref.","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"description":"Use raw snapshot data during selector resolution.","type":"boolean"},"ref":{"description":"Snapshot element ref such as @e12. Pass exactly one of ref, selector, or x+y.","type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"description":"Snapshot scope selector used before resolution.","type":"string"},"selector":{"description":"Selector expression such as id=\"submit\" or label=\"Sign in\". Pass exactly one of ref, selector, or x+y.","type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"settle":{"description":"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.","type":"boolean"},"settleQuietMs":{"description":"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs.","minimum":0,"type":"integer"},"timeoutMs":{"description":"Settle: wait deadline in milliseconds (default 10000).","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"verify":{"description":"Capture cheap post-action evidence (AX digest, node counts, changedFromBefore) instead of a follow-up snapshot.","type":"boolean"},"x":{"description":"Screen x coordinate, with y. Pass exactly one of ref, selector, or x+y; use x+y only when no ref or selector is available.","type":"number"},"y":{"description":"Screen y coordinate, with x. Pass exactly one of ref, selector, or x+y.","type":"number"}},"type":"object"},"name":"click"},{"description":"Read the current device clipboard text, or replace its contents with the given text. Android runs both through the clipboard service shell command, and a build that implements none (Android 16 does not) refuses with UNSUPPORTED_OPERATION rather than reporting an empty clipboard. Times out after 90s.","inputSchema":{"additionalProperties":false,"oneOf":[{"properties":{"action":{"const":"write","type":"string"}},"required":["text"]},{"not":{"required":["text"]},"properties":{"action":{"const":"read","type":"string"}}}],"properties":{"action":{"enum":["read","write"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"text":{"description":"Text for write; required for write (\"\" clears the clipboard), refused for read.","type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["action"],"type":"object"},"name":"clipboard"},{"description":"Close the named app, or close the active session app when app is omitted. If the session booted a local simulator or emulator, add shutdown when you finish, unless the user asks to keep it running; close alone never stops the device. Android ADB close fails with android-app-close-timeout if the app stays foreground past 2s, a killed process does not exit within 10s, or a new process runs past 2s. It fails with android-process-probe-unavailable when adb pidof cannot list the app processes; if that happens before the force-stop, the app keeps running. If close cannot confirm its cleanup on a session that holds a device claim, the session and its claim stay; run close again with the same options to retry the cleanup, leaving out save-script once the script is published. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"app":{"description":"Optional app to close.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"force":{"description":"Overwrite an existing --save-script target instead of refusing (alias: --overwrite).","type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"saveScript":{"oneOf":[{"type":"boolean"},{"type":"string"}]},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"shutdown":{"description":"Shutdown the session/device where supported.","type":"boolean"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"close"},{"description":"Symbolicate Apple crash artifacts with matching dSYM UUIDs. This debug namespace is intentionally narrow: use logs for app logs, network for HTTP evidence, perf for performance samples, record/trace for media and traces, and react-devtools for React Native components and render profiles. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["symbols"],"type":"string"},"artifact":{"description":"Apple crash artifact path (.ips, .crash, or .log).","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"dsym":{"description":"Path to a matching .dSYM bundle.","type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"out":{"description":"Output path for the symbolicated artifact.","type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"searchPath":{"description":"Directory to scan for matching .dSYM bundles.","type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["action","artifact"],"type":"object"},"name":"debug"},{"description":"List available devices and simulators that can be selected for automation. Use platform, device, udid, or serial inputs on later commands to target one result. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"devices"},{"description":"Compare accessibility snapshots or screenshots to identify UI changes. Use snapshot comparisons for semantic tree changes and screenshot comparisons for pixel differences. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"interactiveOnly":{"type":"boolean"},"kind":{"const":"snapshot","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"out":{"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"type":"boolean"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["kind"],"type":"object"},"name":"diff"},{"description":"Diagnose device, app, development-server, and React Native or Expo readiness issues. Returns compact evidence for local inventory, sessions, optional app discovery, toolchains, and server reachability. On iOS simulators it also warms the XCTest runner build cache in the background when missing, so run it before the first Apple snapshot or interaction of a session. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"remote":{"description":"Check remote connection setup instead of local device inventory.","type":"boolean"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"targetApp":{"description":"Installed app package/bundle id or app name to verify without opening a session.","type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"doctor"},{"description":"Read the daemon-owned session event timeline as paged JSON-friendly entries Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"cursor":{"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"limit":{"type":"integer"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"events"},{"description":"Replace text in a UI input selected by snapshot ref, selector, or coordinates. Pass an empty text to clear the field. Inspect unconfirmed evidence and assert the expected value or resulting screen before continuing. Prefer refs or selectors after snapshot; use recordAs to keep sensitive text out of a recorded replay while sending it to the live app. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"delayMs":{"description":"Delay between typed characters.","minimum":0,"type":"integer"},"depth":{"description":"Snapshot traversal depth.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"label":{"description":"Optional human label for ref.","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"description":"Use raw snapshot data during selector resolution.","type":"boolean"},"recordAs":{"description":"When script recording is armed, send text to the live app but publish it as ${VAR}. Use an uppercase replay variable name such as PASSWORD.","type":"string"},"ref":{"description":"Snapshot element ref such as @e12. Pass exactly one of ref, selector, or x+y.","type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"description":"Snapshot scope selector used before resolution.","type":"string"},"selector":{"description":"Selector expression such as id=\"submit\" or label=\"Sign in\". Pass exactly one of ref, selector, or x+y.","type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"settle":{"description":"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.","type":"boolean"},"settleQuietMs":{"description":"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs.","minimum":0,"type":"integer"},"text":{"description":"Text to enter into the target. Pass \"\" to clear it.","type":"string"},"timeoutMs":{"description":"Settle: wait deadline in milliseconds (default 10000).","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"verify":{"description":"Capture cheap post-action evidence (AX digest, node counts, changedFromBefore) instead of a follow-up snapshot.","type":"boolean"},"x":{"description":"Screen x coordinate, with y. Pass exactly one of ref, selector, or x+y; use x+y only when no ref or selector is available.","type":"number"},"y":{"description":"Screen y coordinate, with x. Pass exactly one of ref, selector, or x+y.","type":"number"}},"required":["text"],"type":"object"},"name":"fill"},{"description":"Find by text/label/value/role/id and run action; the action defaults to click. The role locator matches snapshot kind vocabulary (button, text, text-field, switch, ...); pre-reconciliation leaf spellings (statictext, edittext, textview) stay accepted on the nodes that carried them during a deprecation window. The focus and type actions aim at a text field: the match or the field holding it, even beside other fields, or else the one enabled on-screen field inside the match. Several enabled on-screen fields inside the match refuse with AMBIGUOUS_MATCH and the field candidates, and a disabled target refuses with reason target_disabled. Web text boxes are not recognized as text fields. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["click","focus","exists","list","getText","getAttrs","wait","fill","type"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"first":{"type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"last":{"type":"boolean"},"locator":{"enum":["any","text","label","value","role","id"],"type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"query":{"type":"string"},"raw":{"type":"boolean"},"record":{"description":"Force-record this out-of-band observation into a repair-armed heal (mutually exclusive with noRecord). Authored replay steps are recorded automatically and never need this. On find, valid only for a read-only action.","type":"boolean"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"timeoutMs":{"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"value":{"type":"string"}},"required":["query"],"type":"object"},"name":"find"},{"description":"Move input focus to explicit screen coordinates without entering text. Prefer semantic interactions when a snapshot ref or selector is available; use type or fill after focus. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"x":{"description":"X coordinate.","type":"number"},"y":{"description":"Y coordinate.","type":"number"}},"required":["x","y"],"type":"object"},"name":"focus"},{"description":"Fold or unfold a foldable iPhone simulator (iPhone Duo) or a foldable Android emulator into the closed, half-open, or open pose. iOS sends a simulator HID hinge event, then reads the hinge angle back inside the simulator to confirm it, and can follow timestamped angle keyframes; Android sets the emulator console posture, then confirms the device state the guest commits and reports the angle read from the hinge sensor, which can differ from the AVD profile's per-posture angles, and dismisses the lock screen a fold to the cover display can raise. On iOS a pose change moves the app to a different panel with a different point size; on Android a fold to or from closed moves the app between the cover and inner displays, and any pose change can reshape the app window, whose size the next snapshot reports. Either way every ref and coordinate from before it is stale: re-snapshot after this command. Taps, long presses, and scrolling target the app window on its current panel in closed, half-open, and open poses. Simulator and emulator only; iOS requires the iOS simulator SDK; Device Hub and host Accessibility permission are not required. An iOS simulator in a scoped simulator set folds the same way as one in the default set. Times out after 255s.","inputSchema":{"additionalProperties":false,"oneOf":[{"not":{"required":["keyframes"]},"required":["pose"]},{"not":{"required":["pose"]},"required":["keyframes"]}],"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"keyframes":{"description":"Piecewise-linear hinge motion. Start at 0ms; strictly increasing timestamps, up to 60000ms. Repeated angles create holds. Mutually exclusive with pose.","items":{"additionalProperties":false,"properties":{"angle":{"maximum":180,"minimum":0,"type":"number"},"atMs":{"maximum":60000,"minimum":0,"type":"integer"}},"required":["atMs","angle"],"type":"object"},"maxItems":64,"minItems":2,"type":"array"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"pose":{"description":"Instant preset; mutually exclusive with keyframes.","enum":["closed","half-open","open"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"fold"},{"description":"Perform a structured pan, fling, swipe, pinch, rotate, transform, tap, or drag gesture. Select the gesture kind, then provide only the inputs that apply to that kind. A tap touches 2 to 5 points at once; repeat it with count and pauseMs. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"count":{"description":"Tap repetitions; the same contacts run this many times.","maximum":200,"minimum":1,"type":"integer"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"degrees":{"description":"Rotation in degrees.","type":"number"},"delta":{"additionalProperties":false,"description":"Movement delta for pan or transform gestures.","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"destination":{"description":"Drag destination @ref or selector.","type":"string"},"destinationHoldMs":{"description":"Hold before releasing at the destination.","maximum":10000,"minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"direction":{"description":"Fling direction.","enum":["up","down","left","right"],"type":"string"},"distance":{"description":"Fling distance.","minimum":0,"type":"integer"},"durationMs":{"description":"Pan/transform duration.","maximum":10000,"minimum":16,"type":"integer"},"holdMs":{"description":"Tap contact hold duration.","maximum":10000,"minimum":16,"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"kind":{"description":"Gesture variant.","enum":["pan","fling","swipe","pinch","rotate","transform","tap","drag"],"type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"moveMs":{"description":"Drag movement duration.","maximum":10000,"minimum":16,"type":"integer"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"origin":{"additionalProperties":false,"description":"Gesture origin point.","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"pauseMs":{"description":"Delay between tap repetitions, added to each repetition’s own time.","maximum":10000,"minimum":0,"type":"integer"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"pointerCount":{"description":"Pan touch pointer count (1 or 2).","maximum":2,"minimum":1,"type":"integer"},"points":{"description":"Tap contact points, held together for holdMs.","items":{"additionalProperties":false,"description":"One contact point.","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"maxItems":5,"minItems":2,"type":"array"},"preset":{"description":"Swipe preset.","enum":["left","right","left-edge","right-edge"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scale":{"description":"Pinch or transform scale.","type":"number"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"source":{"description":"Drag source @ref or selector.","type":"string"},"sourceHoldMs":{"description":"Drag activation hold duration.","maximum":10000,"minimum":1,"type":"integer"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["kind"],"type":"object"},"name":"gesture"},{"description":"Read text or accessibility attributes from a snapshot ref or selector without changing the app. Use format text for visible content or attrs for the element attribute map. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"description":"Snapshot traversal depth.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"format":{"enum":["text","attrs"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"label":{"description":"Optional human label for ref.","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"description":"Use raw snapshot data during selector resolution.","type":"boolean"},"record":{"description":"Force-record this out-of-band observation into a repair-armed heal (mutually exclusive with noRecord). Authored replay steps are recorded automatically and never need this. On find, valid only for a read-only action.","type":"boolean"},"ref":{"description":"Snapshot element ref such as @e12. Pass exactly one of ref or selector.","type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"description":"Snapshot scope selector used before resolution.","type":"string"},"selector":{"description":"Selector expression such as id=\"submit\" or label=\"Sign in\". Pass exactly one of ref or selector.","type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["format"],"type":"object"},"name":"get"},{"description":"Press a phone hardware button once: volume-up, volume-down, power, mute, sleep, wake, media-play-pause, media-next, media-previous, media-rewind, or media-fast-forward. The press is dispatched without activating the session app and nothing is re-observed afterwards, so the OS decides what the key does — which audio stream a volume press moves, which media session a media key reaches, and whether the HUD shows, is device behavior this command does not claim. Power toggles the Android screen; sleep and wake are the explicit Android events that turn it off or on without toggling, and after a press that turns it off, later commands may hit a locked screen. Android (ADB-backed and Appium) presses all eleven on phones and tablets; a physical iPhone or iPad presses volume only through the local runner or Appium, never power, mute, sleep, wake, or media. iOS Simulators, Android TV and tvOS targets refuse: on TV targets use tv-remote. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"button":{"description":"One press each. volume-up and volume-down move the system volume stream the OS selects; power toggles the screen on Android; sleep and wake are the explicit Android events that turn the screen off or on without toggling; mute, media-play-pause, media-next, media-previous, media-rewind, and media-fast-forward are Android keys the OS routes to its own streams and media sessions. All of these except volume are refused on every Apple leaf.","enum":["volume-up","volume-down","power","mute","sleep","wake","media-play-pause","media-next","media-previous","media-rewind","media-fast-forward"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["button"],"type":"object"},"name":"hardware-button"},{"description":"Send the selected device to its home screen. This leaves the app session open but moves the foreground away from the app. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"home"},{"description":"Move the pointer over a UI target by snapshot ref, selector, or coordinates without pressing, to reveal hover-gated UI such as row toolbars or menus. Web only; touch platforms have no hover state. Use settle to observe what the hover revealed without a follow-up snapshot. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"description":"Snapshot traversal depth.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"label":{"description":"Optional human label for ref.","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"description":"Use raw snapshot data during selector resolution.","type":"boolean"},"ref":{"description":"Snapshot element ref such as @e12. Pass exactly one of ref, selector, or x+y.","type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"description":"Snapshot scope selector used before resolution.","type":"string"},"selector":{"description":"Selector expression such as id=\"submit\" or label=\"Sign in\". Pass exactly one of ref, selector, or x+y.","type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"settle":{"description":"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.","type":"boolean"},"settleQuietMs":{"description":"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs.","minimum":0,"type":"integer"},"timeoutMs":{"description":"Settle: wait deadline in milliseconds (default 10000).","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"x":{"description":"Screen x coordinate, with y. Pass exactly one of ref, selector, or x+y; use x+y only when no ref or selector is available.","type":"number"},"y":{"description":"Screen y coordinate, with x. Pass exactly one of ref, selector, or x+y.","type":"number"}},"type":"object"},"name":"hover"},{"description":"Install an app binary from a local path. Provide an app identifier with the path when the target needs explicit app selection; use reinstall to replace an already installed app. Local Android and iOS install steps time out after 120s; the command allows 480s including device startup. Times out after 480s.","inputSchema":{"additionalProperties":false,"properties":{"app":{"description":"Optional app identifier hint.","type":"string"},"appPath":{"description":"Path to app binary.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceBaseline":{"description":"Proxy lease: saved device state (baseline) to restore on the leased device. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceMode":{"description":"Proxy lease: iOS simulator mode, slim or full. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"imageTag":{"description":"Proxy lease: Android system image tag, for example google_apis_playstore. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"osVersion":{"description":"Proxy lease: OS version or range, for example 18.6.2 or \">=26\" (Android: API level). Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"physical":{"description":"Proxy lease: true requests a physical device; false selects nothing. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["appPath"],"type":"object"},"name":"install"},{"description":"Install app builds from URLs, remote source specs, or CI artifacts resolved by a remote daemon. The command allows 600s, including up to 120s for the download; local Android and iOS install steps time out after 120s. Times out after 600s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"retainPaths":{"type":"boolean"},"retentionMs":{"description":"When retainPaths is true, keep downloaded and extracted files for this many milliseconds.","maximum":2147483647,"minimum":1,"type":"integer"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"source":{"additionalProperties":true,"description":"Install source object.","type":"object"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["source"],"type":"object"},"name":"install-from-source"},{"description":"Check whether a selector satisfies a UI predicate such as visible, hidden, exists, absent, editable, selected, focused, or text. `absent` passes only when one readable, complete, settled, unscoped, full-depth accessibility capture has zero matches. Use wait when the condition may appear asynchronously. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"description":"Snapshot traversal depth.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"predicate":{"enum":["visible","hidden","exists","absent","editable","selected","focused","text"],"type":"string"},"raw":{"description":"Use raw snapshot data during selector resolution.","type":"boolean"},"record":{"description":"Force-record this out-of-band observation into a repair-armed heal (mutually exclusive with noRecord). Authored replay steps are recorded automatically and never need this. On find, valid only for a read-only action.","type":"boolean"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"description":"Snapshot scope selector used before resolution.","type":"string"},"selector":{"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"value":{"type":"string"}},"required":["predicate","selector"],"type":"object"},"name":"is"},{"description":"Inspect Android keyboard visibility/type or press/dismiss the device keyboard. To hide the keyboard, use keyboard dismiss. It taps the keyboard dismiss/hide key when one is exposed, verifies the keyboard closed, and reports UNSUPPORTED_OPERATION when no dismiss key exists — background taps are never attempted. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["status","dismiss","enter","return"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"keyboard"},{"description":"Session app log info, start/stop streaming, diagnostics, and markers Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["path","start","stop","doctor","mark","clear"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"message":{"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"restart":{"type":"boolean"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"logs"},{"description":"Hold a UI target by snapshot ref, selector, or coordinates to open a context menu or perform another hold gesture. Set durationMs when the default hold duration is unsuitable. Times out after 320s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"description":"Snapshot traversal depth.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"durationMs":{"description":"Long press duration in milliseconds.","minimum":0,"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"label":{"description":"Optional human label for ref.","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"description":"Use raw snapshot data during selector resolution.","type":"boolean"},"ref":{"description":"Snapshot element ref such as @e12. Pass exactly one of ref, selector, or x+y.","type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"description":"Snapshot scope selector used before resolution.","type":"string"},"selector":{"description":"Selector expression such as id=\"submit\" or label=\"Sign in\". Pass exactly one of ref, selector, or x+y.","type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"settle":{"description":"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.","type":"boolean"},"settleQuietMs":{"description":"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs.","minimum":0,"type":"integer"},"timeoutMs":{"description":"Settle: wait deadline in milliseconds (default 10000).","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"x":{"description":"Screen x coordinate, with y. Pass exactly one of ref, selector, or x+y; use x+y only when no ref or selector is available.","type":"number"},"y":{"description":"Screen y coordinate, with x. Pass exactly one of ref, selector, or x+y.","type":"number"}},"type":"object"},"name":"longpress"},{"description":"Prepare a React Native development server or ask connected apps to reload, using the development server this session is bound to. Provide explicit runtime inputs only to override that binding for one call. The binding is cleared when the session closes, and a fresh open without runtime hints also clears any leftover binding from a previous same-name session. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["prepare","reload"],"type":"string"},"bridgeScope":{"additionalProperties":true,"type":"object"},"bundleUrl":{"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"installDependenciesIfNeeded":{"type":"boolean"},"kind":{"type":"string"},"launchUrl":{"type":"string"},"listenHost":{"type":"string"},"logPath":{"type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"metroHost":{"type":"string"},"metroPort":{"type":"integer"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"port":{"type":"integer"},"probeTimeoutMs":{"type":"integer"},"projectRoot":{"type":"string"},"publicBaseUrl":{"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"reuseExisting":{"type":"boolean"},"runtimeFilePath":{"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"startupTimeoutMs":{"type":"integer"},"statusHost":{"type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"timeoutMs":{"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["action"],"type":"object"},"name":"metro"},{"description":"Dump recent HTTP(s) traffic parsed from the session app log Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["dump","log"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"include":{"enum":["summary","headers","body","all"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"limit":{"type":"integer"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"network"},{"description":"Boot the selected device when needed, then open an app, deep link, or URL in a session. Use the app or URL inputs to choose what becomes the foreground automation target. Remote daemons refuse file: URLs in open targets and launch URLs with reason REMOTE_HOST_INPUT_DENIED. Serve local web content over HTTP(S) instead. metroHost, metroPort, and bundleUrl choose the app's Metro server and save its address for later reloads. launchUrl selects the app's launch URL and does not select the reload server. A fresh open without Metro hints clears an older same-name binding; close also clears it. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"activity":{"description":"Android activity name.","type":"string"},"app":{"description":"App name, bundle id, package, or URL.","type":"string"},"bundleUrl":{"description":"Session-scoped bundle URL hint applied to the opened app.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceBaseline":{"description":"Proxy lease: saved device state (baseline) to restore on the leased device. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceMode":{"description":"Proxy lease: iOS simulator mode, slim or full. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"force":{"description":"Overwrite an existing --save-script target instead of refusing (alias: --overwrite).","type":"boolean"},"foreground":{"description":"Include an initial interactive snapshot in a fresh open response. With no app argument, discover the sole running app on the sole booted iOS simulator; ambiguous environments fail closed.","type":"boolean"},"imageTag":{"description":"Proxy lease: Android system image tag, for example google_apis_playstore. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"launchArgs":{"description":"Launch arguments forwarded verbatim to the platform launch command.","items":{"type":"string"},"type":"array"},"launchConsole":{"description":"File path on the daemon host for the stdout and stderr of the initial app launch. Local or Limrun iOS simulator direct app launches only; not for URL opens.","type":"string"},"launchUrl":{"description":"Launch URL for the opened app; does not select the server used by metro reload.","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"metroHost":{"description":"Session-scoped Metro/debug host hint applied to the opened app.","type":"string"},"metroPort":{"description":"Session-scoped Metro/debug port hint applied to the opened app. Without metroHost, emulators and simulators use the loopback alias; physical devices need metroHost.","maximum":65535,"minimum":1,"type":"integer"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"osVersion":{"description":"Proxy lease: OS version or range, for example 18.6.2 or \">=26\" (Android: API level). Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"physical":{"description":"Proxy lease: true requests a physical device; false selects nothing. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"relaunch":{"description":"Force relaunch.","type":"boolean"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"saveScript":{"oneOf":[{"type":"boolean"},{"type":"string"}]},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"surface":{"description":"macOS presentation surface to open: the app itself, the frontmost app, the desktop, or the menu bar.","enum":["app","frontmost-app","desktop","menubar"],"type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"testIme":{"description":"Activate the headless Android test IME for deterministic Unicode text entry (default on for emulators; opt-in on real devices).","type":"boolean"},"timeoutMs":{"description":"Startup budget in milliseconds. Bounds the Simulator boot wait, so a never-booted Simulator can finish its first-boot migration; omit for the default startup behavior.","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"url":{"description":"Optional URL passed with an app shell.","type":"string"},"waitMs":{"description":"Wait up to n milliseconds (100-120000) while another session holds the device, then fail with DEVICE_IN_USE. A claim held by another workspace fails at once. The wait extends this command's timeout.","maximum":120000,"minimum":100,"type":"integer"}},"type":"object"},"name":"open"},{"description":"Set device orientation on iOS and Android. auto hands rotation back to the sensor on ADB-backed Android (local and Limrun); other backends refuse it. A foldable iPhone simulator (iPhone Duo) refuses portrait-upside-down, and refuses every rotation in a scoped simulator set. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"orientation":{"enum":["portrait","portrait-upside-down","landscape-left","landscape-right","auto"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["orientation"],"type":"object"},"name":"orientation"},{"description":"Collect frame health, memory diagnostics, and platform profiling artifacts with compact agent-readable summaries. For CPU profiles, start and stop write the raw artifact while report writes a compact summary; request the report when the task needs readable native CPU evidence. Profiling output is evidence only: compact state, artifact path, and size. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["sample","snapshot","start","stop","report"],"type":"string"},"area":{"enum":["frames","memory","cpu","trace"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"kind":{"enum":["xctrace","simpleperf","perfetto","android-hprof","memgraph"],"type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"out":{"description":"Output artifact path.","type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"subject":{"enum":["profile"],"type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"template":{"description":"xctrace template name, for example Time Profiler.","type":"string"},"tracePath":{"description":"Existing .trace path to report, defaults to the latest session trace.","type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["area"],"type":"object"},"name":"perf"},{"description":"Short-press a UI target by snapshot ref, selector, or coordinates. Use longpress instead when the target requires a context-menu or hold gesture. Success means the press was dispatched, not that it landed: use settle or verify to confirm the result, or wait for the expected screen. A ref or selector target is re-checked for motion before dispatch when the session's previous action just animated the screen, and is dispatched at its resting position; one that has not stopped refuses with target_still_moving rather than acting where it was. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"count":{"description":"Number of press/click repetitions.","minimum":1,"type":"integer"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"description":"Snapshot traversal depth.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"doubleTap":{"description":"Request a double-tap action.","type":"boolean"},"holdMs":{"description":"Hold duration for each action.","minimum":0,"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"intervalMs":{"description":"Delay between repeated press/click actions.","minimum":0,"type":"integer"},"jitterPx":{"description":"Deterministic per-axis coordinate jitter in pixels (each press offsets x and y by up to this amount).","minimum":0,"type":"integer"},"label":{"description":"Optional human label for ref.","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"description":"Use raw snapshot data during selector resolution.","type":"boolean"},"ref":{"description":"Snapshot element ref such as @e12. Pass exactly one of ref, selector, or x+y.","type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"description":"Snapshot scope selector used before resolution.","type":"string"},"selector":{"description":"Selector expression such as id=\"submit\" or label=\"Sign in\". Pass exactly one of ref, selector, or x+y.","type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"settle":{"description":"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.","type":"boolean"},"settleQuietMs":{"description":"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs.","minimum":0,"type":"integer"},"timeoutMs":{"description":"Settle: wait deadline in milliseconds (default 10000).","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"verify":{"description":"Capture cheap post-action evidence (AX digest, node counts, changedFromBefore) instead of a follow-up snapshot.","type":"boolean"},"x":{"description":"Screen x coordinate, with y. Pass exactly one of ref, selector, or x+y; use x+y only when no ref or selector is available.","type":"number"},"y":{"description":"Screen y coordinate, with x. Pass exactly one of ref, selector, or x+y.","type":"number"}},"type":"object"},"name":"press"},{"description":"Deliver push notification payloads to an installed app. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"app":{"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"payload":{"oneOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["app","payload"],"type":"object"},"name":"push"},{"description":"Run supported React Native automation helpers. Use dismiss-overlay to close a visible development error overlay before continuing normal UI automation. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["dismiss-overlay"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["action"],"type":"object"},"name":"react-native"},{"description":"Start or stop a screen recording for the active app session or, where supported, the selected device, or build a contact-sheet PNG from a recording already exported. Long Android recordings can return multiple video artifacts; HarmonyOS supports whole-screen recording on physical devices. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["start","stop"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"fps":{"type":"integer"},"hideTouches":{"type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"path":{"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"quality":{"enum":["medium","high"],"type":"string"},"recordingScope":{"enum":["app","device","system"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["action"],"type":"object"},"name":"record"},{"description":"Replace an installed app with a binary from a local path. Use this when preserving the same app identity while installing a new build on the selected device. Local Android and iOS install steps time out after 120s; the command allows 480s including device startup and uninstall. Times out after 480s.","inputSchema":{"additionalProperties":false,"properties":{"app":{"type":"string"},"appPath":{"description":"Path to app binary.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceBaseline":{"description":"Proxy lease: saved device state (baseline) to restore on the leased device. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceMode":{"description":"Proxy lease: iOS simulator mode, slim or full. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"imageTag":{"description":"Proxy lease: Android system image tag, for example google_apis_playstore. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"osVersion":{"description":"Proxy lease: OS version or range, for example 18.6.2 or \">=26\" (Android: API level). Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"physical":{"description":"Proxy lease: true requests a physical device; false selects nothing. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["app","appPath"],"type":"object"},"name":"reinstall"},{"description":"Run a recorded automation script, including compatible Maestro YAML flows. A script without a terminal close leaves its session active for subsequent automation. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"backend":{"type":"string"},"bundleUrl":{"description":"Bundle URL hint inherited by replay-opened sessions.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"env":{"items":{"type":"string"},"type":"array"},"force":{"type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"keepSession":{"description":"Leave the session active by suppressing exactly an authored terminal close in native .ad.","type":"boolean"},"maestro":{"type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"metroHost":{"description":"Metro/debug host hint inherited by replay-opened sessions.","type":"string"},"metroPort":{"description":"Metro/debug port hint inherited by replay-opened sessions.","type":"integer"},"path":{"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"resumeFrom":{"type":"integer"},"resumePlanDigest":{"type":"string"},"saveScript":{"oneOf":[{"type":"boolean"},{"type":"string"}]},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"testIme":{"description":"Activate the headless Android test IME for the sessions this replay opens (default on for emulators; opt-in on real devices).","type":"boolean"},"timeoutMs":{"description":"Operation wall-clock budget in milliseconds (default 60000). The client allows another 30000 milliseconds for the daemon result.","type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"update":{"type":"boolean"}},"required":["path"],"type":"object"},"name":"replay"},{"description":"Capture a screenshot of the active app or web session. Choose the capture scope, density, size, or annotations through the corresponding input fields when needed. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"captureBackend":{"description":"Capture through the XCTest runner instead of the platform default, which leaves out the simulator-drawn Dynamic Island. Local Apple targets only; refused on provider sessions and on a macOS surface the helper captures, and with pixelDensity, screenMask or normalizeStatusBar.","enum":["runner"],"type":"string"},"cropOn":{"description":"Selector expression; the capture is cropped to the frame the selector resolves on the same screen.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"fullscreen":{"type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"normalizeStatusBar":{"type":"boolean"},"overlayRefs":{"type":"boolean"},"path":{"description":"Output path.","type":"string"},"pixelDensity":{"description":"Output screenshot pixel density in pixels per logical point.","minimum":1,"type":"integer"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scale":{"description":"Screenshot scale factor.","maximum":1,"minimum":0.01,"type":"number"},"screenMask":{"description":"Fill the iOS simulator screen outline with black for this capture. Requires simctl; omit for the default image.","enum":["black"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"stabilize":{"type":"boolean"},"surface":{"enum":["app","frontmost-app","desktop","menubar"],"type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"screenshot"},{"description":"Scroll in a direction, or toward the top/bottom edge of scrollable content. Set until to a selector to reach an off-screen target in one command rather than a scroll-and-check loop. The optional amount is the finger-path fraction of the viewport axis, honored up to 0.8 of it; directional scrolls reduce release momentum, while app scroll physics determine the final content offset. A visible keyboard shortens the swiped band instead of being dismissed; when too little is left, the command refuses with scroll_keyboard_occludes_surface. A directional scroll also reports the movement it observed as movement: moved, at-edge, unchanged, or unobserved when the two reads could not back a claim either way; an unchanged surface inside a container that still hides content in that direction refuses with scroll_no_progress rather than repeating the requested distance. The movement field is absent where a tier verifies per pass (top/bottom, until), where the runtime cannot read a screen, where a settle observation or a replay already owns that observation, or where the operator opted out of it. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"amount":{"description":"Platform scroll amount.","type":"number"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"direction":{"enum":["up","down","left","right","top","bottom"],"type":"string"},"durationMs":{"description":"Scroll duration in milliseconds when the backend supports pacing.","maximum":10000,"minimum":0,"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"maxPasses":{"description":"Maximum scroll gestures for an until search (default 12). Requires until.","maximum":200,"minimum":1,"type":"integer"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"pixels":{"description":"Pixel scroll amount.","minimum":0,"type":"integer"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"settle":{"description":"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.","type":"boolean"},"settleQuietMs":{"description":"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs.","minimum":0,"type":"integer"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"timeoutMs":{"description":"Settle: wait deadline in milliseconds (default 10000).","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"until":{"description":"Repeat scroll passes until this selector is visible on screen, then stop. Not valid with the top/bottom edge directions, which carry their own stop condition.","type":"string"}},"required":["direction"],"type":"object"},"name":"scroll"},{"description":"List active sessions, print the effective daemon state directory, or publish an armed open-to-destination script without closing its session Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"list shows active sessions; state-dir prints the daemon state directory; save-script publishes an armed recording without teardown.","enum":["list","state-dir","save-script"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"force":{"description":"Atomically replace an existing save-script target.","type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"path":{"description":"Optional .ad output path for save-script.","type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"session"},{"description":"Read or change supported operating-system settings, animation scales, appearance, or app permissions on the selected target. Platform support varies by setting and action. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"app":{"description":"App the change targets, by bundle id, package name, or app name: the app `clear-app-state` clears, or the app a `permission` change (or an iOS-simulator `location on|off` privacy change) lands on. A name resolves to the installed app as `open` resolves it: an iOS simulator, local or Limrun, matches display names and accepts only an installed bundle id, and Android accepts only an installed package and refuses a name that resolves to an intent with `setting_app_not_package`. One that resolves to nothing is refused with `app_not_installed` before anything changes. The app need not be running. Without it the session app is used; a device-wide change (`location set` on any target, the Android `location on|off` toggle, `mobile-data`, macOS permissions) refuses one with `setting_app_not_consumed`. The CLI reads it only from this invocation, never from `AGENT_DEVICE_TARGET_APP` or config `targetApp`.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"latitude":{"type":"number"},"longitude":{"type":"number"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"mode":{"enum":["full","limited"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"permission":{"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"setting":{"enum":["wifi","bluetooth","airplane","mobile-data","location","animations","appearance","text-size","faceid","touchid","fingerprint","clear-app-state","reset-keychain","permission"],"type":"string"},"state":{"type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["setting"],"type":"object"},"name":"settings"},{"description":"Shutdown a selected simulator or emulator. On Limrun, delete a created instance or release an attachment. Apps and data on a deleted instance are lost. A Limrun connection without an instance fails with DEVICE_NOT_FOUND and details.reason provider_instance_unallocated and creates nothing. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"shutdown"},{"description":"Capture the accessibility tree or compare it with the previous session baseline. Use the returned refs for subsequent semantic interactions and the diff option to verify UI changes. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"customActions":{"description":"Name the affordances an element merged away (iOS UIAccessibilityCustomAction, React Native accessibilityActions) — a card whose reply/options controls are not separate elements still lists them here. The names are for PLANNING, not invocation: there is no API to trigger them, so reach the affordance through the element detail screen, through the same control exposed as a labeled element elsewhere, or by coordinates from its rect. iOS simulator only; costs one accessibility round trip per merged element.","type":"boolean"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"forceFull":{"type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"interactiveOnly":{"type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"observeOnly":{"description":"iOS only. Refuse instead of activating or repairing the session app. Reports XCUIApplication state, which does not prove screen ownership (#2696).","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"type":"boolean"},"record":{"description":"Force-record this out-of-band observation into a repair-armed heal (mutually exclusive with noRecord). Authored replay steps are recorded automatically and never need this.","type":"boolean"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"timeoutMs":{"description":"Maximum wall-clock time for the snapshot command.","type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"snapshot"},{"description":"Quick coordinate fling with optional repeat pattern. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"count":{"description":"Number of swipe repetitions.","maximum":200,"minimum":1,"type":"integer"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"from":{"additionalProperties":false,"description":"Swipe start point.","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"pattern":{"enum":["one-way","ping-pong"],"type":"string"},"pauseMs":{"description":"Pause between repeated swipes.","maximum":10000,"minimum":0,"type":"integer"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"to":{"additionalProperties":false,"description":"Swipe end point.","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["from","to"],"type":"object"},"name":"swipe"},{"description":"Simulate an incoming phone call or SMS on an Android emulator through its console over adb: call rings from the number, accept answers, cancel ends the call, and sms delivers a text message. The call screen or notification can cover the app, so re-snapshot afterwards. Times out after 90s.","inputSchema":{"additionalProperties":false,"oneOf":[{"properties":{"action":{"const":"sms","type":"string"}},"required":["text"]},{"not":{"required":["text"]},"properties":{"action":{"enum":["call","accept","cancel"],"type":"string"}}}],"properties":{"action":{"description":"call starts an incoming call, accept answers it, cancel ends it, sms delivers a text message.","enum":["call","accept","cancel","sms"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"number":{"description":"Caller or sender phone number: digits with an optional leading +.","type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"text":{"description":"Message text for sms; required for sms and refused for the call actions. The emulator drops characters outside the Basic Multilingual Plane, such as emoji.","type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["action","number"],"type":"object"},"name":"telephony"},{"description":"Run one or more replay scripts as a serial test suite Streams progress; no fixed client timeout.","inputSchema":{"additionalProperties":false,"properties":{"artifactsDir":{"type":"string"},"backend":{"type":"string"},"bundleUrl":{"description":"Bundle URL hint inherited by each test session.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"env":{"items":{"type":"string"},"type":"array"},"failFast":{"type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"maestro":{"type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"metroHost":{"description":"Metro/debug host hint inherited by each test session.","type":"string"},"metroPort":{"description":"Metro/debug port hint inherited by each test session.","type":"integer"},"paths":{"items":{"type":"string"},"type":"array"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"recordVideo":{"type":"boolean"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"retries":{"type":"integer"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"shardAll":{"type":"integer"},"shardSplit":{"type":"integer"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"testIme":{"description":"Activate the headless Android test IME for the sessions each suite attempt opens (default on for emulators; opt-in on real devices).","type":"boolean"},"timeoutMs":{"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"update":{"type":"boolean"}},"required":["paths"],"type":"object"},"name":"test"},{"description":"Start or stop trace-log capture and return the resulting artifact when capture ends. Without a path, start writes a timestamped trace log named after the session in the sessions directory of the daemon state; a path on stop moves the finished trace there. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["start","stop"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"path":{"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["action"],"type":"object"},"name":"trace"},{"description":"Ask the app to handle an app-defined automation or test event, with an optional structured payload. Call this only for event names and payload shapes the app documents. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"event":{"description":"Name of an app-defined automation or test event the app documents.","type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"payload":{"additionalProperties":true,"description":"Structured payload passed to the event, in the shape the app documents for it.","type":"object"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["event"],"type":"object"},"name":"trigger-app-event"},{"description":"Press or long-press a TV remote button on Android TV, tvOS, or Vega OS. Android TV also supports volume, power, media, channel, guide, captions, input, color keys, and android-keycode:N. tvOS and Vega OS support up, down, left, right, select, menu, home, and back. Phones and WebDriver sessions are unsupported. The aliases ok, center, and enter map to select. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"button":{"description":"TV remote button. Android TV also accepts android-keycode:<n> with n from 1 to 2147483647.","oneOf":[{"enum":["up","down","left","right","select","menu","home","back","volume-up","volume-down","mute","power","sleep","wake","media-play-pause","media-next","media-previous","media-rewind","media-fast-forward","channel-up","channel-down","last-channel","guide","info","captions","tv-input","color-red","color-green","color-yellow","color-blue"],"type":"string"},{"pattern":"^android-keycode:(?:[1-9][0-9]{0,8}|1[0-9]{9}|20[0-9]{8}|21[0-3][0-9]{7}|214[0-6][0-9]{6}|2147[0-3][0-9]{5}|21474[0-7][0-9]{4}|214748[0-2][0-9]{3}|2147483[0-5][0-9]{2}|21474836[0-3][0-9]|214748364[0-7])(?![\\s\\S])","type":"string"}]},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"durationMs":{"description":"Press duration in milliseconds. tvOS and Vega OS use the exact hold duration; Android TV maps any positive value to an ADB longpress (longpress).","minimum":0,"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["button"],"type":"object"},"name":"tv-remote"},{"description":"Append text to the currently focused input. Use fill when the existing field value should be replaced, and focus first when no input is active. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"delayMs":{"description":"Delay between typed characters.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"text":{"description":"Text to type.","type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["text"],"type":"object"},"name":"type"},{"description":"Remove an installed app from the selected device. A package name or bundle id that is not installed succeeds with wasInstalled: false. The command allows 480s including device startup. Times out after 480s.","inputSchema":{"additionalProperties":false,"properties":{"app":{"description":"Package name, bundle id, or installed app name.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceBaseline":{"description":"Proxy lease: saved device state (baseline) to restore on the leased device. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceMode":{"description":"Proxy lease: iOS simulator mode, slim or full. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"imageTag":{"description":"Proxy lease: Android system image tag, for example google_apis_playstore. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"osVersion":{"description":"Proxy lease: OS version or range, for example 18.6.2 or \">=26\" (Android: API level). Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"physical":{"description":"Proxy lease: true requests a physical device; false selects nothing. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["app"],"type":"object"},"name":"uninstall"},{"description":"Resize the active web viewport before taking snapshots or screenshots. Useful for fixed-layout or 100vh apps where changing the viewport reveals different content. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"height":{"description":"Viewport height in CSS pixels.","minimum":1,"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"width":{"description":"Viewport width in CSS pixels.","minimum":1,"type":"integer"}},"required":["width","height"],"type":"object"},"name":"viewport"},{"description":"Wait for a duration, text, snapshot ref, selector to appear, selector to be strictly absent, or stable UI. Text matches a label, identifier, or value; an editable field never matches by its current value or by a label that only repeats it, so text you typed does not satisfy it. Use the strict absence target when zero selector matches are required; stable waits until the UI stays quiet for the requested window. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"absent":{"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"durationMs":{"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"kind":{"enum":["duration","text","ref","selector","absent","stable"],"type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"quietMs":{"type":"integer"},"raw":{"type":"boolean"},"ref":{"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"type":"string"},"selector":{"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"stable":{"type":"boolean"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"text":{"type":"string"},"timeoutMs":{"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"wait"},{"description":"Usage guides. No topic: the root decision card. topic = one of commands, manual-qa, maestro, workflow, scripting, gestures, tv, debugging, react-devtools, cdp, react-native, physical-device, ios-system-ui, foldable, remote, macos, web, dogfood, validate for that guide, or a tool name for its complete flag reference. For specialized work or an unclear command shape only; not a startup step, not needed after an error that carries a hint.","inputSchema":{"additionalProperties":false,"properties":{"topic":{"description":"Guide topic or tool name; omit for the card.","type":"string"}},"type":"object"},"name":"help"}],"ttlMs":3600000}}}
{"at":"2026-11-23T00:50:29.811Z","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-23T00:50:30.184Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{}},"instructions":"agent-device drives iOS, Android, tvOS, Android TV, macOS, Linux, and web apps. Tools mirror CLI commands of the same name; CLI flags are camelCase properties (--settle -> settle: true). If your client defers tool schemas, load a tool's schema before its first call.\n\nStart: known app -> call open {app, foreground: true} at once; do not probe with devices, apps, appstate, snapshot, or screenshot first. open returns the initial interactive snapshot with @refs. Unknown app id: devices, then apps, then open the discovered id; never invent ids. Existing session: continue from its state, do not reopen.\n\nLoop: press/click/fill/longpress/hover/scroll/back with settle: true; the response is the settled UI diff, continue from it. To reach an off-screen target, scroll {direction, until: \"<selector>\"} scrolls until it is on screen in one call, and direction \"bottom\" runs to the end of the content; repeated bare scrolls are the slow way to find something. snapshot {interactiveOnly: true} only when the diff lacks the next target or did not settle. Verify with wait {kind: \"text\", text}, wait {selector}, wait {absent: selector}, is, get, or find; a bare screenshot is not verification. End with close.\n\nTargets are top-level arguments: press {ref: \"@e12\"}, click {selector: \"id=submit\"}, press {x, y}. Copy refs byte-for-byte (@e12, @e12~s4; keep @ and any ~sN). Refs go stale after mutations. Prefer refs, then id/label/role selectors; coordinates last. On a sparse/AX-unavailable warning its refs and selectors are invalid: screenshot, read the image, press {x, y}, then snapshot the changed screen.\n\nErrors carry hints; follow them instead of re-planning. Call help only for specialized work (gestures, scripting, TV, macOS, web, remote, debugging) or an unclear command shape, never at startup.","protocolVersion":"2025-11-25","serverInfo":{"name":"agent-device","version":"0.21.37"}}}}
{"at":"2026-11-23T00:50:30.184Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T00:50:30.184Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T00:50:30.187Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Press the iPhone or iPad Action Button once. The press is dispatched without activating the session app and nothing is re-observed afterwards, so the app keeps the state the press found. What the system does with the press is not observed by this command: Simulators run no Shortcuts or App Intents, so delivery to an assigned Shortcut is verifiable only on a physical iPhone. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"action-button"},{"description":"Inspect, wait for, accept, or dismiss a platform alert. Use get before acting when the alert content matters; accept and dismiss change the active alert state. Each iOS XCTest execution activates once, then only observes. Apple XCTest and Limrun iOS choose recognized English labels by preference (Allow While Using App before Allow Once); on iOS simulators, including Limrun, the runner also recognizes the device's preferred languages' wording of those labels from the OS permission-prompt strings, on any alert; equal-ranked choices and unknown labels refuse, including a lone unknown button. Open, Done, and Confirm… accept; Keep Browsing, Deny, and Skip dismiss. On the Apple XCUITest runner, dismiss taps only a recognized decline label (Cancel, Don't Allow, Ask App Not to Track, and similar) or the close element of a popover whose accessibility marker reads exactly \"dismiss popup\"; when no button fits the action, accept and dismiss answer ALERT_BUTTON_NOT_FOUND having tapped nothing — read labels with alert get, then press the button by label. Inspect again after an unconfirmed action; never assume a timeout means nothing happened. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["get","accept","dismiss","wait"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"timeoutMs":{"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"alert"},{"description":"Open the device app switcher to inspect or change foreground apps. This changes the visible system UI and may move focus away from the current app. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"app-switcher"},{"description":"List the apps installed on the selected device. Include system or OEM apps only when they are needed as automation targets. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"appsFilter":{"description":"Restrict the listing to user-installed apps, or include system and OEM apps.","enum":["user-installed","all"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"apps"},{"description":"Show foreground app/activity (Android and HarmonyOS; iOS and macOS answer per session) Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"appstate"},{"description":"List daemon or cloud provider artifacts for an active or completed session. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"provider":{"description":"Cloud provider name, for example browserstack, aws-device-farm, or testmu.","type":"string"},"providerSessionId":{"description":"Cloud provider session id or ARN.","type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"artifacts"},{"description":"Measure browser or host-rendered simulator/emulator audio as compact dBFS buckets. Start a probe before requesting its status or stopping it. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["probe"],"type":"string"},"bucketMs":{"description":"Audio level bucket size in milliseconds.","type":"integer"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"durationMs":{"description":"Probe duration in milliseconds.","type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"probeAction":{"enum":["start","status","stop"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"audio"},{"description":"Navigate back in the app or through system navigation. Use in-app for the app navigation stack and system when the platform back behavior is required. On iOS both modes swipe from the left edge and succeed only when the app screen changes. Reason back_swipe_no_change: the swipe was sent and the screen did not change; press the visible back or close control. Reason back_swipe_unverified: the swipe may or may not have navigated, because the screen kept changing before it or could not be sampled after it; check with snapshot. Reason back_swipe_not_dispatched, or a screen that cannot be sampled before the swipe, means nothing was sent. An app with a left-edge drawer may open the drawer instead. Press a visible back or close control by its ref directly. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"mode":{"enum":["in-app","system"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"settle":{"description":"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.","type":"boolean"},"settleQuietMs":{"description":"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs.","minimum":0,"type":"integer"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"timeoutMs":{"description":"Settle: wait deadline in milliseconds (default 10000).","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"back"},{"description":"Execute multiple commands in one daemon request. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"maxSteps":{"description":"Maximum number of steps accepted for this batch.","maximum":1000,"minimum":1,"type":"integer"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"onError":{"description":"Batch failure policy.","enum":["stop"],"type":"string"},"out":{"description":"Optional output path for command artifacts.","type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"steps":{"description":"Structured batch steps. Each step uses a command name and the same input object as that command tool.","items":{"additionalProperties":false,"properties":{"command":{"description":"Command name to run with structured input.","enum":["devices","capabilities","doctor","apps","boot","shutdown","appstate","perf","logs","network","audio","test","clipboard","keyboard","install","reinstall","uninstall","push","trigger-app-event","open","close","snapshot","diff","wait","alert","settings","react-native","record","trace","find","click","fill","longpress","hover","press","type","get","is","back","gesture","home","tv-remote","orientation","fold","telephony","scroll","swipe","focus","screenshot","app-switcher","action-button","hardware-button","install-from-source"],"type":"string"},"input":{"additionalProperties":true,"commandInputFor":"command","description":"Structured command input for the nested command. Use the matching MCP tool schema for this object.","type":"object"},"runtime":{"additionalProperties":true,"description":"Optional per-step runtime payload.","type":"object"}},"required":["command","input"],"type":"object"},"type":"array"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["steps"],"type":"object"},"name":"batch"},{"description":"Boot or prepare the selected device or simulator so later commands can target it. The device is chosen through the device-selection inputs, not by naming it here. On Limrun, allocate or reuse an instance. Existing-instance credentials attach without creating one. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"headless":{"description":"Boot without showing simulator UI when supported.","type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"pick":{"description":"When no device is named and several equally preferred devices match, all shut down, boot one instead of failing: newest picks mobile over TV, then the newest OS version, then the first name in name order (numbers compared by value; not device age), which alone decides for stopped Android AVDs because they report no OS version. Several booted matches still fail.","enum":["newest"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"timeoutMs":{"description":"Startup budget in milliseconds. Bounds the boot wait, so a never-booted Simulator can finish its first-boot migration or a cold emulator its boot; omit for the default startup behavior.","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"boot"},{"description":"List the commands supported by the selected device or active session. Use device-selection inputs when checking support before a session is open. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"capabilities"},{"description":"Activate a UI target by snapshot ref, selector, or coordinates. Prefer a ref or selector after a snapshot; use coordinates only when semantic targeting is unavailable. This can change app state. Success means the click was dispatched, not that it landed: use settle or verify to confirm the result without a follow-up snapshot, or wait for the expected screen. A ref or selector target is re-checked for motion before dispatch when the session's previous action just animated the screen, and is dispatched at its resting position; one that has not stopped refuses with target_still_moving rather than acting where it was. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"button":{"description":"Pointer button for platforms that support mouse buttons.","enum":["primary","secondary","middle"],"type":"string"},"count":{"description":"Number of press/click repetitions.","minimum":1,"type":"integer"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"description":"Snapshot traversal depth.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"doubleTap":{"description":"Request a double-tap action.","type":"boolean"},"holdMs":{"description":"Hold duration for each action.","minimum":0,"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"intervalMs":{"description":"Delay between repeated press/click actions.","minimum":0,"type":"integer"},"jitterPx":{"description":"Deterministic per-axis coordinate jitter in pixels (each press offsets x and y by up to this amount).","minimum":0,"type":"integer"},"label":{"description":"Optional human label for ref.","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"description":"Use raw snapshot data during selector resolution.","type":"boolean"},"ref":{"description":"Snapshot element ref such as @e12. Pass exactly one of ref, selector, or x+y.","type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"description":"Snapshot scope selector used before resolution.","type":"string"},"selector":{"description":"Selector expression such as id=\"submit\" or label=\"Sign in\". Pass exactly one of ref, selector, or x+y.","type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"settle":{"description":"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.","type":"boolean"},"settleQuietMs":{"description":"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs.","minimum":0,"type":"integer"},"timeoutMs":{"description":"Settle: wait deadline in milliseconds (default 10000).","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"verify":{"description":"Capture cheap post-action evidence (AX digest, node counts, changedFromBefore) instead of a follow-up snapshot.","type":"boolean"},"x":{"description":"Screen x coordinate, with y. Pass exactly one of ref, selector, or x+y; use x+y only when no ref or selector is available.","type":"number"},"y":{"description":"Screen y coordinate, with x. Pass exactly one of ref, selector, or x+y.","type":"number"}},"type":"object"},"name":"click"},{"description":"Read the current device clipboard text, or replace its contents with the given text. Android runs both through the clipboard service shell command, and a build that implements none (Android 16 does not) refuses with UNSUPPORTED_OPERATION rather than reporting an empty clipboard. Times out after 90s.","inputSchema":{"additionalProperties":false,"oneOf":[{"properties":{"action":{"const":"write","type":"string"}},"required":["text"]},{"not":{"required":["text"]},"properties":{"action":{"const":"read","type":"string"}}}],"properties":{"action":{"enum":["read","write"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"text":{"description":"Text for write; required for write (\"\" clears the clipboard), refused for read.","type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["action"],"type":"object"},"name":"clipboard"},{"description":"Close the named app, or close the active session app when app is omitted. If the session booted a local simulator or emulator, add shutdown when you finish, unless the user asks to keep it running; close alone never stops the device. Android ADB close fails with android-app-close-timeout if the app stays foreground past 2s, a killed process does not exit within 10s, or a new process runs past 2s. It fails with android-process-probe-unavailable when adb pidof cannot list the app processes; if that happens before the force-stop, the app keeps running. If close cannot confirm its cleanup on a session that holds a device claim, the session and its claim stay; run close again with the same options to retry the cleanup, leaving out save-script once the script is published. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"app":{"description":"Optional app to close.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"force":{"description":"Overwrite an existing --save-script target instead of refusing (alias: --overwrite).","type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"saveScript":{"oneOf":[{"type":"boolean"},{"type":"string"}]},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"shutdown":{"description":"Shutdown the session/device where supported.","type":"boolean"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"close"},{"description":"Symbolicate Apple crash artifacts with matching dSYM UUIDs. This debug namespace is intentionally narrow: use logs for app logs, network for HTTP evidence, perf for performance samples, record/trace for media and traces, and react-devtools for React Native components and render profiles. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["symbols"],"type":"string"},"artifact":{"description":"Apple crash artifact path (.ips, .crash, or .log).","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"dsym":{"description":"Path to a matching .dSYM bundle.","type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"out":{"description":"Output path for the symbolicated artifact.","type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"searchPath":{"description":"Directory to scan for matching .dSYM bundles.","type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["action","artifact"],"type":"object"},"name":"debug"},{"description":"List available devices and simulators that can be selected for automation. Use platform, device, udid, or serial inputs on later commands to target one result. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"devices"},{"description":"Compare accessibility snapshots or screenshots to identify UI changes. Use snapshot comparisons for semantic tree changes and screenshot comparisons for pixel differences. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"interactiveOnly":{"type":"boolean"},"kind":{"const":"snapshot","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"out":{"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"type":"boolean"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["kind"],"type":"object"},"name":"diff"},{"description":"Diagnose device, app, development-server, and React Native or Expo readiness issues. Returns compact evidence for local inventory, sessions, optional app discovery, toolchains, and server reachability. On iOS simulators it also warms the XCTest runner build cache in the background when missing, so run it before the first Apple snapshot or interaction of a session. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"remote":{"description":"Check remote connection setup instead of local device inventory.","type":"boolean"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"targetApp":{"description":"Installed app package/bundle id or app name to verify without opening a session.","type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"doctor"},{"description":"Read the daemon-owned session event timeline as paged JSON-friendly entries Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"cursor":{"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"limit":{"type":"integer"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"events"},{"description":"Replace text in a UI input selected by snapshot ref, selector, or coordinates. Pass an empty text to clear the field. Inspect unconfirmed evidence and assert the expected value or resulting screen before continuing. Prefer refs or selectors after snapshot; use recordAs to keep sensitive text out of a recorded replay while sending it to the live app. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"delayMs":{"description":"Delay between typed characters.","minimum":0,"type":"integer"},"depth":{"description":"Snapshot traversal depth.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"label":{"description":"Optional human label for ref.","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"description":"Use raw snapshot data during selector resolution.","type":"boolean"},"recordAs":{"description":"When script recording is armed, send text to the live app but publish it as ${VAR}. Use an uppercase replay variable name such as PASSWORD.","type":"string"},"ref":{"description":"Snapshot element ref such as @e12. Pass exactly one of ref, selector, or x+y.","type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"description":"Snapshot scope selector used before resolution.","type":"string"},"selector":{"description":"Selector expression such as id=\"submit\" or label=\"Sign in\". Pass exactly one of ref, selector, or x+y.","type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"settle":{"description":"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.","type":"boolean"},"settleQuietMs":{"description":"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs.","minimum":0,"type":"integer"},"text":{"description":"Text to enter into the target. Pass \"\" to clear it.","type":"string"},"timeoutMs":{"description":"Settle: wait deadline in milliseconds (default 10000).","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"verify":{"description":"Capture cheap post-action evidence (AX digest, node counts, changedFromBefore) instead of a follow-up snapshot.","type":"boolean"},"x":{"description":"Screen x coordinate, with y. Pass exactly one of ref, selector, or x+y; use x+y only when no ref or selector is available.","type":"number"},"y":{"description":"Screen y coordinate, with x. Pass exactly one of ref, selector, or x+y.","type":"number"}},"required":["text"],"type":"object"},"name":"fill"},{"description":"Find by text/label/value/role/id and run action; the action defaults to click. The role locator matches snapshot kind vocabulary (button, text, text-field, switch, ...); pre-reconciliation leaf spellings (statictext, edittext, textview) stay accepted on the nodes that carried them during a deprecation window. The focus and type actions aim at a text field: the match or the field holding it, even beside other fields, or else the one enabled on-screen field inside the match. Several enabled on-screen fields inside the match refuse with AMBIGUOUS_MATCH and the field candidates, and a disabled target refuses with reason target_disabled. Web text boxes are not recognized as text fields. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["click","focus","exists","list","getText","getAttrs","wait","fill","type"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"first":{"type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"last":{"type":"boolean"},"locator":{"enum":["any","text","label","value","role","id"],"type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"query":{"type":"string"},"raw":{"type":"boolean"},"record":{"description":"Force-record this out-of-band observation into a repair-armed heal (mutually exclusive with noRecord). Authored replay steps are recorded automatically and never need this. On find, valid only for a read-only action.","type":"boolean"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"timeoutMs":{"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"value":{"type":"string"}},"required":["query"],"type":"object"},"name":"find"},{"description":"Move input focus to explicit screen coordinates without entering text. Prefer semantic interactions when a snapshot ref or selector is available; use type or fill after focus. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"x":{"description":"X coordinate.","type":"number"},"y":{"description":"Y coordinate.","type":"number"}},"required":["x","y"],"type":"object"},"name":"focus"},{"description":"Fold or unfold a foldable iPhone simulator (iPhone Duo) or a foldable Android emulator into the closed, half-open, or open pose. iOS sends a simulator HID hinge event, then reads the hinge angle back inside the simulator to confirm it, and can follow timestamped angle keyframes; Android sets the emulator console posture, then confirms the device state the guest commits and reports the angle read from the hinge sensor, which can differ from the AVD profile's per-posture angles, and dismisses the lock screen a fold to the cover display can raise. On iOS a pose change moves the app to a different panel with a different point size; on Android a fold to or from closed moves the app between the cover and inner displays, and any pose change can reshape the app window, whose size the next snapshot reports. Either way every ref and coordinate from before it is stale: re-snapshot after this command. Taps, long presses, and scrolling target the app window on its current panel in closed, half-open, and open poses. Simulator and emulator only; iOS requires the iOS simulator SDK; Device Hub and host Accessibility permission are not required. An iOS simulator in a scoped simulator set folds the same way as one in the default set. Times out after 255s.","inputSchema":{"additionalProperties":false,"oneOf":[{"not":{"required":["keyframes"]},"required":["pose"]},{"not":{"required":["pose"]},"required":["keyframes"]}],"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"keyframes":{"description":"Piecewise-linear hinge motion. Start at 0ms; strictly increasing timestamps, up to 60000ms. Repeated angles create holds. Mutually exclusive with pose.","items":{"additionalProperties":false,"properties":{"angle":{"maximum":180,"minimum":0,"type":"number"},"atMs":{"maximum":60000,"minimum":0,"type":"integer"}},"required":["atMs","angle"],"type":"object"},"maxItems":64,"minItems":2,"type":"array"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"pose":{"description":"Instant preset; mutually exclusive with keyframes.","enum":["closed","half-open","open"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"fold"},{"description":"Perform a structured pan, fling, swipe, pinch, rotate, transform, tap, or drag gesture. Select the gesture kind, then provide only the inputs that apply to that kind. A tap touches 2 to 5 points at once; repeat it with count and pauseMs. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"count":{"description":"Tap repetitions; the same contacts run this many times.","maximum":200,"minimum":1,"type":"integer"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"degrees":{"description":"Rotation in degrees.","type":"number"},"delta":{"additionalProperties":false,"description":"Movement delta for pan or transform gestures.","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"destination":{"description":"Drag destination @ref or selector.","type":"string"},"destinationHoldMs":{"description":"Hold before releasing at the destination.","maximum":10000,"minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"direction":{"description":"Fling direction.","enum":["up","down","left","right"],"type":"string"},"distance":{"description":"Fling distance.","minimum":0,"type":"integer"},"durationMs":{"description":"Pan/transform duration.","maximum":10000,"minimum":16,"type":"integer"},"holdMs":{"description":"Tap contact hold duration.","maximum":10000,"minimum":16,"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"kind":{"description":"Gesture variant.","enum":["pan","fling","swipe","pinch","rotate","transform","tap","drag"],"type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"moveMs":{"description":"Drag movement duration.","maximum":10000,"minimum":16,"type":"integer"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"origin":{"additionalProperties":false,"description":"Gesture origin point.","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"pauseMs":{"description":"Delay between tap repetitions, added to each repetition’s own time.","maximum":10000,"minimum":0,"type":"integer"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"pointerCount":{"description":"Pan touch pointer count (1 or 2).","maximum":2,"minimum":1,"type":"integer"},"points":{"description":"Tap contact points, held together for holdMs.","items":{"additionalProperties":false,"description":"One contact point.","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"maxItems":5,"minItems":2,"type":"array"},"preset":{"description":"Swipe preset.","enum":["left","right","left-edge","right-edge"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scale":{"description":"Pinch or transform scale.","type":"number"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"source":{"description":"Drag source @ref or selector.","type":"string"},"sourceHoldMs":{"description":"Drag activation hold duration.","maximum":10000,"minimum":1,"type":"integer"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["kind"],"type":"object"},"name":"gesture"},{"description":"Read text or accessibility attributes from a snapshot ref or selector without changing the app. Use format text for visible content or attrs for the element attribute map. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"description":"Snapshot traversal depth.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"format":{"enum":["text","attrs"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"label":{"description":"Optional human label for ref.","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"description":"Use raw snapshot data during selector resolution.","type":"boolean"},"record":{"description":"Force-record this out-of-band observation into a repair-armed heal (mutually exclusive with noRecord). Authored replay steps are recorded automatically and never need this. On find, valid only for a read-only action.","type":"boolean"},"ref":{"description":"Snapshot element ref such as @e12. Pass exactly one of ref or selector.","type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"description":"Snapshot scope selector used before resolution.","type":"string"},"selector":{"description":"Selector expression such as id=\"submit\" or label=\"Sign in\". Pass exactly one of ref or selector.","type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["format"],"type":"object"},"name":"get"},{"description":"Press a phone hardware button once: volume-up, volume-down, power, mute, sleep, wake, media-play-pause, media-next, media-previous, media-rewind, or media-fast-forward. The press is dispatched without activating the session app and nothing is re-observed afterwards, so the OS decides what the key does — which audio stream a volume press moves, which media session a media key reaches, and whether the HUD shows, is device behavior this command does not claim. Power toggles the Android screen; sleep and wake are the explicit Android events that turn it off or on without toggling, and after a press that turns it off, later commands may hit a locked screen. Android (ADB-backed and Appium) presses all eleven on phones and tablets; a physical iPhone or iPad presses volume only through the local runner or Appium, never power, mute, sleep, wake, or media. iOS Simulators, Android TV and tvOS targets refuse: on TV targets use tv-remote. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"button":{"description":"One press each. volume-up and volume-down move the system volume stream the OS selects; power toggles the screen on Android; sleep and wake are the explicit Android events that turn the screen off or on without toggling; mute, media-play-pause, media-next, media-previous, media-rewind, and media-fast-forward are Android keys the OS routes to its own streams and media sessions. All of these except volume are refused on every Apple leaf.","enum":["volume-up","volume-down","power","mute","sleep","wake","media-play-pause","media-next","media-previous","media-rewind","media-fast-forward"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["button"],"type":"object"},"name":"hardware-button"},{"description":"Send the selected device to its home screen. This leaves the app session open but moves the foreground away from the app. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"home"},{"description":"Move the pointer over a UI target by snapshot ref, selector, or coordinates without pressing, to reveal hover-gated UI such as row toolbars or menus. Web only; touch platforms have no hover state. Use settle to observe what the hover revealed without a follow-up snapshot. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"description":"Snapshot traversal depth.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"label":{"description":"Optional human label for ref.","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"description":"Use raw snapshot data during selector resolution.","type":"boolean"},"ref":{"description":"Snapshot element ref such as @e12. Pass exactly one of ref, selector, or x+y.","type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"description":"Snapshot scope selector used before resolution.","type":"string"},"selector":{"description":"Selector expression such as id=\"submit\" or label=\"Sign in\". Pass exactly one of ref, selector, or x+y.","type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"settle":{"description":"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.","type":"boolean"},"settleQuietMs":{"description":"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs.","minimum":0,"type":"integer"},"timeoutMs":{"description":"Settle: wait deadline in milliseconds (default 10000).","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"x":{"description":"Screen x coordinate, with y. Pass exactly one of ref, selector, or x+y; use x+y only when no ref or selector is available.","type":"number"},"y":{"description":"Screen y coordinate, with x. Pass exactly one of ref, selector, or x+y.","type":"number"}},"type":"object"},"name":"hover"},{"description":"Install an app binary from a local path. Provide an app identifier with the path when the target needs explicit app selection; use reinstall to replace an already installed app. Local Android and iOS install steps time out after 120s; the command allows 480s including device startup. Times out after 480s.","inputSchema":{"additionalProperties":false,"properties":{"app":{"description":"Optional app identifier hint.","type":"string"},"appPath":{"description":"Path to app binary.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceBaseline":{"description":"Proxy lease: saved device state (baseline) to restore on the leased device. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceMode":{"description":"Proxy lease: iOS simulator mode, slim or full. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"imageTag":{"description":"Proxy lease: Android system image tag, for example google_apis_playstore. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"osVersion":{"description":"Proxy lease: OS version or range, for example 18.6.2 or \">=26\" (Android: API level). Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"physical":{"description":"Proxy lease: true requests a physical device; false selects nothing. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["appPath"],"type":"object"},"name":"install"},{"description":"Install app builds from URLs, remote source specs, or CI artifacts resolved by a remote daemon. The command allows 600s, including up to 120s for the download; local Android and iOS install steps time out after 120s. Times out after 600s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"retainPaths":{"type":"boolean"},"retentionMs":{"description":"When retainPaths is true, keep downloaded and extracted files for this many milliseconds.","maximum":2147483647,"minimum":1,"type":"integer"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"source":{"additionalProperties":true,"description":"Install source object.","type":"object"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["source"],"type":"object"},"name":"install-from-source"},{"description":"Check whether a selector satisfies a UI predicate such as visible, hidden, exists, absent, editable, selected, focused, or text. `absent` passes only when one readable, complete, settled, unscoped, full-depth accessibility capture has zero matches. Use wait when the condition may appear asynchronously. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"description":"Snapshot traversal depth.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"predicate":{"enum":["visible","hidden","exists","absent","editable","selected","focused","text"],"type":"string"},"raw":{"description":"Use raw snapshot data during selector resolution.","type":"boolean"},"record":{"description":"Force-record this out-of-band observation into a repair-armed heal (mutually exclusive with noRecord). Authored replay steps are recorded automatically and never need this. On find, valid only for a read-only action.","type":"boolean"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"description":"Snapshot scope selector used before resolution.","type":"string"},"selector":{"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"value":{"type":"string"}},"required":["predicate","selector"],"type":"object"},"name":"is"},{"description":"Inspect Android keyboard visibility/type or press/dismiss the device keyboard. To hide the keyboard, use keyboard dismiss. It taps the keyboard dismiss/hide key when one is exposed, verifies the keyboard closed, and reports UNSUPPORTED_OPERATION when no dismiss key exists — background taps are never attempted. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["status","dismiss","enter","return"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"keyboard"},{"description":"Session app log info, start/stop streaming, diagnostics, and markers Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["path","start","stop","doctor","mark","clear"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"message":{"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"restart":{"type":"boolean"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"logs"},{"description":"Hold a UI target by snapshot ref, selector, or coordinates to open a context menu or perform another hold gesture. Set durationMs when the default hold duration is unsuitable. Times out after 320s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"description":"Snapshot traversal depth.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"durationMs":{"description":"Long press duration in milliseconds.","minimum":0,"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"label":{"description":"Optional human label for ref.","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"description":"Use raw snapshot data during selector resolution.","type":"boolean"},"ref":{"description":"Snapshot element ref such as @e12. Pass exactly one of ref, selector, or x+y.","type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"description":"Snapshot scope selector used before resolution.","type":"string"},"selector":{"description":"Selector expression such as id=\"submit\" or label=\"Sign in\". Pass exactly one of ref, selector, or x+y.","type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"settle":{"description":"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.","type":"boolean"},"settleQuietMs":{"description":"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs.","minimum":0,"type":"integer"},"timeoutMs":{"description":"Settle: wait deadline in milliseconds (default 10000).","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"x":{"description":"Screen x coordinate, with y. Pass exactly one of ref, selector, or x+y; use x+y only when no ref or selector is available.","type":"number"},"y":{"description":"Screen y coordinate, with x. Pass exactly one of ref, selector, or x+y.","type":"number"}},"type":"object"},"name":"longpress"},{"description":"Prepare a React Native development server or ask connected apps to reload, using the development server this session is bound to. Provide explicit runtime inputs only to override that binding for one call. The binding is cleared when the session closes, and a fresh open without runtime hints also clears any leftover binding from a previous same-name session. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["prepare","reload"],"type":"string"},"bridgeScope":{"additionalProperties":true,"type":"object"},"bundleUrl":{"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"installDependenciesIfNeeded":{"type":"boolean"},"kind":{"type":"string"},"launchUrl":{"type":"string"},"listenHost":{"type":"string"},"logPath":{"type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"metroHost":{"type":"string"},"metroPort":{"type":"integer"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"port":{"type":"integer"},"probeTimeoutMs":{"type":"integer"},"projectRoot":{"type":"string"},"publicBaseUrl":{"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"reuseExisting":{"type":"boolean"},"runtimeFilePath":{"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"startupTimeoutMs":{"type":"integer"},"statusHost":{"type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"timeoutMs":{"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["action"],"type":"object"},"name":"metro"},{"description":"Dump recent HTTP(s) traffic parsed from the session app log Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["dump","log"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"include":{"enum":["summary","headers","body","all"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"limit":{"type":"integer"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"network"},{"description":"Boot the selected device when needed, then open an app, deep link, or URL in a session. Use the app or URL inputs to choose what becomes the foreground automation target. Remote daemons refuse file: URLs in open targets and launch URLs with reason REMOTE_HOST_INPUT_DENIED. Serve local web content over HTTP(S) instead. metroHost, metroPort, and bundleUrl choose the app's Metro server and save its address for later reloads. launchUrl selects the app's launch URL and does not select the reload server. A fresh open without Metro hints clears an older same-name binding; close also clears it. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"activity":{"description":"Android activity name.","type":"string"},"app":{"description":"App name, bundle id, package, or URL.","type":"string"},"bundleUrl":{"description":"Session-scoped bundle URL hint applied to the opened app.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceBaseline":{"description":"Proxy lease: saved device state (baseline) to restore on the leased device. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceMode":{"description":"Proxy lease: iOS simulator mode, slim or full. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"force":{"description":"Overwrite an existing --save-script target instead of refusing (alias: --overwrite).","type":"boolean"},"foreground":{"description":"Include an initial interactive snapshot in a fresh open response. With no app argument, discover the sole running app on the sole booted iOS simulator; ambiguous environments fail closed.","type":"boolean"},"imageTag":{"description":"Proxy lease: Android system image tag, for example google_apis_playstore. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"launchArgs":{"description":"Launch arguments forwarded verbatim to the platform launch command.","items":{"type":"string"},"type":"array"},"launchConsole":{"description":"File path on the daemon host for the stdout and stderr of the initial app launch. Local or Limrun iOS simulator direct app launches only; not for URL opens.","type":"string"},"launchUrl":{"description":"Launch URL for the opened app; does not select the server used by metro reload.","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"metroHost":{"description":"Session-scoped Metro/debug host hint applied to the opened app.","type":"string"},"metroPort":{"description":"Session-scoped Metro/debug port hint applied to the opened app. Without metroHost, emulators and simulators use the loopback alias; physical devices need metroHost.","maximum":65535,"minimum":1,"type":"integer"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"osVersion":{"description":"Proxy lease: OS version or range, for example 18.6.2 or \">=26\" (Android: API level). Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"physical":{"description":"Proxy lease: true requests a physical device; false selects nothing. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"relaunch":{"description":"Force relaunch.","type":"boolean"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"saveScript":{"oneOf":[{"type":"boolean"},{"type":"string"}]},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"surface":{"description":"macOS presentation surface to open: the app itself, the frontmost app, the desktop, or the menu bar.","enum":["app","frontmost-app","desktop","menubar"],"type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"testIme":{"description":"Activate the headless Android test IME for deterministic Unicode text entry (default on for emulators; opt-in on real devices).","type":"boolean"},"timeoutMs":{"description":"Startup budget in milliseconds. Bounds the Simulator boot wait, so a never-booted Simulator can finish its first-boot migration; omit for the default startup behavior.","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"url":{"description":"Optional URL passed with an app shell.","type":"string"},"waitMs":{"description":"Wait up to n milliseconds (100-120000) while another session holds the device, then fail with DEVICE_IN_USE. A claim held by another workspace fails at once. The wait extends this command's timeout.","maximum":120000,"minimum":100,"type":"integer"}},"type":"object"},"name":"open"},{"description":"Set device orientation on iOS and Android. auto hands rotation back to the sensor on ADB-backed Android (local and Limrun); other backends refuse it. A foldable iPhone simulator (iPhone Duo) refuses portrait-upside-down, and refuses every rotation in a scoped simulator set. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"orientation":{"enum":["portrait","portrait-upside-down","landscape-left","landscape-right","auto"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["orientation"],"type":"object"},"name":"orientation"},{"description":"Collect frame health, memory diagnostics, and platform profiling artifacts with compact agent-readable summaries. For CPU profiles, start and stop write the raw artifact while report writes a compact summary; request the report when the task needs readable native CPU evidence. Profiling output is evidence only: compact state, artifact path, and size. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["sample","snapshot","start","stop","report"],"type":"string"},"area":{"enum":["frames","memory","cpu","trace"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"kind":{"enum":["xctrace","simpleperf","perfetto","android-hprof","memgraph"],"type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"out":{"description":"Output artifact path.","type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"subject":{"enum":["profile"],"type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"template":{"description":"xctrace template name, for example Time Profiler.","type":"string"},"tracePath":{"description":"Existing .trace path to report, defaults to the latest session trace.","type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["area"],"type":"object"},"name":"perf"},{"description":"Short-press a UI target by snapshot ref, selector, or coordinates. Use longpress instead when the target requires a context-menu or hold gesture. Success means the press was dispatched, not that it landed: use settle or verify to confirm the result, or wait for the expected screen. A ref or selector target is re-checked for motion before dispatch when the session's previous action just animated the screen, and is dispatched at its resting position; one that has not stopped refuses with target_still_moving rather than acting where it was. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"count":{"description":"Number of press/click repetitions.","minimum":1,"type":"integer"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"description":"Snapshot traversal depth.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"doubleTap":{"description":"Request a double-tap action.","type":"boolean"},"holdMs":{"description":"Hold duration for each action.","minimum":0,"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"intervalMs":{"description":"Delay between repeated press/click actions.","minimum":0,"type":"integer"},"jitterPx":{"description":"Deterministic per-axis coordinate jitter in pixels (each press offsets x and y by up to this amount).","minimum":0,"type":"integer"},"label":{"description":"Optional human label for ref.","type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"description":"Use raw snapshot data during selector resolution.","type":"boolean"},"ref":{"description":"Snapshot element ref such as @e12. Pass exactly one of ref, selector, or x+y.","type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"description":"Snapshot scope selector used before resolution.","type":"string"},"selector":{"description":"Selector expression such as id=\"submit\" or label=\"Sign in\". Pass exactly one of ref, selector, or x+y.","type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"settle":{"description":"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.","type":"boolean"},"settleQuietMs":{"description":"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs.","minimum":0,"type":"integer"},"timeoutMs":{"description":"Settle: wait deadline in milliseconds (default 10000).","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"verify":{"description":"Capture cheap post-action evidence (AX digest, node counts, changedFromBefore) instead of a follow-up snapshot.","type":"boolean"},"x":{"description":"Screen x coordinate, with y. Pass exactly one of ref, selector, or x+y; use x+y only when no ref or selector is available.","type":"number"},"y":{"description":"Screen y coordinate, with x. Pass exactly one of ref, selector, or x+y.","type":"number"}},"type":"object"},"name":"press"},{"description":"Deliver push notification payloads to an installed app. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"app":{"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"payload":{"oneOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["app","payload"],"type":"object"},"name":"push"},{"description":"Run supported React Native automation helpers. Use dismiss-overlay to close a visible development error overlay before continuing normal UI automation. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["dismiss-overlay"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["action"],"type":"object"},"name":"react-native"},{"description":"Start or stop a screen recording for the active app session or, where supported, the selected device, or build a contact-sheet PNG from a recording already exported. Long Android recordings can return multiple video artifacts; HarmonyOS supports whole-screen recording on physical devices. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["start","stop"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"fps":{"type":"integer"},"hideTouches":{"type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"path":{"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"quality":{"enum":["medium","high"],"type":"string"},"recordingScope":{"enum":["app","device","system"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["action"],"type":"object"},"name":"record"},{"description":"Replace an installed app with a binary from a local path. Use this when preserving the same app identity while installing a new build on the selected device. Local Android and iOS install steps time out after 120s; the command allows 480s including device startup and uninstall. Times out after 480s.","inputSchema":{"additionalProperties":false,"properties":{"app":{"type":"string"},"appPath":{"description":"Path to app binary.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceBaseline":{"description":"Proxy lease: saved device state (baseline) to restore on the leased device. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceMode":{"description":"Proxy lease: iOS simulator mode, slim or full. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"imageTag":{"description":"Proxy lease: Android system image tag, for example google_apis_playstore. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"osVersion":{"description":"Proxy lease: OS version or range, for example 18.6.2 or \">=26\" (Android: API level). Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"physical":{"description":"Proxy lease: true requests a physical device; false selects nothing. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["app","appPath"],"type":"object"},"name":"reinstall"},{"description":"Run a recorded automation script, including compatible Maestro YAML flows. A script without a terminal close leaves its session active for subsequent automation. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"backend":{"type":"string"},"bundleUrl":{"description":"Bundle URL hint inherited by replay-opened sessions.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"env":{"items":{"type":"string"},"type":"array"},"force":{"type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"keepSession":{"description":"Leave the session active by suppressing exactly an authored terminal close in native .ad.","type":"boolean"},"maestro":{"type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"metroHost":{"description":"Metro/debug host hint inherited by replay-opened sessions.","type":"string"},"metroPort":{"description":"Metro/debug port hint inherited by replay-opened sessions.","type":"integer"},"path":{"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"resumeFrom":{"type":"integer"},"resumePlanDigest":{"type":"string"},"saveScript":{"oneOf":[{"type":"boolean"},{"type":"string"}]},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"testIme":{"description":"Activate the headless Android test IME for the sessions this replay opens (default on for emulators; opt-in on real devices).","type":"boolean"},"timeoutMs":{"description":"Operation wall-clock budget in milliseconds (default 60000). The client allows another 30000 milliseconds for the daemon result.","type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"update":{"type":"boolean"}},"required":["path"],"type":"object"},"name":"replay"},{"description":"Capture a screenshot of the active app or web session. Choose the capture scope, density, size, or annotations through the corresponding input fields when needed. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"captureBackend":{"description":"Capture through the XCTest runner instead of the platform default, which leaves out the simulator-drawn Dynamic Island. Local Apple targets only; refused on provider sessions and on a macOS surface the helper captures, and with pixelDensity, screenMask or normalizeStatusBar.","enum":["runner"],"type":"string"},"cropOn":{"description":"Selector expression; the capture is cropped to the frame the selector resolves on the same screen.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"fullscreen":{"type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"normalizeStatusBar":{"type":"boolean"},"overlayRefs":{"type":"boolean"},"path":{"description":"Output path.","type":"string"},"pixelDensity":{"description":"Output screenshot pixel density in pixels per logical point.","minimum":1,"type":"integer"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scale":{"description":"Screenshot scale factor.","maximum":1,"minimum":0.01,"type":"number"},"screenMask":{"description":"Fill the iOS simulator screen outline with black for this capture. Requires simctl; omit for the default image.","enum":["black"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"stabilize":{"type":"boolean"},"surface":{"enum":["app","frontmost-app","desktop","menubar"],"type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"screenshot"},{"description":"Scroll in a direction, or toward the top/bottom edge of scrollable content. Set until to a selector to reach an off-screen target in one command rather than a scroll-and-check loop. The optional amount is the finger-path fraction of the viewport axis, honored up to 0.8 of it; directional scrolls reduce release momentum, while app scroll physics determine the final content offset. A visible keyboard shortens the swiped band instead of being dismissed; when too little is left, the command refuses with scroll_keyboard_occludes_surface. A directional scroll also reports the movement it observed as movement: moved, at-edge, unchanged, or unobserved when the two reads could not back a claim either way; an unchanged surface inside a container that still hides content in that direction refuses with scroll_no_progress rather than repeating the requested distance. The movement field is absent where a tier verifies per pass (top/bottom, until), where the runtime cannot read a screen, where a settle observation or a replay already owns that observation, or where the operator opted out of it. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"amount":{"description":"Platform scroll amount.","type":"number"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"direction":{"enum":["up","down","left","right","top","bottom"],"type":"string"},"durationMs":{"description":"Scroll duration in milliseconds when the backend supports pacing.","maximum":10000,"minimum":0,"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"maxPasses":{"description":"Maximum scroll gestures for an until search (default 12). Requires until.","maximum":200,"minimum":1,"type":"integer"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"pixels":{"description":"Pixel scroll amount.","minimum":0,"type":"integer"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"settle":{"description":"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.","type":"boolean"},"settleQuietMs":{"description":"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs.","minimum":0,"type":"integer"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"timeoutMs":{"description":"Settle: wait deadline in milliseconds (default 10000).","minimum":1,"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"until":{"description":"Repeat scroll passes until this selector is visible on screen, then stop. Not valid with the top/bottom edge directions, which carry their own stop condition.","type":"string"}},"required":["direction"],"type":"object"},"name":"scroll"},{"description":"List active sessions, print the effective daemon state directory, or publish an armed open-to-destination script without closing its session Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"list shows active sessions; state-dir prints the daemon state directory; save-script publishes an armed recording without teardown.","enum":["list","state-dir","save-script"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"force":{"description":"Atomically replace an existing save-script target.","type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"path":{"description":"Optional .ad output path for save-script.","type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"session"},{"description":"Read or change supported operating-system settings, animation scales, appearance, or app permissions on the selected target. Platform support varies by setting and action. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"app":{"description":"App the change targets, by bundle id, package name, or app name: the app `clear-app-state` clears, or the app a `permission` change (or an iOS-simulator `location on|off` privacy change) lands on. A name resolves to the installed app as `open` resolves it: an iOS simulator, local or Limrun, matches display names and accepts only an installed bundle id, and Android accepts only an installed package and refuses a name that resolves to an intent with `setting_app_not_package`. One that resolves to nothing is refused with `app_not_installed` before anything changes. The app need not be running. Without it the session app is used; a device-wide change (`location set` on any target, the Android `location on|off` toggle, `mobile-data`, macOS permissions) refuses one with `setting_app_not_consumed`. The CLI reads it only from this invocation, never from `AGENT_DEVICE_TARGET_APP` or config `targetApp`.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"latitude":{"type":"number"},"longitude":{"type":"number"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"mode":{"enum":["full","limited"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"permission":{"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"setting":{"enum":["wifi","bluetooth","airplane","mobile-data","location","animations","appearance","text-size","faceid","touchid","fingerprint","clear-app-state","reset-keychain","permission"],"type":"string"},"state":{"type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["setting"],"type":"object"},"name":"settings"},{"description":"Shutdown a selected simulator or emulator. On Limrun, delete a created instance or release an attachment. Apps and data on a deleted instance are lost. A Limrun connection without an instance fails with DEVICE_NOT_FOUND and details.reason provider_instance_unallocated and creates nothing. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"shutdown"},{"description":"Capture the accessibility tree or compare it with the previous session baseline. Use the returned refs for subsequent semantic interactions and the diff option to verify UI changes. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"customActions":{"description":"Name the affordances an element merged away (iOS UIAccessibilityCustomAction, React Native accessibilityActions) — a card whose reply/options controls are not separate elements still lists them here. The names are for PLANNING, not invocation: there is no API to trigger them, so reach the affordance through the element detail screen, through the same control exposed as a labeled element elsewhere, or by coordinates from its rect. iOS simulator only; costs one accessibility round trip per merged element.","type":"boolean"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"forceFull":{"type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"interactiveOnly":{"type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"observeOnly":{"description":"iOS only. Refuse instead of activating or repairing the session app. Reports XCUIApplication state, which does not prove screen ownership (#2696).","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"raw":{"type":"boolean"},"record":{"description":"Force-record this out-of-band observation into a repair-armed heal (mutually exclusive with noRecord). Authored replay steps are recorded automatically and never need this.","type":"boolean"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"timeoutMs":{"description":"Maximum wall-clock time for the snapshot command.","type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"snapshot"},{"description":"Quick coordinate fling with optional repeat pattern. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"count":{"description":"Number of swipe repetitions.","maximum":200,"minimum":1,"type":"integer"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"from":{"additionalProperties":false,"description":"Swipe start point.","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"pattern":{"enum":["one-way","ping-pong"],"type":"string"},"pauseMs":{"description":"Pause between repeated swipes.","maximum":10000,"minimum":0,"type":"integer"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"to":{"additionalProperties":false,"description":"Swipe end point.","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["from","to"],"type":"object"},"name":"swipe"},{"description":"Simulate an incoming phone call or SMS on an Android emulator through its console over adb: call rings from the number, accept answers, cancel ends the call, and sms delivers a text message. The call screen or notification can cover the app, so re-snapshot afterwards. Times out after 90s.","inputSchema":{"additionalProperties":false,"oneOf":[{"properties":{"action":{"const":"sms","type":"string"}},"required":["text"]},{"not":{"required":["text"]},"properties":{"action":{"enum":["call","accept","cancel"],"type":"string"}}}],"properties":{"action":{"description":"call starts an incoming call, accept answers it, cancel ends it, sms delivers a text message.","enum":["call","accept","cancel","sms"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"number":{"description":"Caller or sender phone number: digits with an optional leading +.","type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"text":{"description":"Message text for sms; required for sms and refused for the call actions. The emulator drops characters outside the Basic Multilingual Plane, such as emoji.","type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["action","number"],"type":"object"},"name":"telephony"},{"description":"Run one or more replay scripts as a serial test suite Streams progress; no fixed client timeout.","inputSchema":{"additionalProperties":false,"properties":{"artifactsDir":{"type":"string"},"backend":{"type":"string"},"bundleUrl":{"description":"Bundle URL hint inherited by each test session.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"env":{"items":{"type":"string"},"type":"array"},"failFast":{"type":"boolean"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"maestro":{"type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"metroHost":{"description":"Metro/debug host hint inherited by each test session.","type":"string"},"metroPort":{"description":"Metro/debug port hint inherited by each test session.","type":"integer"},"paths":{"items":{"type":"string"},"type":"array"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"recordVideo":{"type":"boolean"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"retries":{"type":"integer"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"shardAll":{"type":"integer"},"shardSplit":{"type":"integer"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"testIme":{"description":"Activate the headless Android test IME for the sessions each suite attempt opens (default on for emulators; opt-in on real devices).","type":"boolean"},"timeoutMs":{"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"update":{"type":"boolean"}},"required":["paths"],"type":"object"},"name":"test"},{"description":"Start or stop trace-log capture and return the resulting artifact when capture ends. Without a path, start writes a timestamped trace log named after the session in the sessions directory of the daemon state; a path on stop moves the finished trace there. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"action":{"enum":["start","stop"],"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"path":{"type":"string"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["action"],"type":"object"},"name":"trace"},{"description":"Ask the app to handle an app-defined automation or test event, with an optional structured payload. Call this only for event names and payload shapes the app documents. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"event":{"description":"Name of an app-defined automation or test event the app documents.","type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"payload":{"additionalProperties":true,"description":"Structured payload passed to the event, in the shape the app documents for it.","type":"object"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["event"],"type":"object"},"name":"trigger-app-event"},{"description":"Press or long-press a TV remote button on Android TV, tvOS, or Vega OS. Android TV also supports volume, power, media, channel, guide, captions, input, color keys, and android-keycode:N. tvOS and Vega OS support up, down, left, right, select, menu, home, and back. Phones and WebDriver sessions are unsupported. The aliases ok, center, and enter map to select. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"button":{"description":"TV remote button. Android TV also accepts android-keycode:<n> with n from 1 to 2147483647.","oneOf":[{"enum":["up","down","left","right","select","menu","home","back","volume-up","volume-down","mute","power","sleep","wake","media-play-pause","media-next","media-previous","media-rewind","media-fast-forward","channel-up","channel-down","last-channel","guide","info","captions","tv-input","color-red","color-green","color-yellow","color-blue"],"type":"string"},{"pattern":"^android-keycode:(?:[1-9][0-9]{0,8}|1[0-9]{9}|20[0-9]{8}|21[0-3][0-9]{7}|214[0-6][0-9]{6}|2147[0-3][0-9]{5}|21474[0-7][0-9]{4}|214748[0-2][0-9]{3}|2147483[0-5][0-9]{2}|21474836[0-3][0-9]|214748364[0-7])(?![\\s\\S])","type":"string"}]},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"durationMs":{"description":"Press duration in milliseconds. tvOS and Vega OS use the exact hold duration; Android TV maps any positive value to an ADB longpress (longpress).","minimum":0,"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["button"],"type":"object"},"name":"tv-remote"},{"description":"Append text to the currently focused input. Use fill when the existing field value should be replaced, and focus first when no input is active. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"delayMs":{"description":"Delay between typed characters.","minimum":0,"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"text":{"description":"Text to type.","type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["text"],"type":"object"},"name":"type"},{"description":"Remove an installed app from the selected device. A package name or bundle id that is not installed succeeds with wasInstalled: false. The command allows 480s including device startup. Times out after 480s.","inputSchema":{"additionalProperties":false,"properties":{"app":{"description":"Package name, bundle id, or installed app name.","type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceBaseline":{"description":"Proxy lease: saved device state (baseline) to restore on the leased device. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceMode":{"description":"Proxy lease: iOS simulator mode, slim or full. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"imageTag":{"description":"Proxy lease: Android system image tag, for example google_apis_playstore. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"osVersion":{"description":"Proxy lease: OS version or range, for example 18.6.2 or \">=26\" (Android: API level). Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"string"},"physical":{"description":"Proxy lease: true requests a physical device; false selects nothing. Honored only by a proxy backend that leases by spec; other daemons refuse it.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"required":["app"],"type":"object"},"name":"uninstall"},{"description":"Resize the active web viewport before taking snapshots or screenshots. Useful for fixed-layout or 100vh apps where changing the viewport reveals different content. Times out after 90s.","inputSchema":{"additionalProperties":false,"properties":{"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"height":{"description":"Viewport height in CSS pixels.","minimum":1,"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"udid":{"description":"Apple device or simulator UDID.","type":"string"},"width":{"description":"Viewport width in CSS pixels.","minimum":1,"type":"integer"}},"required":["width","height"],"type":"object"},"name":"viewport"},{"description":"Wait for a duration, text, snapshot ref, selector to appear, selector to be strictly absent, or stable UI. Text matches a label, identifier, or value; an editable field never matches by its current value or by a label that only repeats it, so text you typed does not satisfy it. Use the strict absence target when zero selector matches are required; stable waits until the UI stays quiet for the requested window. Times out after 90s; a caller-supplied budget extends it.","inputSchema":{"additionalProperties":false,"properties":{"absent":{"type":"string"},"debug":{"description":"Enable debug diagnostics.","type":"boolean"},"depth":{"type":"integer"},"device":{"description":"Device name; ids go in udid or serial.","type":"string"},"deviceTarget":{"description":"Device form factor.","enum":["mobile","tv","desktop"],"type":"string"},"durationMs":{"type":"integer"},"includeCost":{"description":"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.","type":"boolean"},"kind":{"enum":["duration","text","ref","selector","absent","stable"],"type":"string"},"mcpOutputFormat":{"description":"Result text: compact optimized (default) or the full result as JSON (larger).","enum":["optimized","json"],"type":"string"},"noRecord":{"description":"Do not record this action.","type":"boolean"},"platform":{"description":"Device platform.","enum":["apple","android","harmonyos","vega","linux","web","ios","macos"],"type":"string"},"quietMs":{"type":"integer"},"raw":{"type":"boolean"},"ref":{"type":"string"},"responseLevel":{"description":"Result detail: digest (smallest) or full (largest), as JSON; default is compact text.","enum":["digest","default","full"],"type":"string"},"scope":{"type":"string"},"selector":{"type":"string"},"serial":{"description":"Android, HarmonyOS, or Vega VVD serial.","type":"string"},"session":{"description":"Session name.","type":"string"},"stable":{"type":"boolean"},"target":{"description":"Alias for deviceTarget.","enum":["mobile","tv","desktop"],"type":"string"},"text":{"type":"string"},"timeoutMs":{"type":"integer"},"udid":{"description":"Apple device or simulator UDID.","type":"string"}},"type":"object"},"name":"wait"},{"description":"Usage guides. No topic: the root decision card. topic = one of commands, manual-qa, maestro, workflow, scripting, gestures, tv, debugging, react-devtools, cdp, react-native, physical-device, ios-system-ui, foldable, remote, macos, web, dogfood, validate for that guide, or a tool name for its complete flag reference. For specialized work or an unclear command shape only; not a startup step, not needed after an error that carries a hint.","inputSchema":{"additionalProperties":false,"properties":{"topic":{"description":"Guide topic or tool name; omit for the card.","type":"string"}},"type":"object"},"name":"help"}]}}}
