InvokeNotificationActionTool

Fires a notification's non-reply Notification.Action PendingIntent (e.g. Mark as read, Snooze, Archive) so the LLM doesn't need per-app intent shims. Requires the listener service bound and notification listener access granted. Exactly one of action_label (case- insensitive substring match on the action title) or action_index must be supplied — supplying both or neither is conflicting_args. Looks the notification up by key in NotificationStore; a notification with no actions, or no match for the given label/index, returns action_not_found. Output on success: success (true), the echoed key, the resolved action_label, 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