Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Argent — iOS Simulator, Android Emulator, and Chromium app control for interacting, testing, profiling and debugging mobile and Chromium applications. Use the platform the user named; otherwise prefer a device list-devices shows already running, and do not default to iOS. In a single-platform project, boot that platform. Prefer these tools over raw xcrun or adb commands, which are a fallback. Prefer launch-app or open-url over tapping home-screen icons. If the task may need a saved e2e test, load the argent-create-e2e skill (argent-qa-e2e for acceptance tests) before the first launch or in-app action: recording is not retroactive. Load the matching argent-* skill before React Native build or debug work, profiling, a physical phone, a Mac app or a TV. Interaction tools return the screen after the action: a screenshot plus the accessibility element tree with normalized tap frames. Take coordinates from that tree; call describe only when no fresh tree is available — never guess coordinates from pixels. When the screenshot or tree matches (or the tree differs slightly from) an earlier result, it names that earlier result by its screenshot or tree id (unchanged note or - gone / + new lines) in place of repeating it. If a tap fails twice, stop retrying and call a discovery tool again. Use await-ui-element to wait for the UI instead of polling with screenshots. Do not stop simulator servers when a task finishes: the next task reuses them. Call stop-all-simulator-servers when the user asks to clean up or ends the session, or when a skill tells you to recycle a device's services, always with devices: [...] naming the devices this session used. Never stop a Metro the user started unless they ask. One tool-server is shared by every agent using this argent install, so an unscoped call tears down their devices too — reserve it for a deliberate machine-wide cleanup. The argent CLI manages the toolkit: argent --help lists its commands.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list-devicesA

