Skip to main content

app_terminate

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Stop a running app. Useful between flows, to start from a known state rather than wherever the last one left off.

Changes the device, the app or the session: readOnlyHint is false.

Arguments​

NameTypeRequiredWhat it is
appstringyesPackage name on Android or bundle id on iOS.
devicestringDevice serial to target, e.g. "emulator-5554". Omit when only one device is running.
driverstring: uiautomator2, uiautomator, wdaDriver to use: "uiautomator2" (default for Android; fast, installs a server APK on first use), "uiautomator" (Android, installs nothing, slower, cannot type), or "wda" (WebDriverAgent: iOS simulators and iPhones).

Examples​

Each is the arguments of a tools/call request; the first is shown whole.

Stop an app​

{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "app_terminate",
"arguments": {
"app": "com.android.settings"
}
}
}

On an Android 15 emulator the answer's text was:

terminated com.android.settings
BeforeAfter
Before: mobium terminate com.android.settings on an Android 15 emulatorAfter: mobium terminate com.android.settings on an Android 15 emulator

mobium terminate com.android.settings on an Android 15 emulator