mobile_terminate_app
Terminate a specific mobile app by specifying its package name using this tool within the Mobile Next MCP server for efficient app management during automation processes.
Instructions
Stop and terminate an app on mobile device
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packageName | Yes | The package name of the app to terminate |
Implementation Reference
- src/server.ts:237-248 (registration)Registration of the mobile_terminate_app MCP tool, including schema and inline handler function.tool( "mobile_terminate_app", "Stop and terminate an app on mobile device", { packageName: z.string().describe("The package name of the app to terminate"), }, async ({ packageName }) => { requireRobot(); await robot!.terminateApp(packageName); return `Terminated app ${packageName}`; } );
- src/server.ts:243-247 (handler)Handler function that requires an active robot (device) and invokes terminateApp on the specified package.async ({ packageName }) => { requireRobot(); await robot!.terminateApp(packageName); return `Terminated app ${packageName}`; }
- src/server.ts:240-242 (schema)Input schema validating the packageName parameter using Zod.{ packageName: z.string().describe("The package name of the app to terminate"), },