Skip to main content
Glama

mobile_launch_app

Open specific mobile apps by package name for automation testing or interaction, integrated with the Mobile Next MCP server for platform-agnostic mobile device control.

Instructions

Launch an app on mobile device. Use this to open a specific app. You can find the package name of the app by calling list_apps_on_device.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
packageNameYesThe package name of the app to launch

Implementation Reference

  • src/server.ts:224-235 (registration)
    Registration of the 'mobile_launch_app' MCP tool, including input schema for packageName and the handler function that delegates to the selected device's robot.launchApp method.
    tool( "mobile_launch_app", "Launch an app on mobile device. Use this to open a specific app. You can find the package name of the app by calling list_apps_on_device.", { packageName: z.string().describe("The package name of the app to launch"), }, async ({ packageName }) => { requireRobot(); await robot!.launchApp(packageName); return `Launched app ${packageName}`; } );
  • AndroidRobot.launchApp implementation using ADB shell monkey to launch the app.
    public async launchApp(packageName: string): Promise<void> { this.adb("shell", "monkey", "-p", packageName, "-c", "android.intent.category.LAUNCHER", "1"); }
  • IosRobot.launchApp implementation using go-ios 'launch' command after ensuring tunnel.
    public async launchApp(packageName: string): Promise<void> { await this.assertTunnelRunning(); await this.ios("launch", packageName); }
  • Simctl (iOS Simulator) launchApp implementation using xcrun simctl launch.
    public async launchApp(packageName: string) { this.simctl("launch", this.simulatorUuid, packageName); }

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