LaunchAppTool

class LaunchAppTool(context: Context) : McpTool

Launches an installed app via its main launch intent (FLAG_ACTIVITY_NEW_TASK), identified by package_name. Errors if the app is not found or exposes no launcher activity. No permissions; the module's manifest declares a <queries> element for MAIN/LAUNCHER intents so API 30+ package-visibility filtering doesn't hide launchable targets (a package with no launcher activity — background-only — is still invisible). Output: success (true) and package_name.

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