agentskit.js
ToolsIntegrations

googleCalendar

Google Calendar API — list events, create events. For scheduling agents + standup prep bots.

import { googleCalendar } from '@agentskit/tools'

const runtime = createRuntime({
  adapter,
  tools: [...googleCalendar({ accessToken: process.env.GCAL_ACCESS_TOKEN! })],
})

Sub-tools

NamePurpose
calendarListEventsList events in a time range (primary or named calendar)
calendarCreateEventCreate an event with attendees + conference link

Bundled: googleCalendar(config).

Config

type GoogleCalendarConfig = {
  accessToken: string
  calendarId?: string       // default 'primary'
  fetch?: typeof fetch
}

Example — standup prep

const runtime = createRuntime({
  adapter,
  tools: [...googleCalendar({ accessToken })],
})

await runtime.run('What meetings do I have today? Summarize with a 1-sentence agenda each.')

Credentials

  • OAuth 2.0 with scope calendar.events (read + write) or calendar.readonly.
  • Refresh tokens managed by your app — tool takes short-lived access tokens.
✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page