GetAppInfoTool

class GetAppInfoTool(context: Context) : McpTool

Returns details for one installed app identified by package_name. No permissions; the module's manifest declares a <queries> element for MAIN/LAUNCHER intents so API 30+ package-visibility filtering doesn't hide launchable apps — a package with no launcher activity (background-only) is still invisible (reported as "App not found"). Output: app_name, package_name, version_name, version_code, install_date, last_update, and permissions (the app's requested permissions).

Constructors

Link copied to clipboard
constructor(context: Context)

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