ofw_save_calendar_ics
Save an OurFamilyWizard date range as an importable .ics file with parenting-time events, so you can add it to Google, Apple, or Outlook calendars.
Instructions
Save an OurFamilyWizard date range as an iCalendar (.ics) file the user can import into Google, Apple or Outlook calendar — events, all-day events, and each custody period as a "Parenting time" event (OFW's own export leaves the parenting schedule out). Same filters as ofw_list_events. On a hosted connector the file is uploaded and you get a private download link that expires (default 1 hour); locally it is written inside the attachments directory (OFW_ATTACHMENTS_DIR, default ~/Downloads/ofw-mcp) and you get its path. Never overwrites an existing file. The file is a snapshot: it does not update when OFW changes, and re-importing a later export updates events in place (stable UIDs).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | No | Keep only these: EVENT, CONNECTED_EVENT (from a subscribed outside calendar), TRANSITION (custody handoffs; in .ics they become "Parenting time" periods), SCHEDULE (the per-day custody grid, JSON only). Default: everything | |
| saveTo | No | Local installs only: path or directory (trailing /) INSIDE the attachments directory; relative paths resolve against it. Default: <attachments dir>/ofw-calendar-<start>_<end>-<time>.ics. Ignored on a hosted connector | |
| endDate | Yes | End date YYYY-MM-DD | |
| timeZone | No | IANA zone of the user's OFW account, e.g. America/Chicago. OFW reports wall-clock times with no zone; this is the zone they are read and shown in. Default: the server's DISPLAY_TZ | |
| startDate | Yes | Start date YYYY-MM-DD | |
| linkMinutes | No | Hosted connector only: how long the download link works, in minutes (default 60, max 1440) |