uninstall_app
Remove apps from Android devices by specifying their package names. This tool helps manage device storage and performance by uninstalling unwanted applications.
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 handler function for the 'uninstall_app' tool. It takes a package_name string parameter and uses the 'adb uninstall' command to remove the app from the connected Android device, returning a success message or raising an error.@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."