start_app
Launch Android applications by specifying the package name using this tool on the Espresso-MCP server. Simplify app testing and debugging processes efficiently.
Instructions
Start an app on the connected Android device
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes |
Implementation Reference
- src/espresso_mcp/server.py:114-133 (handler)The main handler function for the 'start_app' tool. It uses adb shell monkey to launch the specified Android app package with the LAUNCHER category.@mcp.tool() def start_app(package_name: str) -> str: """Start an app on the connected Android device""" result = subprocess.run( [ "adb", "shell", "monkey", "-p", package_name, "-c", "android.intent.category.LAUNCHER", "1", ], capture_output=True, text=True, ) if result.returncode != 0: raise RuntimeError(f"Error starting app '{package_name}': {result.stderr}") return f"App '{package_name}' has been started successfully."