start_app
Launch an Android or iOS app by app ID to begin an automated mobile test session. Dispatches the launch, returning lifecycle state and device readiness so you can wait, then verify the landing screen.
Instructions
Purpose: Launch a mobile app on Android or iOS.
Inputs:
platform
appId
deviceId (optional)
Output Structure:
action_id, timestamp (ISO 8601), action_type
lifecycle_state: post-dispatch lifecycle state (pending_verification or failed)
source_module: runtime source of the action envelope
target.selector = { appId }
success = true when launch was dispatched successfully
failure_code/retryable when launch dispatch fails
ui_fingerprint_before/ui_fingerprint_after when available
Recommended Usage:
Define the expected landing screen when it is known
Call start_app
If needed, wait for transition using wait_for_*
Verify with expect_screen
If verification fails, retry once or capture a snapshot
Verification Guidance:
Follow RESOLVE → ACT → WAIT (if needed) → EXPECT
expect_screen is the authoritative verification step when the landing screen is known
Do not treat timing or screen change alone as final verification
Failure Handling:
TIMEOUT → retry once
UNKNOWN → inspect snapshot/logs before retrying Compact results summarize observations, condition trees, state deltas and readiness probe evidence within a byte budget. Use get_interaction_diagnostics with the returned diagnostics session_id/result_id to retrieve the original result without replaying input. Debug output is unchanged. Results include device_readiness with timestamped device blocker evidence. Android reports supported power/keyguard signals; iOS signals may be unknown or explicitly unsupported. Launch/input dispatch success does not establish app visibility or input readiness. No automatic unlock or wake is performed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | Android package name or iOS bundle id | |
| deviceId | No | Device UDID (iOS) or Serial (Android). Defaults to booted/connected. | |
| platform | Yes | ||
| responseMode | No | debug | |
| actionTimeoutMs | No | Dispatch budget in milliseconds, clamped to 100–30000. | |
| verificationMode | No | full | |
| verificationTimeoutMs | No | Light observation budget in milliseconds, clamped to 100–60000. |