UninstallAppTool

pm uninstall [-k] <pkg> — silently uninstall an app by package name, no user prompt. Success is detected by "Success" in stdout.

Privilege: requires a working ShellBackend.

Params: package_name (required), keep_data (optional, default false → adds -k to retain the app's data/cache directories).

On success the result map carries success (true) and package_name.

Constructors

Link copied to clipboard
constructor(shell: ShellBackend)

Properties

Link copied to clipboard
open override val annotations: ToolAnnotations
Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val parameters: List<ToolParameter>

Functions

Link copied to clipboard
open suspend override fun execute(params: Map<String, Any>): ToolResult