uninstall_app
Remove apps from Android devices by specifying the package name, ensuring easy and precise app management on connected devices.
Instructions
Uninstall an app from the connected Android device
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes |
Implementation Reference
- src/espresso_mcp/server.py:158-164 (handler)The main handler function for the 'uninstall_app' tool. It executes the uninstallation using the 'adb uninstall' command on the specified package name. The @mcp.tool() decorator also registers this function as an MCP tool.@mcp.tool() def uninstall_app(package_name: str) -> str: """Uninstall an app from the connected Android device""" result = subprocess.run(["adb", "uninstall", package_name], capture_output=True, text=True) if result.returncode != 0: raise RuntimeError(f"Error uninstalling app '{package_name}': {result.stderr}") return f"App '{package_name}' has been uninstalled successfully."