Skip to main content
Glama

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
NameRequiredDescriptionDefault
packageNameYesThe 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}`; } );
  • 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}`; }
  • Input schema validating the packageName parameter using Zod.
    { packageName: z.string().describe("The package name of the app to terminate"), },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EmpathySlainLovers/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server