List the targets argent can drive or start: iOS simulators and iPhones, Android emulators, AVDs and phones, Chromium (CDP) apps, Vega (Fire TV) devices, and iOS simulators hosted on Argent Cloud. Returns { devices, notes? }. Each device has a 'platform', a 'kind' and a 'state'. Pass its 'udid' (iOS), 'serial' (Android, Vega) or 'id' (Chromium) to the other tools. Ready devices come first. Start a stopped device with boot-device: an iOS simulator by 'udid', an Android AVD (kind 'avd', no serial until it runs) by 'avdName', a Vega VVD by 'vvdImage'. A physical phone (kind 'device') needs no boot; use one only when the user asks for it. A physical iPhone is usable only in state 'connected'. platform 'ios-remote' is an iOS simulator hosted on Argent Cloud, usable from Linux too (https://argent.swmansion.com/cloud/); drive it with the same tools by its 'remote:' udid. A 'deviceSet' simulator (e.g. from Radon IDE) runs headless. runtimeKind 'tv' marks a focus-driven TV target: use describe, tv-remote and keyboard, not gestures. 'foldable: true' marks a device the fold tool folds. Chromium apps are found on CDP port 9222 (more via ARGENT_CHROMIUM_PORTS); boot-device with electronAppPath launches one. 'notes' says which platform this machine cannot reach and what would change that; tell the user when their task needs that platform.

boot-deviceA

Start an iOS simulator, launch an Android emulator, start a Vega (Fire TV) Virtual Device, or spawn an Electron app and wait until it is ready to accept interactions. Pass exactly one of 'udid', 'avdName', 'vvdImage', or 'electronAppPath'; it picks the platform. Use when starting a session, once you have picked a target. Returns a tagged payload: { platform: 'ios', udid, booted, note? } or { platform: 'android', serial, avdName, booted, note? } or { platform: 'vega', serial, vvdImage, booted } or { platform: 'chromium', id, port, pid, booted } (an Electron app boots as a Chromium/CDP device). On Android the tool hot-boots from the AVD's default_boot snapshot when usable and falls back to a slower cold boot otherwise. Vega starts the single SDK-managed VVD (~10s). If an Android/Electron boot stage fails, the tool terminates the device it spawned so the next retry starts clean.

launch-appA

Open an installed app, or confirm the running renderer (Chromium). Use when starting any app; prefer this over tapping home-screen / launcher icons. Also prepares the native-devtools injection before the app starts (iOS and Apple TV). Returns { launched, bundleId, note?, networkCapture? }. Fails if the app is not installed on the target device (iOS / Android). On a physical iPhone this registers the app every other tool acts on; com.apple.springboard and com.apple.Spotlight register without launching. note warns when runner signing is not ready. If Argent started native capture, networkCapture reports whether it followed the launch or was stopped. This note applies to Android and local iOS simulators. For Chromium, the app is already running behind a CDP port; this call simply refreshes the cached viewport and acknowledges the bundleId tag. To change the visible route, use open-url.

Common iOS bundle ids: com.apple.MobileSMS, com.apple.mobilesafari, com.apple.Preferences, com.apple.Maps, com.apple.mobileslideshow (Photos), com.apple.MobileAddressBook Common Android packages: com.android.settings, com.android.chrome, com.google.android.apps.maps, com.google.android.gm, com.android.vending, com.google.android.dialer, com.google.android.apps.messaging

restart-appA

Terminate then relaunch an app on iOS, Android, or Vega. Use when you need a clean in-memory state without a full reinstall. The relaunch also refreshes the native-devtools injection (iOS and Apple TV). Returns { restarted, bundleId, networkCapture? }. If Argent started native capture, networkCapture reports whether it followed the launch or was stopped. This note applies to Android and local iOS simulators. Fails if the app is not installed, on a local iOS simulator if terminating it does not finish within 15s, or on a remote simulator if terminating it fails for a reason other than the app not running.

reinstall-appA

Install or reinstall an app on the device. The previous installation (if any) is uninstalled first so app data and runtime permissions are cleared. Use for a full reinstall after rebuilding, or to start from a clean app state. Returns { reinstalled, bundleId }. Fails if appPath does not exist or is not the platform's package, or bundleId does not match it (not checked on Vega or a remote simulator); these checks run before anything is uninstalled. On Android it also fails, without installing, when bundleId is still on the device after the uninstall or that check fails (the app may then be gone), and on a local iOS simulator when the uninstall does not finish within 30s.

settings-permissionsA

Grant or deny an app's runtime permission, or reset it, without navigating the system Settings UI. Use when setting up a test, before the app asks for the permission. iOS simulator: grant location/location-always needs the app already installed (location authorization is not applied to a bundle id until the app exists). Local simulators enforce this; a remote simulator can't be checked, so install the app there first. Other services can be granted before install. Android: changes the mapped android.permission.* runtime permissions (reset also best-effort clears the user-set permission flags). The app must be installed and declare them in its manifest. Some permission changes terminate the app if it is running (system behavior on both platforms), so set permissions before launching, or relaunch after. Returns { action, permission, bundleId, applied, skipped? }: applied lists the platform-level services/permissions actually changed; skipped (Android) lists mapped permissions the package manager rejected, e.g. ones the manifest doesn't declare. Fails if nothing could be applied.

open-urlA

Open a URL or URL scheme on the device. Use when navigating to a web page or deep-linking into an app. On Chromium, this navigates the primary renderer to the given URL; a URL that does not load a page, start a download or run as javascript:, such as tel:, mailto:, an unknown scheme or no scheme, fails there. Cross-platform schemes on native devices: https://, tel:, mailto:. iOS also: messages://, settings://, maps://. Android also: geo:, plus any app-specific deep link. An https:// link opens the native app only if that app is verified for the link's domain (Universal Links / App Links); even then, an iOS simulator may open Safari. To reliably open an installed app, use its custom scheme (scheme://path) or launch-app. On a physical iPhone, the app that receives the URL becomes the app under automation. Returns { opened, url, note? }. note explains the routing caveat when a web URL was opened on a native device. Fails if no app is registered to handle the URI (iOS/Android) or the renderer rejects the navigation (Chromium).

screenshotA

Capture a PNG of the device screen (iOS simulator or physical device, Android emulator, Apple TV simulator, Vega, or Chromium app). Returns { image }, the PNG file. Use when you need a baseline image before an interaction or the screen state after a delay. Gestures, key presses and app launches already attach a screenshot to their result. Fails if the capture backend (simulator-server, emulator, Chromium CDP) cannot be reached for this device.

screenshot-diffA

Compare two PNG screenshots and return a compact visual-diff summary. Each side is a saved PNG or a live capture from the device. baselinePath + captureCurrent is the common visual-regression flow. Both images must have identical dimensions: save baselines with screenshot scale: 1.0, one per device model. A size difference fails as a dimension mismatch. Use when stable before/after screenshots exist and the expected result is pixel-visible: layout, spacing, color, typography, image/icon rendering, clipping, overflow, or text rendering. Physical iPhones: live captures are device-wide and need no registered app. Returns { summary }, plus diffPath and contextDiffPath when pixels differ. The summary uses normalized [0,1] screen locations matching describe coordinates; diffPath is the full-size diff image and contextDiffPath is a downscaled image for MCP/agent display. Ignores the fixed top status-bar band for both pixel and OCR text comparisons. Fails if the input sources are invalid, PNG files cannot be read, outputDir cannot be written, or the simulator-server / emulator backend is not reachable.

screen-recording-startA

Start an MP4 recording of the device screen. Use when the user wants a video of an interaction or animation. Use screenshot for a still image. Recording continues across tool calls until stopped or until the time limit. Set a reminder as soon as recording starts. The start result returns outputFile on the tool-server host. Retrieve the video with screen-recording-stop, even after the time limit. Start fails if the target is unavailable or already has a recording waiting to be stopped or retrieved. Local simulators, Android emulators and devices, and cabled iPhones require ffmpeg. On a physical iPhone, check for transportType: "wired" in list-devices and have the user allow camera access for ios-screen-stream if prompted on the first recording. tvOS, Chromium, and Vega are unsupported.

screen-recording-stopA

Stop a screen recording and retrieve its MP4. Call this even after the time limit or an early capture exit. The tool downloads recordings from remote simulators. Returns the saved video and its durationMs. When trimming removes still sections, wallClockMs gives the original duration and trimmedMs gives the time removed. On a foldable simulator the video follows the active panel, keeps the first panel's size, and reports any panelSwitches. Check warning for capture problems, such as an undetected foldable panel.

audio-inputA

Set what apps in an iOS Simulator hear as microphone input: an audio file, a tone, or the real microphone. A file starts playing on this call, so call it right before the action that makes the app record.

gesture-tapA

Press the device screen (iOS simulator or physical device, Android emulator, or Chromium app) at a point given as fractions of the screen width and height (not pixels): a Down event followed by an Up event at the same spot. Use when tapping a button, link, or any tappable element on the screen. Returns { tapped: true, timestampMs }. On physical iOS, reactivated: true = app was re-fronted; re-describe. Fails if the device backend (simulator-server / emulator / Chromium CDP) is unreachable. Before tapping, take the coordinates from describe on every platform (on Chromium it walks the DOM). More information in argent-device-interact skill

chromium-tabsA

List and switch the tabs / windows of a Chromium (CDP) app (an Electron app's BrowserWindows or a Chromium browser's tabs), and open or close them. The active tab is what describe / gesture-tap / screenshot / debugger-evaluate / open-url all operate on, so select a tab before driving it. tabIds (t1, t2, …) are stable for the session and never reused. Use when an app exposes multiple windows or tabs and you need to inspect or drive one other than the current page, or to open/close a page during an e2e test. Returns { tabs: [{ tabId, targetId, title, url, active, label? }] } after the action. Fails if the device is not a Chromium (CDP) device, or the requested tabId/label no longer matches a live tab.

chromium-cookiesA

Read and write cookies of a Chromium (CDP) app, HttpOnly cookies included. set needs name, value, and url or domain; delete needs name and url or domain. Use when seeding an authenticated session before an e2e test (set the session cookie, then navigate) or asserting cookie state after one. Returns { cookies, count } for get, or a small status object ({ set } / { deleted } / { cleared }) otherwise. Fails if the device is not a Chromium (CDP) device, or a param that set / delete needs is missing.

gesture-swipeA

Execute a smooth swipe / drag touch gesture between two points on the device (iOS simulator or physical device, or Android emulator). All from/to positions are fractions of screen width/height (not pixels), same as gesture-tap. Generates interpolated Move events for a natural feel (~60fps). Swipe up (fromY > toY) to scroll content down. Use when you need to scroll a list, dismiss a modal, drag an element, or navigate between pages. Not supported on Chromium; use gesture-scroll there instead. Physical iOS: an edge gesture (back-swipe) needs fromX 0 exactly; durationMs sets drag speed, not time; momentum:false only rests 300ms at the end and does not damp. Returns { swiped: true, timestampMs }. On physical iOS, reactivated: true = app was re-fronted; re-describe. Fails if the simulator-server / emulator backend is not reachable for the given device.

gesture-scrollA

Send mouse-wheel events at a point to scroll content in a Chromium app. The anchor x/y and the deltas are fractions of the window (not pixels); x/y match gesture-tap and describe. Use when content is below/above the fold (describe shows off-screen elements with zero height) or a list needs scrolling. Chromium only: on iOS/Android use gesture-swipe. Returns { scrolled: true, timestampMs }. Fails if the Chromium CDP session is not reachable for the given device.

gesture-dragA

Press the left mouse button at a start point, move to an end point, and release: a desktop mouse drag in a Chromium app, with mouse moves interpolated at ~60fps. All positions are fractions of the window width/height (not pixels), the same space as gesture-tap and describe, except that exactly 1.0 lands one pixel inside the window edge. Use for slider thumbs, drag-and-drop, text selection, or draggable UI elements. Dragging never scrolls content on desktop; use gesture-scroll for lists/pages. Chromium only: on iOS/Android use gesture-swipe. Returns { dragged: true, timestampMs }. Fails if the Chromium CDP session is not reachable for the given device.

gesture-customA

Send a sequence of touch events for complex gestures. Use for: long press, drag-and-drop, custom scroll, pinch (second touch point). For simple taps use the gesture-tap tool. For straight-line scrolling use the gesture-swipe tool. For pinch gestures use gesture-pinch. For rotation gestures use gesture-rotate. On a local iOS simulator, set edge to the starting side for a system gesture. To move a full-screen app into Split View on an open Duo, set edge:"bottom". In one continuous contact move from bottom center to center, pause there, drag to the requested side, and release. See the device-interact foldables reference for coordinates and timing. All x/y values are fractions of the screen width/height (not pixels). Physical iOS: a Down, any Moves, then an Up; x2/y2 adds a second finger. A plain Down then Up: same point = press-hold, other point = drag (Up delayMs = rest before the move); one Move at the Down point between them = long-press pickup (Move delayMs = hold, Up delayMs = move time). Any other train plays as timed paths, each event waiting its delayMs, and needs the app drawn in portrait. Returns { events: number } with the total count of events dispatched. On physical iOS, reactivated: true = app was re-fronted; re-describe. Fails if the target device is not booted or an event type is invalid.

Example long-press at center: [{"type":"Down","x":0.5,"y":0.5},{"type":"Up","x":0.5,"y":0.5,"delayMs":800}]

Example pick up a list item with a long press, then drag it up: [{"type":"Down","x":0.5,"y":0.6},{"type":"Move","x":0.5,"y":0.6,"delayMs":800},{"type":"Up","x":0.5,"y":0.3,"delayMs":500}]

Example smooth scroll down: [{"type":"Down","x":0.5,"y":0.7}, {"type":"Move","x":0.5,"y":0.6},{"type":"Move","x":0.5,"y":0.5},{"type":"Move","x":0.5,"y":0.4}, {"type":"Up","x":0.5,"y":0.3}]

Example pinch-to-zoom (with interpolate:10 for smoothness): events: [{"type":"Down","x":0.4,"y":0.5,"x2":0.6,"y2":0.5}, {"type":"Up","x":0.2,"y":0.5,"x2":0.8,"y2":0.5}] interpolate: 10

gesture-pinchA

Execute a pinch-to-zoom gesture by moving two fingers toward or away from a center point to change the scale of on-screen content. Positions and distances are fractions of the screen (0.0–1.0, not pixels), as in gesture-tap. startDistance > endDistance = pinch in (zoom out). startDistance < endDistance = pinch out (zoom in). Typical values: startDistance 0.2, endDistance 0.6 for a zoom-in pinch at screen center. Use when you need to zoom in or out on a map, image, or zoomable view. Returns { pinched: true, timestampMs }. On physical iOS, reactivated: true = app was re-fronted; re-describe. Fails if the simulator-server / emulator backend is not reachable for the given device, or on a physical iPhone when the app is not drawn in portrait.

gesture-rotateA

Send a two-finger circular arc gesture to rotate on-screen content by a specified angle. Two fingers are placed opposite each other at a fixed radius from the center, then swept from startAngle to endAngle degrees (endAngle > startAngle = clockwise). All positions and radii are normalized 0.0–1.0 (fractions of screen width/height, not pixels), same coordinate space as gesture-tap and gesture-swipe. Typical values: radius 0.15, startAngle 0, endAngle 90 for a 90° clockwise turn. Size the orbit with radius, or with radiusX and radiusY together (the pair overrides radius); one half of the pair alone, or none of the three, is rejected. A single radius traces a physical ellipse on a non-square screen (finger separation varies through the turn); for a physically circular orbit, pass radiusX and radiusY with radiusX·width = radiusY·height. Unlike gesture-pinch which moves fingers linearly to zoom, this orbits fingers in an arc to change orientation. Use when you need to rotate a map, image picker, or any rotateable UI element. Returns { rotated: true, timestampMs }. On physical iOS, reactivated: true = app was re-fronted; re-describe. Fails if the simulator-server / emulator backend is not reachable for the given device, or on a physical iPhone when the app is not drawn in portrait.

buttonA

Press a device hardware button (iOS simulator or physical device, Android emulator or device). Supported buttons depend on the platform: buttons not present on the target (e.g. 'back' on iOS, 'actionButton' on Android, 'power' or 'appSwitch' on a physical iPhone) are rejected with a clear error. Use when you need to trigger hardware button events. Returns { pressed: buttonName }. Fails if the device backend is not reachable: the simulator-server for iOS, or adb for Android.

keyboardA

Type text or press special keys on the device (iOS simulator, Android emulator or device, Chromium app, Vega Virtual Device, or Apple TV / Android TV) using keyboard events. Use when you need to enter text or trigger a named key such as enter, escape, or arrow keys. On Vega and Apple TV / Android TV, prefer the remote tools for D-pad navigation; focus a text field with tv-remote first (e.g. a search or login box), then type into it with keyboard. Tap the field first: with no focus the text is dropped and the call still succeeds. Returns { typed: string, keys: number }. On physical iOS, reactivated: true = app was re-fronted; re-describe. On an iOS simulator, when the focused field was empty before typing, the field is read back: verified: true = it holds the typed text, though iOS may have capitalized the first letter of a word or curled a quote; no verified = the field was not checked: it held text before typing, the text has a Return or Tab, focus moved to another field while typing, or the field could not be read in time (the app busy, the accessibility service missing or slow); verified: false comes with a warning (keys dropped or repeated, or the app or iOS changed the text), so read the field before submitting. Fails if an unsupported key name is provided (rejected before anything is sent) or if the device's input backend is not reachable. A failure is not rolled back. Un-typeable text is rejected mid-string on the iOS simulator and Chromium, leaving the characters before it in the field (Android, Vega and TV targets check the whole string up front). A transport failure partway also leaves the text already sent. On a retry, read the field's actual contents; do not assume it is unchanged. React Native: after typing, the next tap outside the field may only close the keyboard. If only the keyboard closed, tap again; where the field submits on return, key: "enter" avoids the extra tap.

pasteA

Set the DEVICE clipboard to text, then trigger the platform's paste shortcut to paste it into the focused field (iOS simulator, Android emulator). Do NOT use this in place of keyboard. keyboard types as a user would and is the default for all text entry; call this only where a real user would paste: a 2FA/OTP code copied from another app, a long link or token, or when testing the app's own paste handling. Tap the field first so it has focus. Returns { pasted: true }, plus via: "keyboard" when a secret was typed instead of pasted. Fails on a TV target, when the device clipboard cannot be set, when a secret that has to be typed holds a character that cannot be typed, or when the simulator-server build lacks clipboard support.

rotateA

Set the device orientation. Use when testing layout in a different orientation. Re-run describe afterwards: frame coordinates change with the orientation. On an unfolded foldable iOS simulator (the iPhone Duo), the value sets the orientation of the device, not of the UI: Portrait gives a landscape UI and LandscapeLeft gives a portrait UI. To fold or unfold the device, use fold. Returns { orientation }. Fails on a TV target, or if the target device is not booted.

shakeA

Send a shake gesture to the device (iOS simulator or Android emulator). Use when you need to trigger anything bound to the shake gesture: iOS's "Undo Typing" / "Redo Typing" prompt in a text field, React Native's developer menu in a debug build, or an app's own shake-to-report handler. iOS delivers one discrete shake per gesture (the same motion event a physical device raises). Android has no OS-level shake event: the accelerometer is driven through a burst of hard direction changes so app-side detectors fire, and the resting orientation is restored afterwards. Returns { shaken: true, count }. Works on local and remote (sim-remote) iOS simulators. Fails on a physical device or a TV: only phone/tablet simulators and emulators are supported.

network-conditionsA

Add latency, cap speed or simulate an offline connection. Use when testing loading states, retries or timeouts. Each call replaces the previous conditions. Omit the conditions to reset after the test. Returns the scope and applied conditions. A reset returns null for conditions. On a local iOS simulator, Argent shapes one app's intercepted HTTP traffic. While online, Argent forwards requests immediately and delays delivery to the app. Native devtools must be connected. WebSockets and the Metro port are exempt. Follow message if the result includes a status. On Android, Argent shapes traffic that uses the system proxy. Restart the app if existing connections bypass shaping. Throttling fails if the emulator has a proxy Argent did not set. Ethernet can prevent offline mode. Reset if a crash leaves the emulator unable to connect. On Chromium, Argent shapes the active page. Workers and cross-site iframes are outside its scope. Fails on physical devices and remote iOS simulators.

foldA

Move the hinge of a foldable iOS simulator (the iPhone Duo) or Android emulator (a Pixel Fold or generic foldable AVD) to a posture or to an angle; pass exactly one of the two. The tool returns when the device accepts input again, so the next tap lands. Use when you must see or test an app in a different posture. list-devices marks foldable devices with foldable: true. To turn a device without a fold, use rotate. All tools use the active panel (the panel that shows the UI), also after a fold made outside argent. The coordinates and the screenshot size change with the panel. Before you tap, read the element tree in this result or run describe again. iOS: unfolded, the UI is landscape, as on a rotated iPhone. A fold between two angles that are not closed or open can keep the current panel. To change panels, fold to closed or open. To move a full-screen app onto either half of the open iPhone Duo, use gesture-custom with edge: "bottom". Drag up, pause at center, then drag sideways and release in one contact. iOS returns { activeScreen, screen: { id, panel, width, height }, posture?, hingeAngle, warning? }. screen names the active panel and gives its size in pixels. posture is set only at 0°, 120° and 180°. warning is set when argent cannot find the active panel, or when the device did not change to the expected panel. Android returns { posture?, deviceState, hingeAngle?, warning? }. deviceState is the state Android committed (CLOSED, HALF_OPENED, OPENED), and posture is the matching preset. A lock screen the fold raises is dismissed; warning is set when it cannot be, or when a lock screen is showing or the screen is off after the fold. On a generic foldable AVD, closed shows only the left part of the display and describe frames do not match tap coordinates; use a Pixel Fold AVD to test the cover panel. Fails if the device is not foldable, is a remote simulator or a physical Android device.

tv-remoteA

Press a TV remote / D-pad button (or a whole path of them) on a TV device: Apple TV (tvOS), Android TV (leanback), or Vega (Fire TV). A TV is navigated with a directional remote, not touch. Use when you need to move focus or press a key on a TV, instead of gesture-tap/swipe (which do not apply on a TV). Call describe before the first press to find the cursor. Read where focus landed from the element tree in this result, or call describe again when it is missing. Returns { pressed, count }. Fails on a target that is not a TV, and on the Apple TV simulator for rewind, fastForward, next, previous, volumeUp, volumeDown and mute (its HID stack ignores them); every other button works on all three platforms.

run-sequenceA

Run several device interaction steps in one call. Use when every step is known in advance (e.g. several scrolls, or typing then enter). If a step depends on what an earlier one shows, make separate calls. Steps run in order. After a step that can change the screen, the next one waits up to 1000ms for the element tree to settle (see settle); keep an await-ui-element before a step that needs the new screen. If a step fails (an error, a tool not allowed or not supported on the target, or a wait step that returns success=false), the sequence stops there. Returns { completed, total, steps } with a result or error for each step that ran. One screenshot and element tree are captured after the last step, not per step. A {{secret:...}} in any step skips that capture, so type and submit a secret in one sequence.

Allowed tools, args (? = optional) and targets. Positions and distances are 0–1 fractions of the screen (window on Chromium), not pixels; angles in degrees, durations in ms. gesture-tap: x, y, clickCount? [ios/android/chromium] gesture-swipe: fromX, fromY, toX, toY, durationMs?, momentum? [ios/android] gesture-scroll: x, y, deltaX?, deltaY? (positive scrolls down), durationMs? [chromium] gesture-drag: fromX, fromY, toX, toY, durationMs?, momentum? [chromium] gesture-custom: events: [{ type: "Down"|"Move"|"Up", x, y, x2?, y2?, delayMs? }], interpolate?, edge? [ios/android] gesture-pinch: centerX, centerY, startDistance, endDistance, endCenterX?, endCenterY?, angle?, durationMs? [ios/android] gesture-rotate: centerX, centerY, startAngle, endAngle, radius (or radiusX + radiusY), durationMs? [ios/android] button: button: "home"|"back"|"power"|"volumeUp"|"volumeDown"|"appSwitch"|"actionButton" [ios/android] keyboard: text? or key? (one per step, e.g. key "enter"), delayMs?; text may hold {{secret:}} placeholders, resolved server-side [all; Apple TV/Android TV: text only] paste: text (only where a user would paste, e.g. an OTP) [ios sim/android emu] rotate: orientation: "Portrait"|"LandscapeLeft"|"LandscapeRight"|"PortraitUpsideDown" [ios sim/android] shake: count? [ios sim/android emu] fold: posture? "closed"|"half-open"|"open" or angle? 0–180 (later steps land on the new panel) [foldable ios sim/android emu] tv-remote: button (one, or an array run as a path), repeat? [apple tv/android tv/vega] await-ui-element: condition: "exists"|"visible"|"hidden"|"text", selector: { text?, identifier?, role? }, expectedText?, textMatch?, timeoutMs?, pollIntervalMs? [all] await-network-request: bundleId, url, plus the standalone tool's optional args. Call network-capture-start before the sequence. [ios sim/android/chromium]

debugger-connectA

Connect to an app's JavaScript debugger and start collecting console logs. Reuses an existing connection. React Native apps connect through Metro. Chromium uses the page's existing CDP session. Use when starting a debug session or before calling other debugger-* tools. Keep the same device_id for later debugger calls. If shared Metro reports an ambiguous iOS simulator or Android target, retry with the intended device's logicalDeviceId from the error. Returns connection details and, after a crash, a note with the previous log path if available. On Chromium or legacy Metro (such as Vega), projectRoot is empty. Fails if the runtime is unreachable.

debugger-statusA

Get JS runtime debugger connection status and diagnostic info. Use when you need to verify connectivity before using other debugger tools. Never fails when the runtime is simply unreachable: it returns a discriminated result instead:

  • { status: "connected", ... } with port, projectRoot (empty on Chromium and on legacy Metro, e.g. Vega), deviceName, appName, logicalDeviceId (absent on Vega), isNewDebugger (false on the legacy inspector), connected flag, loadedScripts count, and sourceMapReady (always true: waits for pending source maps before returning).

  • { status: "not_connected", connected: false, reason, detail, guidance } (port omitted on Chromium), with reason one of metro_not_running, no_app_connected, device_mismatch, cdp_unreachable, runtime_unresponsive, stale_connection, reconnecting. Follow the guidance field; do not retry in a loop.

debugger-evaluateA

Run JavaScript in the app's runtime. React Native uses Hermes, including on Vega. Chromium uses V8. Returns the result serialized by value as JSON, with deviceName, appName, and logicalDeviceId. A returned Promise is awaited and its resolved value returned. Use when you need to read app state, including localStorage and sessionStorage on Chromium, call app functions, or test logic at runtime. Cyclic objects, which many RN runtime values are (fiber nodes, navigation refs, global), fail with a serialization error. Fails if the expression throws or the runtime is not connected. On React Native, a module that fails to load while the expression runs (e.g. a lazy react-native export whose native module the app lacks) fails the call with that module's error instead of opening the app's red box.

debugger-reload-metroA

Restart the Metro JS bundle in the connected React Native app without restarting the native process. Use when you want to apply code changes or reset JS state. Returns { reloaded, port, method (cdp or http), deviceName, appName, logicalDeviceId }. Fails if Metro is not running on the given port.

debugger-component-treeA

Fetch the current screen of a running React Native app as a compact tree of React components. Each on-screen component is listed with its name, its text (or accessibilityLabel when it has no text), [testID=…] and its center as (tap: x,y) fractions of the screen. Full-screen transparent wrappers and implementation-detail components are pruned. Wrappers the size of their parent are pruned too, so a missing name proves nothing: check with debugger-inspect-element.

Use when you need what describe does not show: a testID for a selector (on Android, describe omits the testID of a view that has no label and is not tappable), or the component names and nesting behind the screen before editing code. To find what to tap, use describe.

Returns a compact text tree; call again after navigation. Fails if the Metro debugger is disconnected.

debugger-inspect-elementA

Inspect the React component hierarchy at a screen coordinate (x, y). Returns components from the tapped element upward through its parent hierarchy, each with its source file:line and a code fragment. The first items (lowest indices) are the most specific: the exact component under the tap point and its direct parents. Higher indices are broader context (page, navigator). Use when you need the source file and line for a component at a point. Convert fractions from debugger-component-tree using the width and height in its Screen line. Fails if the app is disconnected or the point is outside the screen.

debugger-log-registryA

Get a summary of all console logs captured from the app's JS runtime, with the newest entries inline in { entries } (oldest first, messages cut to 300 characters). Returns the log file path, entry counts by level, and message clusters (grouped by similarity). Supports React Native and Chromium. Use when investigating warnings, errors, or unexpected output. Read { entries } first; Grep the returned file only for older lines or full messages, and never Read it whole: capture stops at 50,000 lines per session. Returns empty stats if no log data has been captured yet. Check { note }, which is present when { file } does not exist or holds fewer entries than totalEntries counts (failed writes, e.g. a full disk), or when the previous debugger session ended: torn down (its log file deleted) or cut off by an app crash (the note names its kept log file, if it had one). With a note about the previous session, the stats and { entries } hold only what the runtime replayed or logged since. Without a note, empty means the app has logged nothing. When the debugger cannot be reached, it returns { status: "not_connected", reason, detail, guidance } with NO log file. Follow the guidance (do not retry in a loop). Grep a log file in this state only when a { note } names one kept from before the app crashed. A "connected" result's stats may come from a session whose socket has since died. Use debugger-status, not this tool, to judge debugger health.

view-network-logsA

List captured HTTP requests from React Native JavaScript or the active Chromium tab. Use when you need to find a request or compare several calls. For native traffic, use native-network-logs. Returns a paginated list with request IDs, status, size and timing. Pass an ID to view-network-request-details for headers and bodies. On iOS simulators and Android, call network-capture-start before the action and again after a reload. On Vega, read this log before the action and again after a reload to resume capture. Chromium records while Argent is attached to the page. Fails if the Chromium target is unreachable. A read can also fail if Argent cannot reach the debugger for an existing JS capture. If the tool returns a capture message in place of a list, follow it before retrying.

view-network-request-detailsA

Read the details of one captured request. Call this with an ID from a network log or await-network-request. Native requests need no debugger connection. Returns status, timing, headers and available bodies. Argent redacts sensitive headers and limits text previews to 1000 characters. URLs and bodies can still contain secrets. If a native upload is still in progress, retry after it finishes. If the ID is not found, the tool returns a message. Refresh the log if that happens or after a JavaScript reload. Reloads can reuse IDs for different requests. On Vega, a JS lookup can start capture. Read view-network-logs before triggering the request.

network-capture-startA

Start HTTP capture on iOS simulators, Android and Chromium. Call this before the action you want to inspect. Each start keeps existing requests and opens a new window for await-network-request. On Chromium, start attaches to the tab if needed and marks the window in its log. Returns each layer's readiness in armed. Follow reason if a layer is still waiting or unavailable. Native capture can arm when the app connects on iOS. On Android, it can attach when Argent launches the app. JS capture needs the app's Metro port. Start it again after a reload or relaunch. Stop capture with network-capture-stop when you have the requests. Native capture can affect timing. Fails with NETWORK_CAPTURE_UNAVAILABLE or TOOL_DEPENDENCY_MISSING when every requested layer is unavailable.

network-capture-stopA

Stop capture and keep the recorded requests. Call this after collecting the requests you need or before profiling. Read any Android native bodies you need before stopping. On Chromium, this closes the window for await-network-request. The tab log keeps recording while Argent is attached. Returns a result for each layer. Check armed and reason. The reason can explain an unconfirmed stop or say that capture never started. If Argent fails to reach the JS runtime, retry after it reconnects to Metro.

await-network-requestA

Check whether a request finished in the latest capture window. Call network-capture-start before the action. Call this tool after triggering the request, then stop capture when you are done. On Chromium, match the final URL and method after redirects. Other layers use the URL the app requested. Physical iPhones and Vega are unsupported. Returns the match or diagnostic details. Use match.id with view-network-request-details. A miss only means no captured request matched. Check cause and nearMisses. If capture is unreadable, follow the layer notes before repeating the action. An active JS window can restore recording after a disconnect. Requests sent before it reconnects can be missing. Fails with NETWORK_CAPTURE_NOT_STARTED if there is no usable capture window. Start capture and repeat the action. A result with success false fails an e2e step and stops a run-sequence.

describeA

Get the accessibility / DOM element tree for the current screen. Use when you need element frames or labels and have no fresh tree: most interaction tools (not shake) already return one after each action, or name an identical earlier one by its tree id. On iOS it reads the AXRuntime accessibility service, so it sees whatever is visible, including system dialogs and permission prompts. While a system dialog is visible it returns the dialog's elements (buttons, text); otherwise the foreground app's. On a physical iOS device it covers only the app started with launch-app; to read system dialogs there, launch-app com.apple.springboard first. On a local iOS simulator a text field shows its placeholder as its value, with no label, so an empty field reads like one holding that text. A text field with no accessibility label or identifier (e.g. the Settings search field) can also be missing from the tree, even with text typed in it. Check a screenshot in both cases. On Android it reads the tree through Argent's UiAutomation helper, falling back to uiautomator dump. On Chromium it walks the DOM over the Chrome DevTools Protocol: every visible element with its ARIA role, accessible name and the visible part of its bounding rect; content scrolled or clipped out of view, or skipped by a closed <details> or content-visibility: hidden, has a zero-area frame. On Vega (Fire TV) it reads the on-device automation toolkit; [focused]/[selected] mark the D-pad cursor, which you move with tv-remote (Vega has no touch). On a TV target (Apple TV / Android TV: a list-devices entry with runtimeKind 'tv') it returns the FOCUSED element and the FOCUSABLE elements instead, since a TV UI has no tap coordinates. Move the highlight with tv-remote, then read where focus landed from the tree in its result, or call describe again when it is missing.

Returns { description, source }: description renders the tree one line per element, with its role, label/value/id, VoiceOver hint (iOS simulator), interactivity flags and frame. Frames are normalized [0,1] fractions of the screen / window width and height (not pixels); tap an element at the centre of its frame. The tree has no z-order or occlusion information: an element may be covered by an overlay (e.g. a toolbar over list rows), so check a screenshot when a tap lands unexpectedly. Fails if the tree cannot be read, e.g. on a physical iOS device before launch-app has started an app.

For UIKit properties of a view (class name, accessibilityIdentifier), use native-find-views (iOS simulator only). For React Native component names, or a testID describe does not list, use debugger-component-tree.

await-ui-elementA

Block until a UI element reaches an expected state or the timeout elapses, so you don't have to poll screenshot/describe yourself. It polls the same tree as describe. Use when the next step needs an element that appears or disappears asynchronously, e.g. after a tap or navigation, or before tapping something that loads late. Returns { success: boolean, elapsed: number, note?, cause? }. If the condition does not hold by the timeout, it returns success=false, and that is not always a verdict on the condition: cause says which it was: unmet (the tree was read and the condition was false there), unreadable (no trustworthy read, so nothing was judged) or cancelled. note describes what was seen. Only unmet licenses rewriting the check.

await-screen-idleA

Block until the screen has rendered content and held it for minStableMs, or the timeout elapses. It polls the same element tree as describe. Use when a launch or navigation must finish rendering before a screenshot or tap. Returns { settled, waitedMs, polls, note? }. If that is not seen before timeoutMs, it returns settled=false instead of failing.

react-profiler-startA

Record Hermes CPU samples and React commits during an interaction. On an iOS simulator, Android device, call native-profiler-start in parallel on the same target for a combined report, unless the user declines native profiling. After starting, ask the user to perform the interaction to profile, then call react-profiler-stop. Returns { started_at, startedAtEpochMs, hermes_version, detected_architecture }. On iOS and Android, a warning names the apps with native network capture on (started by network-capture-start): their timings in the profile can differ. If a session is already running, returns { already_running: true, mine, owner, … } instead, without clobbering its data, unless it is another tool-server's stale run, has no owner record, or is a lost run of this tool-server: start replaces those. mine: true means this tool-server started the run: if it is yours, call react-profiler-stop. With stale: true it may be another agent's: follow the note. Otherwise, BEFORE OVERTAKING with { force: true }, ask the user for approval first, as how_to_reclaim explains. A start that replaces a run reports it in took_over. Fails if the Hermes runtime is not reachable or the Metro CDP connection cannot be established.

react-profiler-stopA

Stop CPU profiling and collect the cpuProfile + React commit tree. Stores the results for react-profiler-analyze, profiler-commit-query and profiler-cpu-query. Call react-profiler-start first, then exercise the app, then call this. Returns { duration_ms, sample_count, fiber_renders_captured, total_react_commits, hot_commit_indices, react_render_ms, react_render_share_pct, react_render_peak_1s_pct }. If some fibers' display names could not be resolved (typically modals, tooltips or animations that unmounted before stop), it also returns { unattributed_ms, unattributed_fiber_count, unattributed_commit_count }: the work missing from the per-component breakdown. Per-commit durations stay correct. Fails if no active profiling session exists, another stop is running, the CDP connection was lost during recording, or another session took the run over.

react-profiler-statusA

Check whether a React recording is running, saved, lost, or taken over. Use after an interruption to decide whether to collect the recording or start again. If the runtime is unavailable, session_status is no_react_runtime and note gives the reason.

react-profiler-analyzeA

Analyze stored profiling data and return a markdown performance report. Returns { report, reportFile, hotCommitsTotal, hotCommitsShown, sessionFiles }. The report is structured around hot React commits (≥16ms absolute floor) with per-commit render cascades, root cause identification, and a top components table. Raw profiling data is saved to disk with a unique session timestamp for later reload via profiler-load. After presenting the report, ask the user whether to investigate further (drill-down with profiler-cpu-query / profiler-commit-query) or implement fixes and re-profile for comparison. Use when the profiling session is complete and you need to interpret the collected data. Fails if react-profiler-stop has not been called or no profiling data is stored.

react-profiler-fiber-treeA

Inspect the React fiber tree and return a JSON representation of the component hierarchy. Use when tracing the ancestry of a library component. Returns a nested JSON tree of fiber nodes with name, tag, actualDuration, selfBaseDuration, and children. Fails if the React DevTools hook is not present or no fiber roots have been committed yet.

native-profiler-startA

Start native profiling. Instruments records CPU, hangs, and leaks on iOS. Perfetto records CPU, jank, and memory growth on Android. Start the target app first for an attach recording. Wait for this call to return before reproducing the scenario, then call native-profiler-stop while the app is still running. On iOS and Android, a warning names apps whose timings may be affected by native network capture (started by network-capture-start).

native-profiler-stopA

End a native profiling session started by native-profiler-start and save the trace as a downloadable artifact. On iOS, export CPU, hangs, and leaks XML from Instruments. Check warning and exportDiagnostics for partial or skipped exports. On Android, save the Perfetto .pftrace.

native-profiler-analyzeA

Summarize a native trace saved by native-profiler-stop or restored with profiler-load. Returns a Markdown report with severity and suggested next steps. Instruments reports CPU hotspots, UI hangs, and memory leaks on iOS. Android reports also include jank reasons, main-thread state, garbage collection, and memory growth as a weak leak signal. Use profiler-stack-query for details behind a finding.

native-profiler-launch-analysisA

Profile or measure iOS app startup. Both modes open the app once, then time the launches that follow.

  • measure: time five launches with Argent's XCTest runner to set a baseline or verify a fix. On an iPhone the runner must be signed. The metric includes the first frame and any extended launch tasks.

  • profile: record one Instruments App Launch trace to find the CPU work before the first frame. Work after the first frame is not included. On a simulator there are no lifecycle phases and the launch time is a rough estimate. Install a Release build of bundle_id before calling; the tool does not build or install the app. Use when you need the iOS launch time or want to find what slows the app's startup. Returns samplesCollected in measure mode. In profile mode, launchMs runs from the first lifecycle phase after Process Creation to the first frame (null on a simulator); follow profilerSession.next to load the CPU samples with profiler-load and query them with profiler-stack-query. Fails if the app is not installed or no iPhone or allowed simulator is available.

profiler-cpu-queryA

Query Hermes CPU profile data with targeted modes for iterative investigation. Modes:

  • top_functions: Global CPU hotspots ranked by self-time. Optional time_window_ms to filter.

  • time_window: CPU breakdown for time_window_ms (e.g. during a slow commit or hang).

  • call_tree: For a given function_name, show its callees, and its callers with include_callers.

  • component_cpu: For a given component_name, aggregate CPU activity across its stored commits. In top_functions and time_window, self-times are the summed sampling intervals of the samples that landed in the window, so they measure sampled coverage rather than the window's width and do not change if you widen the query. Their tables state how many samples they cover and how much was idle. Each row is one call path, so a function can have several rows and top_n counts rows. Use when investigating JS CPU hotspots or correlating CPU cost with specific components. Returns a markdown table of CPU hotspots, call tree, or per-component CPU breakdown. Fails if no CPU profile is stored; run react-profiler-stop (and ideally react-profiler-analyze) first.

profiler-commit-queryA

Query React commit data for iterative investigation of render performance. Modes:

  • by_component: All commits where component_name rendered, with causes and durations.

  • by_time_range: What happened in time_range_ms.

  • by_index: Full detail dump of the commit at commit_index (all components, props changed, parent cascade).

  • cascade_tree: Parent-child cascade tree for the commit at commit_index, showing who triggered whom.

  • render_counts: Re-render count, rate and self time per component over ALL commits, including those under 16ms that the other modes cannot see. Library components included. Use when drilling into specific components or time windows after react-profiler-analyze. Returns a markdown table or tree of commit data matching the requested mode. Fails if react-profiler-stop has not been called.

profiler-stack-queryA

Inspect a native profile after native-profiler-analyze or profiler-load. Modes:

  • hang_stacks: Full CPU context during a specific hang (by hang_index).

  • function_callers: Who calls function_name and what it calls.

  • thread_breakdown: CPU time split by thread, optionally filtered.

  • leak_stacks: Memory leak details (iOS only). Requires a trace with leak data.

profiler-combined-reportA

Generate a cross-correlated report combining React Profiler and native profiler data. Maps native hangs to React commits using wall-clock time alignment. Call this tool when both profilers were run in parallel on the same session. Returns a markdown report correlating hangs with React commits, memory leaks, and investigation hints. Fails if either react-profiler-analyze or native-profiler-analyze has not been called first, or if the session stored no React commits.

profiler-loadA

Fetch and restore a profiling session that react-profiler-stop or native-profiler-stop saved to disk, so the query tools (profiler-cpu-query, profiler-commit-query, profiler-stack-query) can read it. Use when you need to revisit past session data without capturing a new recording. Modes:

  • list: Show all available profiling sessions in the project's debug directory.

  • load_react: Load a React profiler session (CPU profile + commit tree) into memory. Requires session_id.

  • load_native: Restore native trace data (xctrace XML on iOS, .pftrace on Android). Requires session_id. Loading replaces the session in memory for this device_id (and Metro port, for React): the one the query tools and react-profiler-analyze read. The replaced session stays on disk; load it again by its session_id. Returns a summary of the loaded session or a session list for the list mode. Fails if the session_id is not found or the session's trace files are missing from disk.

native-network-logsA

List native HTTP requests from URLSession and NSURLConnection on iOS simulators, or OkHttp in a debuggable Android build. Use when debugging traffic from a native module or SDK. Coverage excludes background URLSession transfers, WKWebView and Network.framework. Call network-capture-start before triggering requests. Returns recent requests oldest first, with capture status and coverage in header. The log stays readable after capture stops. Pass an ID to view-network-request-details. On an iOS simulator, a blocked read returns status and a message with the next action. Follow the message before retrying. If the call fails with NATIVE_DEVTOOLS_NOT_CONNECTED, follow its message. An Apple system app is rejected outright (terminal: never retry it).

native-find-viewsA

Search for specific UIViews in the running app by class name, accessibility identifier, accessibility label, tag or React Native nativeID; at least one of these params is required. Use when you need to locate a specific view by its properties without dumping the entire native-full-hierarchy. Returns { status: "ok", matches }: the matching views with their frames, properties, optional ancestors and optional children. Frames are in points. frame and center are relative to the superview, and windowFrame turns with the UI. screenFrame is on the axes of the UI as the user sees it, also when the UI is landscape. To tap a view, divide the centre of its screenFrame by the screen size in points, which native-full-hierarchy returns as screen (maxDepth: 1 is enough), and pass the result to gesture-tap. Matches are not filtered for visibility. Before tapping, call native-view-at-point with hitTest: true at that centre, with skipClasses ["UITextEffectsWindow"]. If it does not return the match or a descendant, check a screenshot. If status is restart_required: follow the message (usually restart-app), then retry. If status is service_stale: the app is already injected, so restarting it cannot help. Restart the tool-server (argent server stop && argent server start --detach) and retry. If the same status comes back after that restart, stop restarting: follow the message, which names the terminal fallback. If status is connect_pending: the app is injected and still connecting. Do not restart it, wait a few seconds and retry. If status is init_failed: follow the message (re-boot the simulator) rather than retrying. An Apple system app is rejected outright (terminal: never retry it).

native-full-hierarchyA

Get the complete UIKit view tree for the running app. WARNING: Output can be extremely large (100KB–500KB+) for complex apps, especially those built with SwiftUI. Prefer native-find-views for targeted queries. Reduce the output with skipClasses / skipClassPrefixes, fields and maxDepth. Use when you need deep layout debugging, finding views with no accessibility labels, or verifying view structure not exposed through the accessibility tree. Returns { status: "ok", windows, screen } with the full view hierarchy. screen gives the screen size in points, and the interfaceOrientation of the UI (portrait, portraitUpsideDown, landscapeLeft, landscapeRight). The size and each screenFrame use the axes of the UI as the user sees it, also when the UI is landscape: the space of screenshots and describe frames. Each windowFrame uses the axes of its window, which turn with the UI too. If status is restart_required: follow the message (usually restart-app), then retry. If status is service_stale: the app is already injected, so restarting it cannot help. Restart the tool-server (argent server stop && argent server start --detach) and retry. If the same status comes back after that restart, stop restarting: follow the message, which names the terminal fallback. If status is connect_pending: the app is injected and still connecting. Do not restart it, wait a few seconds and retry. If status is init_failed: follow the message (re-boot the simulator) rather than retrying. An Apple system app is rejected outright (terminal: never retry it).

native-view-at-pointA

Inspect the deepest UIView at a raw native window point: the one drawn there, or with hitTest: true the one that would receive a touch.

Without hitTest it ignores userInteractionEnabled and answers "what is visually here?". Use when a screenshot shows something the accessibility tree does not name (an unlabeled icon, a decorative overlay, a custom-drawn cell) and you need the class, identifier or nativeID of whatever draws it.

With hitTest: true it answers "what would receive the touch?". Use when a tap lands somewhere unexpected or does nothing, to see which control UIKit would hand the touch to: a transparent overlay swallowing it, a parent recognizer, a disabled button.

Returns { status: "ok", view }: the matched view with its class name, frames, identifier, label and layer name, plus its ancestors and subviews as requested. view is null when nothing is drawn at that point, or with hitTest when no touchable view sits under it.

To get x and y from a normalized describe frame, multiply its values by the screen size in points, on the same axes (landscape when the UI is). native-full-hierarchy returns that size as screen (pass maxDepth: 1 and fields: ["className"] to keep it small).

If status is restart_required: follow the message (usually restart-app), then retry. If status is service_stale: the app is already injected, so restarting it cannot help. Restart the tool-server (argent server stop && argent server start --detach) and retry. If the same status comes back after that restart, stop restarting: follow the message, which names the terminal fallback. If status is connect_pending: the app is injected and still connecting. Do not restart it, wait a few seconds and retry. If status is init_failed: follow the message (re-boot the simulator) rather than retrying. An Apple system app is rejected outright (terminal: never retry it).

stop-simulator-serverA

Stop the transport session for a specific device (iOS simulator / Android: simulator-server process; physical iOS: the on-device runner; Chromium: CDP WebSocket) and free its resources; on a TV target it also reaps that device's TV-control daemons. Use to restart a wedged transport, or when the user is done with one device but wants to keep others running - not just because a task on it finished, since the next task on that device would start cold again. On iOS / Android / TV it deliberately leaves this device's native-devtools, accessibility, profiler and debugger services running - to drain those as well, use stop-all-simulator-servers with devices. On CHROMIUM, stopping the transport also ends the JS-runtime debugger session and its captured console history - reconnect with debugger-connect afterwards. Returns { stopped, udid }; stopped is false, not an error, when no session is open for the id.

stop-all-simulator-serversA

Stop the services a device owns - simulator-server processes (iOS + Android), native devtools, the iOS accessibility service, TV-control daemons, Chromium CDP sessions, screen recordings, native profiler sessions, native network capture with the requests it recorded, the Android network throttle proxy (set by network-conditions), and JS-runtime debugger sessions along with the network inspectors and React profiler sessions that ride on them - freeing their spawned processes, sockets and ports. Network capture started by network-capture-start ends here too, with the requests it recorded, except in a JS runtime this call does not reach, for example after Metro restarted: this call does not connect to it again, so its JS capture keeps recording and keeps its requests, and the result does not say so. A later network-capture-stop that reaches that runtime stops the recording. Call this when the user asks to clean up or ends the session, or when a skill tells you to recycle a device's services mid-flow - not just because a task finished, since the next task reuses these services and would start cold again. To stop the network capture of one app and keep its requests, call network-capture-stop instead. PASS devices with the device ids this session used: one tool-server serves every agent, subagent and CLI call using this argent install, and an unscoped call tears down THEIR devices too. Omit devices only when a machine-wide cleanup is what you actually want. An EMPTY array stops nothing; it does not ask for the machine-wide sweep. A JS-runtime debugger session is keyed by the id you called debugger-connect with. On a Metro serving two or more devices that id can be a logicalDeviceId: connect refuses a udid or serial it cannot match to one Metro device by name, and tells you to re-target with the logicalDeviceId it returns. A scope built from list-devices ids cannot reach that session. Pass any such logicalDeviceId in devices ALONGSIDE the device id. Returns { stopped }: the URNs of the live services that were shut down; empty means nothing was still running. { unmatched }, present only when a supplied id owns no service here, lists those ids, so a typo or a device NAME passed instead of an id does not read as a clean machine. It is NOT proof the id is wrong: a Vega device you only booted and drove with the remote registers no service and lands here, as does any device this session never started anything on. { left_running } lists the URNs of live debugger sessions (and the network inspectors / React profiler sessions riding on them) whose id no device scope can name; re-call with the id after each URN's <namespace>:<port>: prefix to reap them. { aborted: true } means the request was cancelled part-way: the rest was left untouched and unmatched / left_running were not computed. Fails if the input has an unknown key (e.g. udids instead of devices); otherwise it always succeeds, and reaping nothing is a result, not a failure.

stop-metroA

Stop the Metro bundler process listening on port. Use when the user asks to stop Metro or when Metro must be restarted - do not offer it when a task wraps up, since the next task would wait on a cold Metro start. Returns { stopped, port, pids }: stopped=true when it sent SIGTERM to every listening pid it found (or the pid had already exited), stopped=false when it found none. Fails if the port lookup cannot run or times out, if it finds a listener but not the process that owns it, or if it cannot signal a listener it found (e.g. EPERM). On macOS another user's listener is detected only when no other listener on the port is visible, so it can survive stopped=true. This is DESTRUCTIVE: always ask the user for confirmation before calling this tool.

e2e-start-recordingA

Start recording a new e2e test, resetting .argent/e2e/.yaml to an empty e2e test and replacing any existing one. Use when you want to capture a reusable sequence of device interactions for later replay. Load the argent-create-e2e skill first: it holds the polish, audit and replay steps. Not for Apple TV or Android TV. Returns { message, e2eTestFile, savedTo } and optionally { restarted, discardedSteps } if a live recording of the same e2e test was discarded. Without a link, it creates that file and fails if the .argent/e2e/ directory cannot be created or the file cannot be written. Over a link (argent link or ARGENT_TOOLS_URL, also to 127.0.0.1), your client writes the file, and savedTo is its path on your computer, or null when that write failed.

Several e2e tests can be recorded at once, each keyed by the name + project_root that every subsequent recording tool repeats, and one recording's steps never land in another's file.

After starting, use e2e-add-step to append tool calls. Each step runs LIVE, so give each concurrent recording its own device and pick a name unique to your task. Read each step's message: it warns when a recorded await-ui-element did not hold, or may fail once converted to await:/assert:. A wait nested in a recorded run-sequence gets no such warning, so read its toolResult. For a standalone e2e test, record a restart-app of the app under test as the FIRST step (captured as the e2e test's launch step); for a reusable fragment, skip that and pass executionPrerequisite instead. Starting over an existing e2e test replaces the whole file, including its requires: block; pass requires to keep it. Use e2e-add-echo to add labels, and e2e-add-script to run a local .mjs, .mts, .js or .ts file and record it as a script: step. Call e2e-finish-recording when done.

