GetDndStatusTool

class GetDndStatusTool(context: Context) : McpTool

Reports the current Do Not Disturb / interruption-filter state.

Reads android.app.NotificationManager.getCurrentInterruptionFilter; no special access is needed to read it (reading is unrestricted). Read-only.

Output keys: enabled (filter is not "all"), filter (one of all, priority, none, alarms, unknown), has_policy_access (whether the app holds DND policy access, required to change the mode).

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