agent-device
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| alertA | 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. |
| app-switcherA | 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. |
| appsA | List the apps installed on the selected device. Include system or OEM apps only when they are needed as automation targets. |
| appstateC | Show foreground app/activity |
| artifactsB | List daemon or cloud provider artifacts for an active or completed session. |
| audioA | Measure browser or host-rendered simulator/emulator audio as compact dBFS buckets. Start a probe before requesting its status or stopping it. |
| backA | 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. |
| batchA | Execute multiple commands in one daemon request |
| bootA | 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. |
| capabilitiesA | List the commands supported by the selected device or active session. Use device-selection inputs when checking support before a session is open. |
| clickA | 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; use settle or verify to confirm the result without a follow-up snapshot. |
| clipboardB | Read the current device clipboard text, or replace its contents with the given text. |
| closeA | Close the named app, or close the active session app when app is omitted. Use shutdown only when the selected simulator or emulator should also stop. |
| debugA | 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 profiles. |
| devicesA | 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. |
| diffA | Compare accessibility snapshots or screenshots to identify UI changes. Use snapshot comparisons for semantic tree changes and screenshot comparisons for pixel differences. |
| doctorA | 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. |
| eventsC | Read the daemon-owned session event timeline as paged JSON-friendly entries |
| fillA | Replace text in a UI input selected by snapshot ref, selector, or coordinates. Prefer refs or selectors after snapshot; use recordAs to keep sensitive text out of a recorded replay while sending it to the live app. |
| findC | Find by text/label/value/role/id and run action |
| focusA | 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. |
| gestureB | Perform a structured pan, fling, swipe, pinch, rotate, transform, or drag gesture. Select the gesture kind, then provide only the inputs that apply to that kind. |
| getA | 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. |
| homeA | Send the selected device to its home screen. This leaves the app session open but moves the foreground away from the app. |
| installA | 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. |
| install-from-sourceA | Install app builds from URLs, remote source specs, or CI artifacts resolved by a remote daemon. |
| isA | Check whether a selector satisfies a UI predicate such as visible, hidden, editable, selected, focused, or text. Use wait when the condition may appear asynchronously. |
| keyboardA | 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. |
| logsC | Session app log info, start/stop streaming, diagnostics, and markers |
| longpressA | 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. |
| metroA | 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. |
| networkB | Dump recent HTTP(s) traffic parsed from the session app log |
| openA | 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. Metro and debug runtime hints given here are recorded as the session's dev-server binding, so a later reload reuses them; a fresh open without them clears any binding left by a previous same-name session. |
| orientationB | Set device orientation on iOS and Android |
| perfA | Collect session performance metrics, frame health, memory diagnostics, and platform profiling artifacts. Prefer structured metrics for a first-pass diagnosis; raw profiles and traces remain session artifacts. 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. |
| pressA | Short-press a UI target by snapshot ref, selector, or coordinates. Use longpress instead when the target requires a context-menu or hold gesture. |
| pushB | Deliver push notification payloads to an installed app. |
| react-nativeA | Run supported React Native automation helpers. Use dismiss-overlay to close a visible development error overlay before continuing normal UI automation. |
| recordA | Start or stop a screen recording for the active app session or, where supported, the selected device. Long Android recordings can return multiple video artifacts. |
| reinstallA | 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. |
| replayC | Run a recorded automation script, including compatible Maestro YAML flows. A script without a terminal close leaves its session active for subsequent automation. |
| screenshotC | 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. |
| scrollC | Scroll in a direction, or toward the top/bottom edge of scrollable content. |
| sessionB | List active sessions, print the effective daemon state directory, or publish an armed open-to-destination script without closing its session |
| settingsC | Change supported operating-system settings, animation scales, appearance, or app permissions on the selected target. Platform support varies by setting and action. |
| shutdownB | Shutdown a selected simulator or emulator. |
| snapshotA | 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. |
| swipeC | Quick coordinate fling with optional repeat pattern. |
| testC | Run one or more replay scripts as a serial test suite |
| traceA | Start or stop trace-log capture and return the resulting artifact when capture ends. Use the same artifact path for the matching start and stop requests when an explicit path is required. |
| trigger-app-eventA | 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. |
| tv-remoteA | Press or long-press a TV remote or D-pad button on Android TV, tvOS, or Vega OS. Choose the button and optional hold duration through the input fields. The aliases ok, center, and enter all map to select. |
| typeA | 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. |
| viewportA | Resize the active web viewport before taking snapshots or screenshots. Useful for fixed-layout or 100vh apps where changing the viewport reveals different content. |
| waitA | Wait for a duration, text, snapshot ref, selector, or stable UI. Use text, ref, or selector for a specific readiness condition; stable waits until the UI stays quiet for the requested window. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/callstack/agent-device'
If you have feedback or need assistance with the MCP directory API, please join our Discord server