To remove or reorder steps, edit the .yaml file after e2e-finish-recording, not during the recording: over a link, the next recorded step writes over your edit, and without a link, an edit that renumbers the steps drops their warnings.

e2e-add-stepA

Execute one MCP tool and record its step in the e2e test named by name + project_root. Use when recording and you want each action run and captured; the recording must already be open. A coordinate gesture-tap records as a portable tap selector step; restart-app as a launch. Returns { message, stepCount, recorded, savedTo }; recorded, not the status, says whether a step was appended. Fails with an error, recording nothing. Call recording tools, including e2e-add-script, directly.

e2e-add-echoA

Record an echo step in the e2e test named by name + project_root. Echo steps print a message when the e2e test is replayed, useful as labels between tool calls. Use when you want to annotate a recorded e2e test with a human-readable label or checkpoint message. Returns { message, stepCount, savedTo }. Fails if that e2e test has no recording in progress.

e2e-add-scriptA

Run a local JavaScript (.mjs, .js) or TypeScript (.mts, .ts) file and record it as a script: step in an active e2e test. Use when the user requests a local script in the e2e test, and only then. Call it at the point in the recording where the script must run. Returns status, reason and stepCount. A failed script is not recorded. Check reason and the affected state before you retry. Over a link (argent link or ARGENT_TOOLS_URL), the tool refuses the call: record such an e2e test with no link.

