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
| Name | Required | Description | Default |
|---|---|---|---|
| packageName | Yes | The 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}`; } );
- src/android.ts:116-118 (helper)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"); }
- src/ios.ts:140-143 (helper)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); }
- src/iphone-simulator.ts:72-74 (helper)Simctl (iOS Simulator) launchApp implementation using xcrun simctl launch.public async launchApp(packageName: string) { this.simctl("launch", this.simulatorUuid, packageName); }