Package-level declarations

Types

Link copied to clipboard

Provider for the alarms module: CreateAlarmTool, CreateTimerTool, and CreateReminderTool. Alarm/timer tools rely on SET_ALARM (and the system clock app); the reminder tool writes a calendar event and needs read/write calendar access.

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

Creates a clock alarm by firing an AlarmClock.ACTION_SET_ALARM intent at the system clock app (with EXTRA_SKIP_UI, so no UI is shown). Optional message label and days (comma-separated mon..sun) for a repeating alarm; omit days for a one-time alarm.

Link copied to clipboard

Creates a reminder as a 30-minute calendar event with an alert, inserted into the device's primary calendar via CalendarContract. Takes a title, a datetime (yyyy-MM-dd HH:mm), and optional minutes_before (default 10) for the alert lead time.

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