GetActiveNotificationsTool

Reads the host app's currently active (status-bar) notifications via NotificationManager.getActiveNotifications.

No permissions required. KNOWN LIMITATION: this only returns notifications posted by the MCP host app itself. Cross-app access needs a NotificationListenerService — use list_notifications in droid-mcp-notifications-reply (or droid-mcp-notification-watch for a live feed).

Result keys: notifications (list of maps with id, tag, package_name, title, text, timestamp, is_ongoing, is_foreground_service), count, and a note describing the limitation.

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 outputSchema: Map<String, Any>
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