SendIntentTool

class SendIntentTool(context: Context) : McpTool

Fires an Android activity intent restricted to an allowlist of safe actions (VIEW, DIAL, SEND, SENDTO, CHOOSER, SEARCH, WEB_SEARCH, EDIT, PICK, GET_CONTENT, CREATE_DOCUMENT, OPEN_DOCUMENT) — non-allowlisted actions are rejected. Supports data URI, type, package_name, and extras (coerced to string extras), always with FLAG_ACTIVITY_NEW_TASK. No permissions. Output: success, action, data, package.

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