CreateReminderTool

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.

Requires both Manifest.permission.READ_CALENDAR and Manifest.permission.WRITE_CALENDAR (checked at runtime; returns an error if either is missing). Fails if no calendar exists on the device.

Result keys: success, event_id, title, datetime, minutes_before.

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