Skip to main content
Glama

launch_activity

Start a specific Android activity by providing package and activity names to launch app components for testing or development workflows.

Instructions

Launch a specific activity

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
package_nameYes
activity_nameYes
device_serialNo

Implementation Reference

  • The handler function decorated with @mcp.tool(), which registers it as an MCP tool. Launches a specific Android activity using ADB by constructing the component name and executing the 'am start' command.
    @mcp.tool() def launch_activity( package_name: str, activity_name: str, device_serial: str | None = None ) -> str: """Launch a specific activity""" component = f"{package_name}/{activity_name}" return run_adb(["shell", "am", "start", "-n", component], device_serial)

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/rahulkr/r_adb_mcp_server'

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