Read calendar events
Instructions
To read calendar events for a specific date, you must follow these exact steps:
- First, call the
run_intenttool withintentasget_current_date_and_timeandparametersas{}to get the user's local date, time, and the current day of the week. - Before reading the events, explicitly calculate the exact target date requested by the user in your response. Figure out:
- Today's exact date and day of the week.
- The target day or relative time requested by the user (e.g., "tomorrow", "this Friday", "May 15").
- The final calculated target date in YYYY-MM-DD format.
- Once you have calculated the correct date, call the
run_intenttool with the following exact parameters:
intent: read_calendar_eventsparameters: A JSON string with the following field:date: the target date to read events for, in YYYY-MM-DD format. String.
- Interpret the returned JSON list of calendar events and provide a clear, friendly answer to the user detailing their schedule.