as_run_app
Build, install, and launch an Android app on a device or emulator, capture recent logcat logs, and detect crashes in a single command.
Instructions
Build, install and launch an app on a device/emulator, then capture logs.
One-shot equivalent of Android Studio's Run button:
assemble 2. install the APK 3. launch the launcher activity
capture the app's recent logcat (and detect crashes) 5. optional screenshot.
Args: params (RunAppInput): project_dir, variant, module, serial, install, launch, capture_logcat_lines, screenshot, timeout.
Returns: str: JSON with a 'steps' object (build/install/launch/logcat/screenshot), the apk path, package, and 'crash_detected' (bool).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"params": "<params>"
},
"name": "as_run_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |