decide_set_task_alert
Set timely alerts for specific tasks in the Decide realm to ensure reminders are triggered at designated times. Integrates with addTaskManager for streamlined task management.
Instructions
Set task alerts in Decide realm.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alertDateTime | Yes | Alert date and time in ISO format for localNotification | |
| taskRecordName | Yes | Task record name |
Implementation Reference
- src/index.ts:466-476 (registration)Tool registration in ListToolsRequestSchema handler, including name, description, and input schema definition for 'decide_set_task_alert'.name: 'decide_set_task_alert', description: 'Set task alerts in Decide realm.', inputSchema: { type: 'object', properties: { taskRecordName: { type: 'string', description: 'Task record name' }, alertDateTime: { type: 'string', format: 'date-time', description: 'Alert date and time in ISO format for localNotification' } }, required: ['taskRecordName', 'alertDateTime'] } },
- src/index.ts:715-717 (handler)Dispatch handler in CallToolRequestSchema switch statement that validates arguments and calls setTaskAlert method.case 'decide_set_task_alert': this.validateArgs(args, ['taskRecordName', 'alertDateTime']); return await this.setTaskAlert(args.taskRecordName, args.alertDateTime);
- src/index.ts:1038-1040 (handler)Intermediate handler method that delegates to the core setAlertForTask implementation.private async setTaskAlert(taskRecordName: string, alertDateTime: string) { return this.setAlertForTask(taskRecordName, alertDateTime); }
- src/index.ts:1007-1011 (handler)Core handler function implementing the tool logic (currently a mock that returns success message; production would update CloudKit Task record's localNotification field).private async setAlertForTask(taskRecordName: string, alertDateTimeISO: string) { // Mock fetch & check realm (should be REALM_DECIDE_ID) // Mock update: console.log('Mock CloudKit: Setting localNotification', alertDateTimeISO, 'for Task', taskRecordName); return { content: [{ type: 'text', text: `Alert at ${alertDateTimeISO} set for Task ${taskRecordName} in Decide realm.` }] }; }