Skip to main content
The Google Calendar VFS exposes every calendar the account can see as a directory of date buckets, with one .gcal.json file per event. For Google OAuth setup, see Google Workspace Setup. For the TypeScript SDK, see Google Calendar (TypeScript).

Config

Fields marked secret are redacted in snapshots.

VFS.md

The VFS.md an agent reads with Google Calendar mounted at /<path>.

Virtual Filesystem

VFS Layout

/<path>
Reading the tree:
  • ls /<path>/ lists the calendars. The primary one is always spelled primary; every other directory ends in __<calendarId>.
  • ls /<path>/primary/ lists buckets with events from all available history through today +90 days unless end_time is configured. start_time/end_time restrict this mount, including direct paths, date globs and event reads. A date glob such as ls /<path>/primary/2027-03-* selects its own listing range within that scope, beyond the default future horizon.
  • A bucket is one local day, named by its date. A well-formed date inside the configured scope is a directory even when it holds no events. Dates outside the scope are absent.
  • A file name is <eventId>__<HHMM-HHMM>_<Title>.gcal.json. The times are clamped to that day, so an event running through it reads 0000-2400. A multi-day event appears under every day it covers.
  • cat an event for the unmodified Calendar API payload, including attendees, description, location and the original start and end with offsets.
  • calendar.json carries the calendar’s accessRole and, in bucketTimeZone, the zone the buckets are cut in. That zone is mount-wide, so every calendar’s 2026-08-11/ covers the same hours.
  • On a calendar shared as free/busy only, Google returns no titles at all, so events render as busy.
Acting on it:
  • On a write path, rm an event file to delete that event for every attendee.
  • Everything else goes through the gws calendar CLI, which takes the ids the tree renders.
  • A written event must carry an explicit UTC offset or timeZone; an ambiguous local time is not interpreted for you.
Time scope: start_time=unbounded (inclusive), end_time=unbounded (exclusive). Explicit paths and globs cannot escape this scope.

Supported Unix Commands for VFS

Unix commands work on each path as on a local filesystem, as far as the path supports them:

Limitations of Unix Commands for VFS

Where a path differs from a local filesystem:Run man <cmd> or <cmd> --help for one command’s usage.

Write Support

The only write is rm on an event file, on a mount in MountMode.WRITE. It deletes the event on its calendar, for every attendee. The account needs the owner or writer role on that calendar; otherwise rm fails with permission denied. Creating, editing and moving events go through the gws calendar CLI, which takes the calendar and event ids the tree shows.

Example