AUA (Android UI Analyser)
v0.52.1See and operate Android, iOS-simulator and web UIs by stable element ID, not pixels.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
development_tools_status
Report optional developer-tool installation/version without connecting to a device.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
development_tools_setup
Explicitly install the selected platform's optional developer tools from the official distribution, for this user.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
development_tools_catalogue
Discover supported operations, accepted options, effects and cleanup. Inspect an operation before calling development_tool.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
operation | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
development_tool
Run one catalogued optional developer operation. Host builds/previews/docs do not need a device. Device operations use AUA's leased target; target/session overrides are forbidden. Actions return an observation. Profiling has durable cleanup. Never repeat an uncertain mutation.
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
arguments | array | |
confirmed | boolean | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
options | object | Accepted option names/values from the catalogue; no leading --. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
profile_kind | string | For profiler session status/terminate, select this caller's trace or heap session; never accepts another caller's session ID. |
project_dir | string | Absolute project working directory on the tool host. |
timeout_s | number |
preview_list
Compile a Compose preview target and discover its @Preview functions. No device or IDE required; this still performs a build.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
include_dependencies | boolean | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
project_dir | string | Absolute project working directory on the tool host. |
reference | string | |
timeout_s | number |
preview_render
Render selected Compose previews to PNG plus component-tree JSON with bounds, source and semantics. Reuse these artifacts with preview_inspect/check; rendered previews are not evidence of runtime navigation.
| Parameter | Type | Description |
|---|---|---|
fqns * | array | |
component_tree | boolean | |
daemon | boolean | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
no_image | boolean | Skip PNG output; requires component_tree=true. |
output | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
project_dir | string | Absolute project working directory on the tool host. |
reference | string | |
timeout_s | number |
preview_inspect
Read a saved preview's component tree, semantics, bounds and source locations. This does not inspect a live device.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
max_nodes | integer | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
preview_check
Evaluate supported deterministic checks on a saved preview tree; inspect it first to discover available evidence. Does not prove runtime behavior.
| Parameter | Type | Description |
|---|---|---|
checks * | array | |
path * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
journey_validate
Validate an authored journey YAML without starting a device. Each step contains natural-language instructions plus deterministic assertions or explicit visual review.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
file | string | Path to an authored journey YAML file; provide file OR yaml. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
yaml | string | Inline journey YAML. Required: version: 1, name, steps. Each step has id, instruction and either assertions (AUA assertion list) or review (visual assessment question). Provide yaml OR file. |
journey_start
Start an authored journey in AUA's ordinary goal session. The calling agent performs the instruction, then calls journey_check or journey_record; instructions are not automatically executed.
| Parameter | Type | Description |
|---|---|---|
apk | string | |
artifacts_dir | string | Directory for the full session evidence bundle. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
file | string | Path to an authored journey YAML file; provide file OR yaml. |
headed | boolean | Show a target started for this journey. |
package | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
start_emulator | boolean | Allow provisioning a free target; false requires an available target. |
yaml | string | Inline journey YAML. Required: version: 1, name, steps. Each step has id, instruction and either assertions (AUA assertion list) or review (visual assessment question). Provide yaml OR file. |
journey_status
Read the current authored step, its assertions and remaining progress.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
session_id | string |
journey_check
Evaluate the current journey step's deterministic assertions on one fresh frame; failure never advances progress.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
session_id | string |
journey_record
Record an agent's explicit visual assessment against the exact previously observed fingerprint. This is labeled agent-assessed, never machine-verified.
| Parameter | Type | Description |
|---|---|---|
evidence * | string | |
fingerprint * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
passed | boolean | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
session_id | string |
journey_finish
Finish a journey with separate deterministic and agent-assessed outcomes, using the ordinary session cleanup path.
| Parameter | Type | Description |
|---|---|---|
allow_incomplete | boolean | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
retain_started_target | boolean | |
session_id | string |
report_guide
Read how to turn a run's recording and screenshots into a page people can open: what to collect, the video and chapter markup, then report_player and report_publish. How the page looks is up to you.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
report_player
Put AUA's video player and image viewer into HTML pages just before </body>; running it again replaces the earlier copy. Every <video controls> becomes a player that seeks from memory, elements with data-seek become chapters, and every <img> opens larger with zoom when clicked.
| Parameter | Type | Description |
|---|---|---|
pages * | array | HTML page paths. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
report_publish
Publish a folder (index.html at the top) to Drophere and check the result: link, expiry, who can open it, and that every file loads. With allow_domains or allow_emails, access is set before the upload. Without a Drophere API key the page is public for 24 hours. This uploads to an external host: publish only what the user means to share.
| Parameter | Type | Description |
|---|---|---|
folder * | string | Absolute path of the folder to publish. |
allow_domains | array | Email domains whose people may open it. |
allow_emails | array | Email addresses that may open it. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
slug | string | Publish a new version at this existing link. |
ttl | string | Expiry such as 24h or 7d (default 7d); needs an API key. |
credential_request
Open a private masked Save/Cancel dialog on the MCP server host and save one environment variable to a .env file. Use when a required API key is missing; the user types it directly, never in chat or a tool argument. Returns status only. No device/session is required. A nonempty saved value is preserved unless replace=true. Requires a graphical desktop on the server host; remote/headless clients cannot display it locally. The consumer must load .env as data; saving does not update the server's environment.
| Parameter | Type | Description |
|---|---|---|
name * | string | Environment variable name, never its secret value. |
env_file | string | Host .env path; prefer an absolute project path. |
replace | boolean | |
timeout_s | integer |
capabilities
Discover AUA capabilities, ranked for an optional goal. Start a new kind of task here only when session_start did not already surface what you need.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
goal | string | Optional natural-language task used to rank the catalogue. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
policy_status
Host-only readiness for the optional guarded local policy: effective config, dependency and artifact/hash checks, and warm-daemon compatibility. Never loads a model or touches an Android device.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
session_start
Start goal-aware target work: observe once, surface relevant capabilities, and return the safest exact recommended call. Use this first.
| Parameter | Type | Description |
|---|---|---|
goal * | string | The end-to-end test goal. |
activity | string | Optional launcher Activity to pin with package. |
animations | boolean | Enable Android animations for this session and restore prior scales at finish; animation goals infer this automatically. |
apk | string | Install this APK before planning; the bundle may name the package. |
artifacts_dir | string | Absolute directory for the cross-command evidence bundle. Required and non-empty when evidence='all' or junit=true. |
audio | boolean | When provisioning boots one, keep host audio enabled so microphone injection is available. |
avd | string | AVD name when several exist. |
confirmed | boolean | Required confirmation for a destructive fresh install. |
contract_yaml | string | Authored version-1 YAML checkpoints; only fresh assertion proof can complete them. |
evidence | string | Omit or use 'failures' for the default; 'none' disables automatic evidence. Neither needs artifacts_dir. 'all' requires artifacts_dir. |
fresh | boolean | Uninstall an existing copy before installing the APK. |
grant_permissions | boolean | Grant runtime permissions after app installation. |
headed | boolean | Require a visible virtual target; if AUA starts one, show its window. |
helper | boolean | Run the authored contract end-to-end inside the device helper, then finish the session and restore helper/session state. Requires contract_yaml and never falls back to host-agent execution. |
junit | boolean | Write JUnit results; true requires artifacts_dir. |
launch_app | boolean | Launch the selected package during bootstrap. |
needs | array | Required capabilities interpreted by the selected platform; animations remains a shared session-environment request. |
package | string | Launch and observe this package before planning. |
provision_target | boolean | Start a compatible selected-platform virtual target when no matching target is free. |
reinstall | boolean | |
start_emulator | boolean | Android compatibility alias for provision_target. |
virtual_target | string | Selected-platform virtual-target definition; avd is the Android alias. |
wait_for_lease_s | number | Bounded device-lease wait in seconds; never steals. |
session_review
Review exact caller-visible top_level_calls (lifecycle_calls + task_calls), journal_events including folded_internal_events, elapsed time, failures, redundant patterns, and savings. reporting_call_included=false means the embedded snapshot precedes this review/finish invocation.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
session_id | string |
session_progress
Return ordered goal phases, the active checkpoint, and one exact next call. Analyzed tool results include this automatically; call explicitly only after reconnecting.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
session_id | string |
session_autopilot
Let the configured warm local policy choose and directly execute a bounded stretch of fresh-frame, guard-approved navigation taps. AUA re-observes every action and hands control back on uncertainty, no progress, repetition, input, mutation, or proof work. Requires policy advisory mode.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
max_duration_ms | integer | |
max_steps | integer | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
session_id | string |
session_finish
Finish the session, restore session-owned reversible state, release its lease, and return a compact final verdict. By default an AUA-started target remains warm until the lease-gated idle timeout; set retain_started_target=false for unattended runs that must stop that exact boot at cleanup. Set summary=false only when the full review/evidence payload is needed.
| Parameter | Type | Description |
|---|---|---|
allow_incomplete | boolean | Explicitly terminate despite incomplete authored checkpoints. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
retain_started_target | boolean | Keep an AUA-started target warm; false stops only this session's exact boot token after reversible cleanup. |
session_id | string | |
summary | boolean | Compact verdict/cleanup/accounting instead of full detail. |
session_candidate_flow
Preview a contract-proven action path. Replay/save require an explicit reset flow; saving occurs only after both reset and candidate replay pass.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
replay | boolean | |
reset_flow | string | Saved flow name or absolute YAML path for deterministic reset. |
save | boolean | |
session_id | string |
job_start
Start one durable read-only wait and return immediately with a reconnectable job id. Ordinary device tools are serialized until it finishes or is cancelled.
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
confirmation_ms | integer | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
observe | boolean | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
poll_ms | integer | |
predicate | string | Required for await, e.g. 'rid:result,!text:Loading'. |
settle_ms | integer | |
timeout_ms | integer |
job_status
Reconnect to a durable wait by id without restarting it.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
recent_output | boolean | Include lifecycle events and latest result/error. |
job_wait
Wait at most 10 seconds for a durable job; a running result keeps the same id.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
timeout_ms | integer |
job_cancel
Cancel a durable wait and briefly await terminal acknowledgement.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
wait_ms | integer |
job_list
List recent durable waits visible to this owner.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
limit | integer | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
orient
Return the current app's known screens, verified route suggestions, recipes, deeplinks, notes, and research tasks without navigating.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
reach
Reach a semantic destination in one call using the safest verified option: goto, then a matching safe flow, then an explicitly permitted deeplink or assist.
| Parameter | Type | Description |
|---|---|---|
goal * | string | |
allow_destructive | boolean | |
allow_unsafe | boolean | |
assist | boolean | Permit configured planner assistance after deterministic options. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
poll_ms | integer | |
timeout_ms | integer | |
until | string | Arrival predicate, for example 'rid:result,!text:Loading'. |
await_and_analyze
Wait for all comma-separated positive/negative semantic terms and return the settled analyzed screen plus per-term evidence in one call.
| Parameter | Type | Description |
|---|---|---|
predicate * | string | For example 'rid:result,!text:Loading'. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
ignore_case | boolean | |
match | string | |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
poll_ms | integer | |
timeout_ms | integer | |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
flow_list
List saved flows with app/context compatibility, step count, parameters, arrival proof, description, and path. Flows are filed per app; pass app to narrow to one package, and replay a flow by its `ref` (a bare name, or `<package>:<name>` when two apps share one).
| Parameter | Type | Description |
|---|---|---|
app | string | Package whose flows to list (plus app-agnostic ones). |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
flow_save
Preview recent recorded actions as an editable reusable flow without writing. Review scope, value-free selector_resilience, and arrival proof. An unmapped arrival is captured only from a positive action-bound until satisfied on the same frame; otherwise it remains unverified. Set save=true only after review.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
dry_run | boolean | Deprecated non-writing alias; preview is already default. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
force | boolean | |
last | integer | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
save | boolean | Write the previewed flow; default false writes nothing. |
flow_delete
Idempotently delete a saved flow. Returns deleted=false and status=already_absent when it was already gone. Qualify the name as `<package>:<flow>` when two apps own flows of that name.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
map_find
Find a context-compatible learned route and return its exact goto call without acting.
| Parameter | Type | Description |
|---|---|---|
goal * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
package | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
suite_run
Run a YAML acceptance checklist as one grouped assertion call.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
continue_on_fail | boolean | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
text | string | Inline YAML when path is '-'. |
logcat_mark
Set a named device-clock logcat mark before the action under test.
| Parameter | Type | Description |
|---|---|---|
clear | boolean | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
name | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
logcat_dump
Read only logcat lines since a named mark, with optional grep/tag filters.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
grep | string | |
lines | integer | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
since | string | |
tag | string |
app_log_prefs_get
Read one app's persisted app_logs preferences: which tags it ignores, which it reports despite the built-in noise list, any only-list, and the line, per-tag and priority settings — plus what they resolve to and what the built-in list already hides.
| Parameter | Type | Description |
|---|---|---|
package * | string | App id to read. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
app_log_prefs_set
Persist one app's app_logs preferences: ignore a chatty tag, stop ignoring one (including a tag the built-in noise list hides), keep only the tags you are chasing, or raise the 20-line budget and the 5-per-tag cap. Stored per app id beside its map on this host, so every later session inherits it — unlike `configure`, which lasts this session and applies to every app. Needs no device. `F` lines survive every tag filter, so this can never hide a crash, and an ignored tag stays ignored even when only_tags names it too. `configure` set in this session outranks what is stored here.
| Parameter | Type | Description |
|---|---|---|
package * | string | App id these apply to. |
enabled | boolean | Fold this one app's logs into its observations, or not. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
ignore_tags | array | Tags to stop reporting for this app (prefix match). |
levels | string | Priority SET, not a floor (default 'DWEF'). 'I' is noisier than 'D' on Android, so widen to 'DIWEF' only when chasing a library. |
limit | integer | Lines attached per action (default 20), head+tail on overflow. |
only_tags | array | Report ONLY these tags for this app; [] clears the list. A narrowed window says so, as `only` in the digest. |
per_tag | integer | Lines one tag may contribute before it is capped (default 5). A tag named in only_tags is never capped. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
reset | boolean | Forget this app's preferences; cannot be combined with a change. |
scan_lines | integer | Lines read from the window before filtering (default 600). |
unignore_tags | array | Tags to report again — reaches the built-in noise list too. Tags that were not being ignored come back in `not_ignored`. |
analyze_screen
Analyze the current screen and return Set-of-Marks JSON (elements with stable ids, bounds, centers).
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
no_cache | boolean | Force a fresh capture instead of reusing cached hierarchy data. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
query | string | Return the single best-matching element. |
source | string | |
with_image | boolean | Also return the raw screenshot as an image block. |
with_ocr | boolean |
has
Quick check: is this text on screen right now? Returns {found, source, bounds?}.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
by | string | Match by text, resource-id (finds pruned containers), or desc. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
ignore_case | boolean | |
match | string | |
ocr_fallback | boolean | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
tap_and_analyze
Tap by a fresh observation id or by one stable rid/text/desc selector. Prefer a stable selector when one is available. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
bounds | array | Where stable_key was seen, as [x1,y1,x2,y2]. Only used to pick between several elements sharing that key, as reusable list rows do. |
desc | string | Match by content-desc. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
first | boolean | Take the first match. |
id | integer | string | Copy an element's id from the latest observation, including stable strings like 'el:...'. Also accepts a current-frame numeric ordinal. Do not put this id in rid. |
index | integer | 0-based index when the selector is ambiguous. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
rid | string | Match the app's resource/test id (resource_id/rid), e.g. 'submit'. This is not the observation's element id ('el:...'). |
stable_key | string | Accept a published element handle (el:...) or a reusable selector key (e.g. rid:continueBtn). Prefer the observation's id: handles follow the same identified item across reordering and refuse an unava… |
text | string | Match by visible text. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
select_option
Select one native single-choice option by exact value or label; returns its screen.
| Parameter | Type | Description |
|---|---|---|
id * | integer | string | Copy an element's id from the latest observation, including stable strings like 'el:...'. Also accepts a current-frame numeric ordinal. Do not put this id in rid. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
label | string | |
observe | boolean | Also return the post-action screen analysis. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
value | string | |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
input_and_analyze
Type text into the element with the given id; optionally use the IME submit action or name one explicit semantic app send control. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
id * | integer | string | Copy an element's id from the latest observation, including stable strings like 'el:...'. Also accepts a current-frame numeric ordinal. Do not put this id in rid. |
text * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
send | string | Stable id of the app's explicit send control. |
submit | boolean | |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
swipe_and_analyze
Swipe a direction (up|down|left|right) or by explicit [x1,y1,x2,y2] coordinates. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
coords | array | |
direction | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
drag_and_analyze
Drag: press at the start, optionally hold still (hold_ms), move smoothly to the end over duration_ms, release without a fling. Use it for games, sliders, pull-to-aim, drag-and-drop and reordering; use swipe/scroll to move content. Start is an element (id/rid/text/desc) or from_coords; end is an element (to_id/to_rid/to_text/to_desc) or to_coords; coords=[x1,y1,x2,y2] sets both. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
coords | array | Start and end as [x1,y1,x2,y2]. |
desc | string | Match by content-desc. |
duration_ms | integer | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
from_coords | array | A point as [x,y]. |
hold_ms | integer | |
id | integer | string | Copy an element's id from the latest observation, including stable strings like 'el:...'. Also accepts a current-frame numeric ordinal. Do not put this id in rid. |
index | integer | 0-based index when the selector is ambiguous. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
rid | string | Match the app's resource/test id (resource_id/rid), e.g. 'submit'. This is not the observation's element id ('el:...'). |
text | string | Match by visible text. |
to_coords | array | A point as [x,y]. |
to_desc | string | End at the element with this content-desc. |
to_id | integer | string | Copy an element's id from the latest observation, including stable strings like 'el:...'. Also accepts a current-frame numeric ordinal. Do not put this id in rid. |
to_rid | string | Match the app's resource/test id (resource_id/rid), e.g. 'submit'. This is not the observation's element id ('el:...'). |
to_text | string | End at the element with this text. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
key_and_analyze
Press a hardware/navigation key (back|home|enter|recents|KEYCODE_*). Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
back_until_and_analyze
Navigate back in one bounded call until semantic destination evidence is present. Re-resolves a visible Back/Navigate-up control on every fresh frame, then falls back to hardware Back. Returns the final analyzed screen and always stops if the foreground leaves the starting package. A bare mapped known_screen name is accepted directly.
| Parameter | Type | Description |
|---|---|---|
predicate * | string | Bare mapped known_screen name, or ANDed text:/rid:/desc: terms. |
back_id | integer | Fresh frame-local id for an unlabeled Back control; first step only. |
back_selector | object | Optional app-owned Back selector, re-resolved on every frame. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
max_steps | integer | |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
poll_ms | integer | |
step_timeout_ms | integer |
wait_and_analyze
Wait for text to appear (for_) or for the UI to go idle. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
for_ | string | |
idle | boolean | |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
timeout | integer | |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
wait_changed_and_analyze
Block until the accessibility hierarchy fingerprint changes (any UI tree change). Host-polled stand-in for a11y event push. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
interval_ms | integer | |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
timeout_ms | integer | |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
screenshot
Save a screenshot; set annotate=true to overlay Set-of-Marks numbers.
| Parameter | Type | Description |
|---|---|---|
annotate | boolean | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
path | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
inspect
Return full attributes for one element id from the last analyze.
| Parameter | Type | Description |
|---|---|---|
id * | integer | string | Copy an element's id from the latest observation, including stable strings like 'el:...'. Also accepts a current-frame numeric ordinal. Do not put this id in rid. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
long_press_and_analyze
Long-press a current element id or a fresh semantic selector (context menus). Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
desc | string | Match by content-desc. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
id | integer | string | Copy an element's id from the latest observation, including stable strings like 'el:...'. Also accepts a current-frame numeric ordinal. Do not put this id in rid. |
index | integer | 0-based index when the selector is ambiguous. |
ms | integer | |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
rid | string | Match the app's resource/test id (resource_id/rid), e.g. 'submit'. This is not the observation's element id ('el:...'). |
text | string | Match by visible text. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
back_gesture_and_analyze
Perform Android's left-edge back gesture without accepting coordinates. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
mic_inject_and_analyze
Inject a host U8/S16 PCM WAV into an Android Emulator microphone. An optional control defaults to push-to-talk hold, or can tap once to start and once to stop. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
path * | string | Host path to a PCM WAV. |
bounds | array | Where stable_key was seen, as [x1,y1,x2,y2]. Only used to pick between several elements sharing that key, as reusable list rows do. |
control_mode | string | hold = DOWN/audio/UP; toggle requires an initially-off target and uses one non-retrying tap to start and one to stop. |
desc | string | Match by content-desc. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
first | boolean | Take the first match. |
id | integer | string | Copy an element's id from the latest observation, including stable strings like 'el:...'. Also accepts a current-frame numeric ordinal. Do not put this id in rid. |
index | integer | 0-based index when the selector is ambiguous. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
post_roll_ms | integer | |
pre_roll_ms | integer | |
rid | string | Match the app's resource/test id (resource_id/rid), e.g. 'submit'. This is not the observation's element id ('el:...'). |
stable_key | string | Accept a published element handle (el:...) or a reusable selector key (e.g. rid:continueBtn). Prefer the observation's id: handles follow the same identified item across reordering and refuse an unava… |
text | string | Match by visible text. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
mic_speak_and_analyze
On macOS, synthesize text with /usr/bin/say and inject it into an Android Emulator microphone; optionally hold one control or toggle it on then off. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
speech * | string | |
bounds | array | Where stable_key was seen, as [x1,y1,x2,y2]. Only used to pick between several elements sharing that key, as reusable list rows do. |
control_mode | string | hold = DOWN/audio/UP; toggle requires an initially-off target and uses one non-retrying tap to start and one to stop. |
desc | string | Match by content-desc. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
first | boolean | Take the first match. |
id | integer | string | Copy an element's id from the latest observation, including stable strings like 'el:...'. Also accepts a current-frame numeric ordinal. Do not put this id in rid. |
index | integer | 0-based index when the selector is ambiguous. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
post_roll_ms | integer | |
pre_roll_ms | integer | |
rate | integer | |
rid | string | Match the app's resource/test id (resource_id/rid), e.g. 'submit'. This is not the observation's element id ('el:...'). |
stable_key | string | Accept a published element handle (el:...) or a reusable selector key (e.g. rid:continueBtn). Prefer the observation's id: handles follow the same identified item across reordering and refuse an unava… |
text | string | Match by visible text. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
voice | string | Installed macOS say voice. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
scroll_to_and_analyze
Scroll until the given text is visible; returns whether it was found. It searches ONE way: `direction` up (default) looks further down the list, down looks back up. A list that opens already scrolled past the target needs `down`. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
direction | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
ignore_case | boolean | |
match | string | |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
wait_stable_and_analyze
Wait until the screen stops visually changing (perceptual hash; works on opaque/Compose/video screens) — for loading / image generation. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
interval | integer | |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
settle | integer | |
timeout | integer | |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
goto
Drive to a remembered screen via the learned app map: replays the recorded steps of each route edge and verifies each hop. Risky deeplink, external, settings/data/lifecycle, and non-navigation effects are previewed and refused before execution unless allow_unsafe=true. plan=true previews without acting. assist=true lets the opt-in planner recover a divergence (needs planner.enabled). from_here=true resumes mid-edge when you already navigated part of the way.
| Parameter | Type | Description |
|---|---|---|
goal * | string | Screen name or fuzzy goal, e.g. 'settings'. |
allow_destructive | boolean | |
allow_unsafe | boolean | Permit disclosed non-navigation route effects after reviewing the preview. |
assist | boolean | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
from_here | boolean | Resume mid-edge from the first matching step on the current screen. |
max_steps | integer | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
plan | boolean |
flow_run
Replay a saved, file-backed, or inline-YAML flow (whole journey — launch, taps, waits, asserts, cross-app auth) in one call; on divergence returns the failing step index + remaining steps, resumable via from_step. assist=true lets the opt-in planner clear a blocker and resume (needs planner.enabled). Optional artifacts_dir writes portable evidence and JUnit.
| Parameter | Type | Description |
|---|---|---|
allow_destructive | boolean | |
artifacts_dir | string | |
assist | boolean | |
dry_run | boolean | |
evidence | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
file | string | |
from_step | integer | |
junit | boolean | |
name | string | |
params | object | ${NAME} placeholder values. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
yaml | string |
list_devices
List attached devices (serial, model, android version, state).
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
teardown_status
List pending undos and blocked ledger files without connecting to a target.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
teardown_run
Replay safe pending undos; force bypasses leases, never boot/configuration proof.
| Parameter | Type | Description |
|---|---|---|
dry_run | boolean | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
force | boolean | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
target_id | string |
teardown_discard
Explicitly abandon named stale undos on an unleased target. Archives evidence but does not connect to or restore the device. Requires human authorization.
| Parameter | Type | Description |
|---|---|---|
confirmed * | boolean | |
keys * | array | |
reason * | string | |
target_id * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
virtual_target_list
List reusable virtual-target definitions for the selected platform.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
virtual_target_status
Show configured, running, and AUA-owned virtual targets.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
virtual_target_start
Start one selected-platform virtual target without opening a session.
| Parameter | Type | Description |
|---|---|---|
animations | boolean | |
audio | boolean | |
definition_id | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
headless | boolean | |
options | object | Opaque options validated by the selected adapter. |
owner | string | |
parallel | boolean | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
wait | number |
virtual_target_provision
Select and start a compatible virtual target as one Engine operation.
| Parameter | Type | Description |
|---|---|---|
animations | boolean | |
audio | boolean | |
definition_id | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
headless | boolean | |
needs | array | |
options | object | Opaque options validated by the selected adapter. |
owner | string | |
parallel | boolean | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
wait | number |
virtual_target_create
Create or idempotently reuse a selected-platform target definition.
| Parameter | Type | Description |
|---|---|---|
definition_id * | string | |
confirmed | boolean | Required when replace=true because saved data may be lost. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
options | object | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
replace | boolean |
virtual_target_delete
Delete a stopped virtual-target definition after confirmation.
| Parameter | Type | Description |
|---|---|---|
definition_id * | string | |
confirmed | boolean | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
options | object | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
virtual_target_stop
Stop selected virtual targets while preserving foreign live leases.
| Parameter | Type | Description |
|---|---|---|
all | boolean | |
definition_id | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
mine | boolean | |
owner | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
target_id | string |
virtual_target_reclaim
Re-arm retirement supervision for AUA-owned orphan instances.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
idle_stop | number | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
emulator_list
List configured Android Virtual Devices (AVD names, Play Store vs rootable).
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
emulator_status
SDK/AVD tooling + running emulator serials + what aua started (owner/port for parallel agents).
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
emulator_start
Boot an AVD headless (default) for unattended verify. Use parallel=true when multiple agents share a host (unique port + read-only + owner). Automatically clears a confirmed unowned proxy black hole inherited from the AVD; reachable foreign and AUA-owned proxies are preserved. This provisions an AVD but does not open a goal session; agents should call session_start for automatic selection/provisioning/leasing. Ordinary device tools follow the owner's one automatic sticky lease and do not repeat a serial. REQUIRED: call emulator_stop when done (or stop_mine) — orphaned AVDs burn CPU. Idle aut…
| Parameter | Type | Description |
|---|---|---|
animations | boolean | |
audio | boolean | Keep host audio enabled for emulator microphone injection. |
avd | string | AVD name (omit if only one exists). |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
gpu | string | |
headless | boolean | |
idle_stop | integer | Auto-stop after N seconds idle (0=never). Headless only. |
owner | string | Owner tag for scoped stop (default $AUA_OWNER or auto). |
parallel | boolean | Safe multi-agent boot: free -port, -read-only, owner tag. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
port | integer | Even console port 5554–5682 (auto with parallel). |
read_only | boolean | |
wait | integer |
emulator_stop
Stop emulator(s) aua started. ALWAYS call before ending a session that booted an AVD. Prefer serial= for parallel agents; mine=true stops aua-started (scoped by owner / $AUA_OWNER when set).
| Parameter | Type | Description |
|---|---|---|
all | boolean | Kill EVERY running emulator (dangerous). |
avd | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
mine | boolean | Stop aua-started records (filter by owner if set). |
owner | string | Stop only this owner's instances. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
serial | string | Kill this emulator serial only. |
double_tap_and_analyze
Double-tap the element with the given id. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
id * | integer | string | Copy an element's id from the latest observation, including stable strings like 'el:...'. Also accepts a current-frame numeric ordinal. Do not put this id in rid. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
clear_and_analyze
Focus an element and clear its text field. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
id * | integer | string | Copy an element's id from the latest observation, including stable strings like 'el:...'. Also accepts a current-frame numeric ordinal. Do not put this id in rid. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
scroll_and_analyze
Scroll a direction (up|down|left|right); optional percent of the scrollable container. Directions follow the finger, as on a phone: up shows what is further down the page. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
direction * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
percent | integer | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
expect_and_analyze
Assert something about the screen (exists/absent/text/state). ok=false means the assertion failed. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
absent | boolean | |
checked | boolean | |
contains_all | array | |
count | integer | |
desc | string | |
enabled | boolean | |
exists | boolean | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
first | boolean | |
focused | boolean | |
index | integer | |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
poll_ms | integer | |
rid | string | |
same_parent_as | object | |
selected | boolean | |
text | string | |
text_contains | string | |
text_is | string | |
timeout_ms | integer | |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
within | object |
hide_keyboard_and_analyze
Dismiss the soft keyboard (prefer over key back when the IME is up). Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
open_link_and_analyze
Open a deeplink URI. Pass package/prefer to skip the system 'Open with…' chooser. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
uri * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
package | string | Target package — pins the VIEW intent. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
pin_package | boolean | Pin to foreground/package (false = allow chooser). |
prefer | string | If a chooser appears, auto-pick this package/label. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
clipboard_set
Set the device clipboard to the given text.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
clipboard_get
Read the device clipboard.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
paste_and_analyze
Paste the clipboard into the focused field. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
copy_text
Copy an element's text/content-desc to the clipboard (by id or rid/text/desc selector).
| Parameter | Type | Description |
|---|---|---|
bounds | array | Where stable_key was seen, as [x1,y1,x2,y2]. Only used to pick between several elements sharing that key, as reusable list rows do. |
desc | string | Match by content-desc. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
first | boolean | Take the first match. |
id | integer | string | Copy an element's id from the latest observation, including stable strings like 'el:...'. Also accepts a current-frame numeric ordinal. Do not put this id in rid. |
index | integer | 0-based index when the selector is ambiguous. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
rid | string | Match the app's resource/test id (resource_id/rid), e.g. 'submit'. This is not the observation's element id ('el:...'). |
stable_key | string | Accept a published element handle (el:...) or a reusable selector key (e.g. rid:continueBtn). Prefer the observation's id: handles follow the same identified item across reordering and refuse an unava… |
text | string | Match by visible text. |
erase_and_analyze
Erase text in a field: focus (optional id) then delete chars or clear all. Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
bounds | array | Where stable_key was seen, as [x1,y1,x2,y2]. Only used to pick between several elements sharing that key, as reusable list rows do. |
chars | integer | Delete this many characters; omit to clear all. |
desc | string | Match by content-desc. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
first | boolean | Take the first match. |
id | integer | string | Copy an element's id from the latest observation, including stable strings like 'el:...'. Also accepts a current-frame numeric ordinal. Do not put this id in rid. |
index | integer | 0-based index when the selector is ambiguous. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
rid | string | Match the app's resource/test id (resource_id/rid), e.g. 'submit'. This is not the observation's element id ('el:...'). |
stable_key | string | Accept a published element handle (el:...) or a reusable selector key (e.g. rid:continueBtn). Prefer the observation's id: handles follow the same identified item across reordering and refuse an unava… |
text | string | Match by visible text. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
location_set
Set GPS mock location (lat, lon).
| Parameter | Type | Description |
|---|---|---|
lat * | number | |
lon * | number | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
orientation_set
Set screen orientation (portrait|landscape|…).
| Parameter | Type | Description |
|---|---|---|
mode * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
orientation_get
Get the current screen orientation.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
airplane_set
Enable or disable airplane mode.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
airplane_toggle
Toggle airplane mode.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
network_status
Read and verify airplane, Wi-Fi, mobile-data, and active default-network state.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
verify | boolean | Accepted for CLI/MCP command-family parity; status always reads back the current Android state. |
network_offline
Save current network controls, disable transports, and verify the device has no active default network. Always pair with network_restore.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
timeout_ms | integer | |
verify | boolean |
network_restore
Restore and verify the network controls saved by network_offline.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
timeout_ms | integer |
network_profile_list
List reversible Wi-Fi, cellular, slow, and lossy profiles.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
network_profile_status
Read the active network profile and verify its current evidence.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
network_profile_apply
Apply one reversible profile: wifi-only, cellular-only, slow, or lossy. Restore the active profile before applying another.
| Parameter | Type | Description |
|---|---|---|
profile * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
loss_percent | number | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
timeout_ms | integer |
network_profile_restore
Restore and verify conditions saved before the active profile.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
timeout_ms | integer |
media_add
Push a local media file onto the device (DCIM/Camera by default).
| Parameter | Type | Description |
|---|---|---|
path * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
screen_record_start
Start native screen video. Android rotates original MP4 segments for up to 30 minutes; rotation is not guaranteed gapless. Startup success does not prove continuous coverage. For HTTP traffic use mock_record.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
path | string | Target path override; the selected platform chooses its default. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
screen_record_stop
Stop native video and save a playable MP4 at PATH (also returned in detail). Android retains PATH.segments/ and PATH.recording.json; multiple segments require host ffmpeg. Inspect lifecycle, gaps and duration_check; failed coverage returns ok=false. Native within-segment timing is preserved; joined media omits gaps. Coverage is unverified; no missing footage is synthesized. Encoder failure salvages finalized segments with failed coverage; partial originals and pending cleanup are reported. No playable segments is an error with retained diagnostics. Export failures retain remote evidence for re…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
record_start
Deprecated alias for screen_record_start. Starts MP4 SCREEN VIDEO, never HTTP traffic; use mock_record for traffic.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
path | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
record_stop
Deprecated alias for screen_record_stop; saves playable MP4 at PATH, with original segments and unverified coverage sidecar on Android.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
capture_status
Status of this persistent server's rolling capture buffer.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
capture_last
Return recent capture frames + cheap local diff summary.
| Parameter | Type | Description |
|---|---|---|
evidence_ref | string | Exact capture_evidence.ref from an action/job; excludes seconds/since. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
region | string | Filter diff to a 3×3 cell (center, upper, left, …). |
seconds | number | |
since | string | Use 'last-action' for frames since the last tap/input. |
where_rid | string | Infer region from a resource-id's last-known center. |
capture_export
Export recent capture frames to a GIF (or MP4 with imageio).
| Parameter | Type | Description |
|---|---|---|
path * | string | |
evidence_ref | string | Reuse exact action/job frame window, including a previous sheet's window. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
format | string | gif|mp4 |
fps | number | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
seconds | number | |
since | string |
capture_sheet
Export an evenly sampled PNG contact sheet with relative timestamps; does not require ffmpeg.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
columns | integer | |
evidence_ref | string | Exact capture_evidence.ref; the first read/export fixes the frame list. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
max_frames | integer | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
seconds | number | |
since | string | Use 'last-action' for post-action frames. |
timestamps | boolean |
capture_explain
Narrate recent capture (local summary; optional LLM).
| Parameter | Type | Description |
|---|---|---|
evidence_ref | string | Exact capture_evidence.ref from an action/job; excludes seconds/since. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
llm | boolean | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
seconds | number | |
since | string |
clock_set
Set the device clock to a Unix timestamp in milliseconds.
| Parameter | Type | Description |
|---|---|---|
ms * | integer | Unix timestamp in milliseconds. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
dev_profile
Apply developer-option profile: ac (anim off + crashes on) or default.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
a11y_scroll_and_analyze
Accessibility scroll on an element (forward or backward). Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
direction | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
id | integer | string | Copy an element's id from the latest observation, including stable strings like 'el:...'. Also accepts a current-frame numeric ordinal. Do not put this id in rid. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
rid | string | Match the app's resource/test id (resource_id/rid), e.g. 'submit'. This is not the observation's element id ('el:...'). |
text | string | |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
flags_apply_and_analyze
Apply feature flags from a YAML file via the package's configured deeplink template, verify them against the app's shared_prefs, and restart the app (flags read at cold start need the restart). Returns the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
observe_fields | string | Columns to keep in the returned `observation` ('all' = full dump). Defaults to a compact view. This is the cost dial the renamed tools kept instead of `observe`: the screen always comes back — that… |
observe_meta | string | `meta` keys to keep in the returned `observation`: 'changed' (default — did the screen move, where am I, plus anything you must not miss), 'all', or a comma-separated key list. The second cost dial,… |
package | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
restart | boolean | |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
verify | boolean |
map_audit
Audit a learned map and persist source/runtime research tasks for poor names, variants/states, contexts, and untrusted routes.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
context | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
reconcile_plan
Create canonical research tasks for an external agent. AUA does not spawn the agent.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
context | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
reconcile_submit
Submit a structured external-agent report. verdict=apply is validated, committed atomically, and given a rollback id.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
report * | object | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
reconcile_status
List research tasks, queued reports, and correction events.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
reconcile_apply
Apply a queued review report by task id.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
task_id * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
reconcile_rollback
Restore the transaction snapshot for a correction event.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
rollback_id * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
knowledge_list
List provenance-bearing app knowledge. With query, return only accepted facts whose aliases, name or text match that goal phrasing, best first.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
query | string | |
status | string |
knowledge_add
Save feedback or source/runtime research for future agents.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
text * | string | |
agent | string | |
aliases | array | |
context | string | |
evidence | array | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
kind | string | |
name | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
session | string | |
source | string |
prepare_start
Before testing an unfamiliar claim: get the short list of things AUA cannot work out for itself (build, sign-in, what the pre-condition is in code, how to reach it, UI-only or end-to-end, and what must be on screen). Questions the app map already answers are not asked.
| Parameter | Type | Description |
|---|---|---|
goal * | string | |
package * | string | |
context | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
prepare_answer
Answer prepare_start's questions. When none are left this writes the contract, saves the scenario, and returns the run command plus the translation of every answer into an assertion - check it before running.
| Parameter | Type | Description |
|---|---|---|
answers * | object | |
package * | string | |
prepare_id * | string | |
agent | string | |
artifacts_dir | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
remember | boolean |
prepare_run
Run a prepared scenario end to end and return the verdict with every screenshot, video and report it produced. AUA drives the device itself when a controller model is configured; otherwise the exact commands to drive it come back instead. The result always says which, and which files a person must read before the bundle is shared.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
scenario * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
output | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
timeout_s | number |
prepare_show
Show one interview without changing it.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
prepare_id * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
prepare_discard
Drop an unfinished preparation interview. Saved scenarios are untouched; returns whether an in-progress interview was removed.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
prepare_id * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
prepare_list
Interviews in flight and scenarios already prepared for this app.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
knowledge_stale
Mark one knowledge item stale while retaining its evidence.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
proxy_start
Start headless mitmproxy + device http_proxy (needs [proxy] extra).
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
port | integer | mitmdump listen port; 0 = free random high port. |
proxy_stop
Stop mitmproxy and clear the device HTTP proxy.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
proxy_status
Is interception ACTUALLY working end to end? Returns state=unproxied|healthy|degraded|foreign|blackholed plus owned/intercepting. Diagnoses a device pointed at a proxy no aua owns — including the black-hole state where every app request fails with ConnectException.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
heal | boolean | Re-establish a dropped adb reverse tunnel when the process and device setting already check out. Never heals a proxy this session cannot prove is its own. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
mock_replay
Load a YAML cassette as live HTTP mock rules.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
mock_record
Record live HTTP traffic into a named YAML cassette (start|stop). Records requests/responses through the proxy, not screen video — for video use screen_record_start. Requires proxy_start first.
| Parameter | Type | Description |
|---|---|---|
action * | string | Begin or end the recording window. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
name | string | Cassette name; required for start. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
mock_map
Arm one ad-hoc HTTP mock rule: answer METHOD PATH with a fixed status and body. Appends to the live rules the proxy already reloads, so no restart is needed.
| Parameter | Type | Description |
|---|---|---|
method * | string | HTTP method, for example GET or POST. |
path * | string | Request path to match, for example /v1/hub. |
body | string | Response body to answer with. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
status | integer | Status code to answer with. |
mock_rewrite
Arm one HTTP rule that lets the request REACH the server and then patches the real response — status, headers, or individual JSON fields. Use this instead of mock_map to reproduce a server-side condition (a 429, a missing field) on real data. A rule with no host and a catch-all path is refused: it would also intercept the platform's connectivity probes and the device would look offline.
| Parameter | Type | Description |
|---|---|---|
method * | string | HTTP method, for example GET or POST. `*` matches any. |
path * | string | Request path to match, for example /v1/hub. |
body | string | Replace the whole response body. |
delete_json | array | JSON field paths to delete. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
headers | object | Response headers to set. |
host | string | Restrict the rule to one host. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
set_json | object | JSON fields to set, keyed by path: `items[0].title` or `items.0.title`, values as-is. |
status | integer | Replace the response status code. |
times | integer | Fire at most N times; 0 means every time. |
app
Inspect or control the foreground app (foreground|stop|kill|clear|grant|uninstall|current). Use app_launch_and_analyze to launch. Uninstall removes the app and all its data; requires confirmed=true.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
activity | string | |
arguments | array | Process arguments for the launched app, in order (iOS simulators only; Android has none and refuses them). |
clear_state | boolean | |
confirmed | boolean | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
package | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
app_launch_and_analyze
Launch an app and return the analyzed resulting screen in `observation`; use its fresh ids directly and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
activity | string | |
arguments | array | Process arguments for the launched app, in order (iOS simulators only; Android has none and refuses them). |
clear_state | boolean | |
confirmed | boolean | Required when clear_state=true because it wipes app data. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
until | string | After the action, wait for comma-separated semantic terms such as 'rid:result,!text:Loading', then return that settled screen in this same call. At least one term must be positive arrival evidence. |
until_poll | integer | Milliseconds between until predicate checks. |
until_timeout | integer | Maximum milliseconds to wait for until. |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
app_status
Read package presence and version from AUA's leased target. This is read-only; the result includes the exact selected serial.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
shell_read_only
Run one bounded read-only diagnostic command on AUA's leased target. Every argv item is quoted before Android's remote shell parses it; unknown or mutating verbs are refused, and each output stream is capped at 256 KiB.
| Parameter | Type | Description |
|---|---|---|
argv * | array | Command argv, for example ['pm', 'path', 'com.example.app']. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
timeout_ms | integer |
install_app
Install an app bundle (.apk) on the device instead of shelling out to `adb install`. Idempotent: an app already there at the bundle's version is left alone. With launch=true it also opens the app and returns the resulting screen in `observation` — use its fresh ids and do not call analyze_screen next.
| Parameter | Type | Description |
|---|---|---|
bundle * | string | Host path to the .apk to install. |
activity | string | |
confirmed | boolean | Required when mode=fresh because it wipes app data. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
grant_permissions | boolean | Pre-grant runtime permissions. Off by default: it skips the permission dialog a scenario may be there to verify. |
launch | boolean | |
mode | string | Differs only when the app is already installed. if-needed: skip unless the version differs. reinstall: push anyway, keeping app data. fresh: uninstall first (wipes data; the only mode that survives a… |
package | string | Optional assertion: fail if the bundle declares another package id. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
timeout_ms | integer | |
with_image | boolean | string | Keep the returned frame (true or destination path); false disables output. Overrides configure default without another capture. |
helper_status
Report whether the selected platform's optional on-device helper is installed, enabled, bound, and ready.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
helper_install
Explicitly install the selected platform's optional device helper.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
force | boolean | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
reinstall | boolean |
helper_enable
Enable the optional device helper through the shared Engine path, with write-ahead restoration of device state.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
helper_model_run
After one platform-neutral helper handoff, run DeepSeek V4.1 Flash's complete observe/act/verify loop on the target. The server reads the provider key from its environment; credentials are never accepted as tool arguments.
| Parameter | Type | Description |
|---|---|---|
checks * | array | |
goal * | string | |
api_key_env | string | |
cost_limit_usd | number | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
max_steps | integer | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
time_limit_s | number |
helper_disable
Disable the optional device helper and restore its saved setup state.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
helper_remove
Disable and explicitly uninstall the optional device helper.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
database_list
List a debuggable package's private SQLite databases and WAL/SHM sizes.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
database_schema
Return tables/views, columns, indexes, foreign keys, and CREATE SQL.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
restart | boolean | |
table | string |
database_query
Run one read-only SQLite statement against a private-database snapshot and return columns plus JSON rows. By default this keeps the app running and preserves navigation/UI state. Pass `live: false` only when a transactionally coherent snapshot is required; that force-stops the app and the result's `warning` says the previous UI state is gone.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
package * | string | |
sql * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
limit | integer | |
live | boolean | Keep the app running and preserve UI state (default). Set false for a coherent stop-first snapshot. Ignores `restart` when true. |
parameters | SQLite bind parameters as a JSON array or object. | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
restart | boolean | |
timeout_ms | integer |
database_execute
Execute confirmed INSERT/UPDATE/DELETE/REPLACE/WITH statements. Stops the app, creates a restore point, validates integrity/foreign keys, replaces the database without stale sidecars, and relaunches by default.
| Parameter | Type | Description |
|---|---|---|
confirmed * | boolean | Must be true after reviewing the data mutation. |
database * | string | |
package * | string | |
sql * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
parameters | SQLite bind parameters as a JSON array or object. | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
restart | boolean | |
timeout_ms | integer |
database_backup
Create a private host restore point with the database and sidecars.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
restart | boolean |
database_backups
List restore points scoped to this device, package, and database.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
database_restore
Restore a confirmed database backup after preserving the current state as a new safety backup.
| Parameter | Type | Description |
|---|---|---|
backup_id * | string | |
confirmed * | boolean | Must be true after reviewing the restore point id. |
database * | string | |
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
restart | boolean |
datastore_list
List a debuggable package's Jetpack DataStore preference files. These hold theme, onboarding and similar app state; feature flags live in shared_prefs.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
datastore_get
Read one DataStore file as typed key/value pairs. Does not stop the app, so the caller keeps its navigation state.
| Parameter | Type | Description |
|---|---|---|
datastore * | string | |
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
keys | array | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
datastore_set
Merge typed values into one DataStore file: force-stops the app (a running app never re-reads the file), takes a restore point, writes, and relaunches by default. Keys not named are preserved. The app is back at its cold-start screen afterwards, so re-navigate.
| Parameter | Type | Description |
|---|---|---|
confirmed * | boolean | Must be true after reviewing the values to write. |
datastore * | string | |
package * | string | |
values * | object | Keyed by preference name. Either a bare JSON value, or {"type": "bool|int|long|float|double|string|string_set", "value": ...} when the stored type must be pinned. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
restart | boolean |
datastore_backup
Copy one DataStore file to a private host restore point.
| Parameter | Type | Description |
|---|---|---|
datastore * | string | |
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
reason | string |
datastore_backups
List restore points scoped to this device, package, and datastore.
| Parameter | Type | Description |
|---|---|---|
datastore * | string | |
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
datastore_restore
Restore a confirmed datastore backup after preserving the current state as a new safety backup.
| Parameter | Type | Description |
|---|---|---|
backup_id * | string | |
confirmed * | boolean | Must be true after reviewing the restore point id. |
datastore * | string | |
package * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
restart | boolean |
resolve
Remap a previous-frame id or stable_key onto the current screen.
| Parameter | Type | Description |
|---|---|---|
target * | A published stable id, or a legacy frame-local integer id. | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
browser_status
Show the active browser page, pages/frames, supported controls, and network state.
| Parameter | Type | Description |
|---|---|---|
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
browser_logs
Read or clear browser console, page error, request, response, and WebSocket events.
| Parameter | Type | Description |
|---|---|---|
action | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
kinds | array | |
limit | integer | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
since_ms | integer |
browser_storage
Inspect, export, import, clear, or reset browser storage and HTTP cache.
| Parameter | Type | Description |
|---|---|---|
action | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
include_values | boolean | Include potentially sensitive cookie/storage values. |
kinds | array | |
path | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
browser_network
Inspect network controls or set online/offline and latency/bandwidth throttling.
| Parameter | Type | Description |
|---|---|---|
action | string | |
download_kbps | integer | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
latency_ms | integer | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
upload_kbps | integer |
browser_cors
Add a host-scoped CORS response rule or clear all AUA CORS rules.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
credentials | boolean | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
headers | array | |
hosts | array | |
methods | array | |
origin | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
browser_proxy
Set or clear the browser-context proxy; credentials stay in server environment variables.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
bypass | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
password_env | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
server | string | |
username | string |
browser_har
Start/stop HAR recording or enable/clear deterministic HAR replay.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
not_found | string | |
path | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
url | string |
browser_mock
Add a browser request response/abort mock or clear one/all mocks.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
abort | boolean | |
body | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
headers | object | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
rule_id | string | |
status | integer | |
url | string |
browser_pages
List pages/frames, select a popup/tab, or close one page.
| Parameter | Type | Description |
|---|---|---|
action | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
page_id | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
browser_trace
Start a Playwright trace or stop it into a new trace archive path.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
path | string | |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
configure
Set session defaults for subsequent action tools (e.g. with_image on every observation, or which app log levels they fold in).
| Parameter | Type | Description |
|---|---|---|
agent_response | boolean | Return a shared agent envelope with explicit success/error, current session context, and the observation/image already produced by this call. Persists on this MCP server; false restores legacy respons… |
app_log_ignore_tags | array | Tags to drop this session, on top of the built-in noisy list. Replaces the current session list; [] clears it. |
app_log_keep_tags | array | Tags to report despite the built-in noisy list, this session. Replaces the current session list; [] clears it. |
app_log_levels | string | Log priorities to fold in, as a SET not a floor (default 'DWEF'). 'I' is noisier than 'D' on Android — measured, every 'I' line in a real launch window came from an SDK or the runtime — so widen t… |
app_log_limit | integer | Lines folded into each action (default 20). Raise it for one stretch of a session; use app_log_prefs_set to keep it for an app. |
app_log_only_tags | array | Fold in ONLY these tags this session; [] clears the list. 'F' lines survive it, so this cannot hide a crash. |
app_log_per_tag | integer | Lines one tag may contribute before it is capped (default 5). |
app_logs | boolean | Fold what the app logged during an action into its observation (default true). Set false to stop paying for it. |
expect_error | string | Exact machine-readable error code intentionally probed by this invocation; session review treats it as expected only when the returned code matches. |
phase_done | object | Optional checkpoint from the previous result. It advances the current goal phase without an extra tool call before this tool runs. |
with_image | boolean | Default with_image for action tools that observe. |