CreateTimerTool

class CreateTimerTool(context: Context) : McpTool

Creates a countdown timer by firing an AlarmClock.ACTION_SET_TIMER intent at the system clock app (with EXTRA_SKIP_UI, so no UI is shown). Takes a positive seconds duration and an optional message label.

Requires the com.android.alarm.permission.SET_ALARM permission (declared in the manifest).

Result keys: success, seconds, message.

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