e2e-finish-recordingA

Finish recording the e2e test named by name + project_root, leaving recordings under any other key untouched. Returns { message, path, executionPrerequisite, steps, summary, e2eTestFile, savedTo } - a summary of all recorded steps plus the final YAML. Use when you have added all desired steps and want to finalize the e2e test file. Fails if that e2e test has no recording in progress. A warning e2e-add-step raised on a recorded await-ui-element is repeated in summary as a warning: line right below its step, and message counts them by kind. Read them before you convert a wait to await:/assert: or replay the e2e test. You can still edit the .yaml file directly afterwards to remove or reorder steps.

e2e-executeA

Run a saved YAML e2e test end to end. Use when asked to replay a recorded path, re-run a QA regression, or check that a known journey still passes; for a one-off interaction use the gesture tools instead, and to author an e2e test use e2e-start-recording. Pass exactly one e2e test source: name (under project_root) or e2e_test_path. Returns a per-step report: the first failure stops the run and the rest report as skipped. Over a link (argent link or ARGENT_TOOLS_URL), the client uploads the e2e test with the run: fragments, snapshot baselines and absolute .png/.yaml file arguments its steps use, from under project_root or beside the e2e test file. The run fails if a step needs any other project file (a script: step, a recording tool, a nested e2e-execute not called by name with an absolute project_root, a directory, app or output-directory argument, a file path built from several arguments, a relative path): it stops before the first step and the error lists each such step. An absolute .png/.yaml argument from anywhere else fails only when its step runs. Without a link, every step kind runs.

