Start an activity
start_activityLaunch an Android activity on a device using a component name or intent action. Blocks until the activity is displayed when wait is enabled.
Instructions
Launch an activity on one device (am start) either by component ("com.example/.MainActivity") or by intent action ("android.intent.action.VIEW" with optional data/extras). Use wait: true to block until the activity is reported as displayed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Intent data URI (-d), e.g. "https://example.com/item/1". | |
| wait | No | Pass -W and wait for launch to complete (default false). | |
| action | No | Intent action, e.g. "android.intent.action.VIEW". Mutually exclusive with component. | |
| device | No | Device serial from list_devices; optional when exactly one device is connected. | |
| extras | No | Raw `am start` arguments appended as-is and shell-quoted, e.g. ["--es", "message", "hello world", "--ez", "debug", "true"]. | |
| package | No | Restrict the intent to a package (-p), e.g. "com.example.app". | |
| component | No | Explicit component "package/activity". Mutually exclusive with action. | |
| timeout_ms | No | Timeout in milliseconds (default 30000; raise it when wait is true). | |
| force_stop_first | No | Pass -S to force-stop the target app before starting it (default false). |