Package-level declarations

Types

Link copied to clipboard

Provider for the intent-dispatch tools (SendIntentTool, ShareContentTool, OpenDeepLinkTool). Declares no manifest permissions; SendIntentTool enforces a safe-action allowlist.

Link copied to clipboard
class OpenDeepLinkTool(context: Context) : McpTool

Opens a uri via ACTION_VIEW (http/https, app schemes, geo:, tel:, etc.), optionally forced to a specific app via package_name, with FLAG_ACTIVITY_NEW_TASK. No permissions. Output: success, uri, package.

Link copied to clipboard
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.

Link copied to clipboard
class ShareContentTool(context: Context) : McpTool

Shares text via the system share sheet (ACTION_SEND wrapped in a chooser), with optional subject and type (default text/plain). No permissions. Output: success, text_length, type.