get_events_in_range
Retrieve events within a specified date range, either absolute (start and end dates) or relative (past days). Filter by calendar to avoid duplicates.
Instructions
Get events in an arbitrary date window (past or future), grouped by date.
Specify the window in exactly ONE of two ways (not both):
Absolute: pass both
startandendas "YYYY-MM-DD".endis inclusive of the whole day (e.g. start="2026-05-28", end="2026-06-10" covers all of the 10th).Relative: pass
days_back(a positive integer) for events from that many days ago through the end of today.
Args: calendar: Optional calendar name to scope to (use get_calendars for names). Omit to query all calendars — note that an event mirrored across several calendars then appears once per calendar; scope to a single calendar to get a clean, duplicate-free list. start: Absolute-mode start date, "YYYY-MM-DD". end: Absolute-mode end date, "YYYY-MM-DD" (inclusive). days_back: Relative-mode window size in days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calendar | No | ||
| start | No | ||
| end | No | ||
| days_back | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |