launch_app
Launch Android applications by package name using ADB commands. This tool starts apps on connected devices for development, testing, and debugging workflows.
Instructions
Launch an app by package name
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package_name": "<package_name>"
},
"name": "launch_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes | ||
| device_serial | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/adb_mcp_server/server.py:587-594 (handler)Handler function for the 'launch_app' tool. Launches the specified Android app package using the ADB 'monkey' command with LAUNCHER intent. The @mcp.tool() decorator registers this function as an MCP tool.
@mcp.tool() def launch_app(package_name: str, device_serial: str | None = None) -> str: """Launch an app by package name""" return run_adb([ "shell", "monkey", "-p", package_name, "-c", "android.intent.category.LAUNCHER", "1" ], device_serial)