Overview
Thegws calendar +insert helper command simplifies creating calendar events by providing a streamlined interface to the Calendar API’s events.insert method.
Command Syntax
Parameters
Event title/summary
Start time in ISO 8601 format (RFC3339), e.g.,
2026-03-15T10:00:00-07:00End time in ISO 8601 format (RFC3339), e.g.,
2026-03-15T11:00:00-07:00Calendar ID to create the event in. Defaults to the user’s primary calendar
Event location (e.g., “Room 101” or “https://meet.google.com/abc-def-ghi”)
Event description/body text
Attendee email address. Can be specified multiple times to invite multiple people
Examples
Basic event
Create a 30-minute event:Event with location and description
Event with attendees
Invite multiple attendees:Event in specific calendar
All-day event
For all-day events, use midnight times:Output Format
Returns the created event details:Time Format
Use RFC3339 format for times:- With timezone offset:
2026-03-15T09:00:00-07:00(Pacific) - UTC:
2026-03-15T16:00:00Z - With timezone name:
2026-03-15T09:00:00-07:00
Getting the current time in correct format
How It Works
-
Event Body Construction: Builds a JSON object with:
summary: Event titlestart:{"dateTime": "..."}end:{"dateTime": "..."}- Optional:
location,description,attendeesarray
-
API Call: Executes
calendar.events.insertwith:- Path parameter:
calendarId(defaults to “primary”) - Request body: Event object
- Path parameter:
-
Authentication: Uses OAuth2 with
calendarscope
Limitations
This helper is optimized for simple event creation. For advanced features, use the raw Calendar API:- Recurring events: Use
recurrencefield with RRULE - Google Meet links: Use
conferenceDatawithcreateRequest - Reminders: Use
remindersfield - Color coding: Use
colorIdfield - Visibility: Use
visibilityfield (public/private)
Example with raw API
Related
- gws-calendar-insert skill — AI agent integration
- calendar +agenda — View upcoming events
- Calendar API documentation