update-argentA

Apply a pending Argent update. Call this only when the user has explicitly consented in this conversation to updating Argent, e.g. after an update notification reports a new version. Returns { message } with the update status, version info, and whether the tool server restarts. Fails if no update is available or an update is already in progress.

dismiss-updateA

Postpone the Argent update reminder, on every tool-server on this machine, when the user wants it later or tomorrow, wants it stopped, or never wants it (87600 hours). Installs nothing. A memory or a reminder of your own does not change it. Returns { message, remindersResumeAt, persisted, pendingVersion }: tell the user when reminders resume, and if persisted is false, that it did not fully hold.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 74 tools

Disambiguation3/5

Most tool families are clearly separated, but several adjacent tools require careful reading: gesture-custom overlaps all specific gestures, run-sequence overlaps standalone interactions, and describe/debugger-component-tree/native-find-views/native-full-hierarchy all inspect UI. The many stop-* and profiler tools are also easy to confuse without the long descriptions.

Naming Consistency4/5

All names use lowercase kebab-case and consistent domain prefixes such as gesture-, debugger-, profiler-, native-, network-, e2e-, and chromium-. However, the pattern is not uniformly verb_noun: many are noun-first lifecycle names like screen-recording-stop or react-profiler-start, and some are bare nouns or verbs like button, keyboard, and describe.

Tool Count1/5

74 tools is far beyond a well-scoped MCP surface; even for a broad device-automation suite, many granular profiler, e2e-recording, debugger, and cleanup tools could be consolidated. The count creates an extreme selection burden and makes the set hard to navigate as a whole.

Completeness4/5

The surface covers device boot, app lifecycle, input gestures, screenshots/recording, network capture, debugging, native view inspection, profiling, and e2e recording/replay, so core workflows are well covered. Minor gaps remain, such as standalone uninstall/app listing, clipboard read, and some native log capture, but there are no major dead ends.

Maintenance

ActivityActive
ResponsivenessUsually handled