编程

Google Calendar

通过 OAuth 认证调用 Google 日历 REST 接口,读写日程与可用时间。

它能做什么

该技能通过 OAuth 连接 Google Calendar,提供列日历、列事件、按文本搜索、查询忙闲、创建/修改/移动/删除事件等工具。读取操作直接返回数据,写入操作必须在用户确认后才会执行。鉴权与令牌存储由托管的 ClawLink 服务处理,聊天中无需配置 Google API 密钥。

什么时候用它

  • 列出某天的日程或在多个日历中搜索事件
  • 在单个或多个日历之间查找空闲时段
  • 创建、更新、删除日程并处理参会人
  • 获取带时区的当前时间以辅助安排会议

技能文档

Google Calendar

Google Calendar

Access Google Calendar via the Google Calendar API with OAuth authentication. Check calendars, find free time, schedule meetings, and update events.

This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure Google Calendar API access yourself.

Setup in 3 Steps

Step 1: InstallStep 2: Pair AccountStep 3: Connect Google Calendar
InstallPairApp-specific connection GIF coming soon
Run the install command in OpenClawSign in and approve the deviceOpen the dashboard and connect Google Calendar

How It Works

┌─────────────────┐     ┌──────────────┐     ┌──────────────────┐
│   OpenClaw      │────▶│   ClawLink   │────▶│ Google Calendar  │
│   (User Chat)   │     │   (OAuth)    │     │   API (REST)     │
└─────────────────┘     └──────────────┘     └──────────────────┘
         │                       │                       │
         │  1. Install Plugin    │                       │
         │  2. Pair Device       │                       │
         │  3. Connect Google Calendar                    │
         │                       │  4. Secure Token      │
         │                       │  5. Proxy Requests    │
         │                       │                       │
         ▼                       ▼                       ▼
   ┌──────────┐           ┌──────────┐           ┌──────────┐
   │  SKILL   │           │ Dashboard│           │ Calendar │
   │  File    │           │ Auth     │           │ Events   │
   └──────────┘           └──────────┘           └──────────┘

Install

Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.

openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart

Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for Google Calendar again."

Quick Start

# List calendars
clawlink_call_tool --tool "googlecalendar_list_calendars" --params '{}'

# Get current date/time for timezone-aware scheduling
clawlink_call_tool --tool "googlecalendar_get_current_date_time" --params '{"timezone": "America/New_York"}'

# List events for a specific day
clawlink_call_tool --tool "googlecalendar_events_list" --params '{"calendar_id": "primary", "time_min": "2025-01-15T00:00:00Z", "time_max": "2025-01-16T00:00:00Z"}'

# Find free time slots
clawlink_call_tool --tool "googlecalendar_find_free_slots" --params '{"time_min": "2025-01-15T09:00:00Z", "time_max": "2025-01-15T18:00:00Z", "calendar_ids": ["primary"], "meeting_duration_minutes": 60}'

Authentication

All Google Calendar tool calls are authenticated automatically by ClawLink using the user's connected Google account.

No API key is required in chat. ClawLink stores the OAuth token securely and injects it into every Google Calendar API request on the user's behalf.

Getting Connected

  1. Install the ClawLink plugin (see Install above).
  2. Pair the plugin with clawlink_begin_pairing if it is not configured yet.
  3. Open https://claw-link.dev/dashboard?add=google-calendar and connect Google Calendar.
  4. Call clawlink_list_integrations to verify the connection is active.

Connection Management

List Connections

clawlink_list_integrations

Response: Returns all connected integrations. Look for google-calendar in the list.

Verify Connection

clawlink_list_tools --integration google-calendar

Response: Returns the live tool catalog for Google Calendar.

Reconnect

If Google Calendar tools are missing or the connection shows an error:

  1. Direct the user to https://claw-link.dev/dashboard?add=google-calendar
  2. After they confirm, call clawlink_list_integrations to verify
  3. Then call clawlink_list_tools --integration google-calendar

Security & Permissions

  • Access is scoped to calendars accessible to the connected Google account.
  • All write operations require explicit user confirmation. Before executing any event create, update, move, or delete, confirm the intended effect with the user.
  • Destructive actions (deleting events, clearing calendars) are marked as high-impact and must be confirmed.
  • Moves and deletions of events with attendees affect other people's calendars — treat these as especially sensitive.

Tool Reference

Calendars

ToolDescriptionMode
googlecalendar_list_calendarsList all calendars in the user's calendar listRead
googlecalendar_get_calendarGet a specific calendar's metadataRead
googlecalendar_duplicate_calendarCreate a new empty calendarWrite
googlecalendar_patch_calendarUpdate calendar title, description, timezoneWrite
googlecalendar_calendars_deleteDelete a secondary calendarWrite
googlecalendar_clear_calendarDelete all events from a calendarWrite

Events

ToolDescriptionMode
googlecalendar_events_listList events on a calendar with time filteringRead
googlecalendar_events_list_all_calendarsList events across all calendarsRead
googlecalendar_events_getGet a specific event by IDRead
googlecalendar_find_eventSearch events by text query and time rangeRead
googlecalendar_create_eventCreate a new calendar eventWrite
googlecalendar_update_eventFull update of an existing eventWrite
googlecalendar_patch_eventPartial update of event fieldsWrite
googlecalendar_delete_eventDelete an event by IDWrite
googlecalendar_events_moveMove an event to another calendarWrite
googlecalendar_events_instancesGet instances of a recurring eventRead

Scheduling

ToolDescriptionMode
googlecalendar_find_free_slotsFind free/busy time slots across calendarsRead
googlecalendar_get_current_date_timeGet current date and time in a timezoneRead
googlecalendar_quick_addParse natural language to create a simple eventWrite

Attendees

ToolDescriptionMode
googlecalendar_remove_attendeeRemove an attendee from an eventWrite

Availability

ToolDescriptionMode
googlecalendar_freebusy_queryGet free/busy info for a list of calendarsRead

Access Control

ToolDescriptionMode
googlecalendar_acl_listList access control rules for a calendarRead
googlecalendar_acl_insertCreate an ACL rule (share calendar)Write
googlecalendar_acl_deleteDelete an ACL ruleWrite

Code Examples

List today's events

clawlink_call_tool --tool "googlecalendar_events_list" \
  --params '{
    "calendar_id": "primary",
    "time_min": "2025-01-15T00:00:00-05:00",
    "time_max": "2025-01-15T23:59:59-05:00",
    "single_events": true,
    "order_by": "startTime"
  }'

Find free time for a meeting

clawlink_call_tool --tool "googlecalendar_find_free_slots" \
  --params '{
    "time_min": "2025-01-15T09:00:00-05:00",
    "time_max": "2025-01-15T17:00:00-05:00",
    "calendar_ids": ["primary"],
    "meeting_duration_minutes": 60
  }'

Create a meeting event

clawlink_call_tool --tool "googlecalendar_create_event" \
  --params '{
    "calendar_id": "primary",
    "summary": "Team Sync",
    "description": "Weekly team synchronization meeting",
    "start_datetime": "2025-01-15T10:00:00",
    "event_duration_minutes": 60,
    "timezone": "America/New_York",
    "attendees": ["[email protected]"]
  }'

Update an event

clawlink_call_tool --tool "googlecalendar_patch_event" \
  --params '{
    "calendar_id": "primary",
    "event_id": "abc123xyz",
    "summary": "Updated Team Sync",
    "start_datetime": "2025-01-15T11:00:00",
    "event_duration_minutes": 90
  }'

Discovery Workflow

  1. Call clawlink_list_integrations to confirm Google Calendar is connected.
  2. Call clawlink_list_tools --integration google-calendar to see the live catalog.
  3. Treat the returned list as the source of truth. Do not guess or assume what tools exist.
  4. If the user describes a capability but the exact tool is unclear, call clawlink_search_tools with a short query and integration google-calendar.
  5. If no Google Calendar tools appear, direct the user to https://claw-link.dev/dashboard?add=google-calendar.

Execution Workflow

┌─────────────────────────────────────────────────────────────┐
│  READ OPERATIONS (Safe)                                     │
│  list → get → find → search → describe → call               │
│                                                             │
│  Example: List calendars → Find free slots → Show options   │
└─────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────┐
│  WRITE OPERATIONS (Require Confirmation)                    │
│  list → get → describe → preview → confirm → call           │
│                                                             │
│  Example: Preview event creation → User confirms            │
│           → Execute create                                   │
└─────────────────────────────────────────────────────────────┘
  1. For unfamiliar tools, ambiguous requests, or any write action, call clawlink_describe_tool first.
  2. Use the returned guidance, schema, whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.
  3. Prefer read, list, search, and availability operations before writes.
  4. For event changes or other high-impact actions, call clawlink_preview_tool first, then confirm with the user.
  5. Execute with clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.
  6. If the tool call fails, report the real error. Do not invent results or restate the failure as a missing capability unless the live catalog supports that conclusion.

Notes

  • Timezone-aware scheduling: Always use IANA timezone identifiers (e.g., America/New_York, Europe/London) not abbreviations.
  • UTC timestamps ending in Z are interpreted in UTC regardless of calendar timezone — use timezone-offset timestamps for local date queries.
  • Primary calendar is referenced as calendar_id: "primary".
  • Events with attendees automatically send invitations via Google Calendar.
  • Deleting or moving events with attendees affects their calendars too — always confirm.
  • No conflict checking is performed before event creation — use find_free_slots to detect overlaps.

Error Handling

Status / ErrorMeaning
Tool not foundThe tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration google-calendar.
Missing connectionGoogle Calendar is not connected. Direct the user to https://claw-link.dev/dashboard?add=google-calendar.
404 Not FoundCalendar or event does not exist. Verify the calendar_id and event_id.
403 ForbiddenInsufficient permissions to access or modify the calendar.
400 Bad RequestInvalid datetime format or timezone. Use ISO 8601 with timezone offset.
Write rejectedUser did not confirm a write action. Always confirm before executing event creates, updates, moves, or deletes.

Troubleshooting: Tools Not Visible

  1. Check that the ClawLink plugin is installed:
    openclaw plugins list
    
  2. If the plugin is installed but tools are missing, tell the user to send /new as a standalone message to reload the catalog.
  3. If a fresh chat does not help, run:
    openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
    openclaw gateway restart
    
  4. After restart, tell the user to send /new again and retry.

Troubleshooting: Invalid Tool Call

  1. Ensure the integration slug is exactly google-calendar.
  2. Use clawlink_describe_tool to verify parameter names and types before calling.
  3. For write operations, always call clawlink_preview_tool first.

Resources

  • Gmail — For email management alongside scheduling
  • Google Meet — For video conferencing

Powered by ClawLink — an integration hub for OpenClaw

ClawLink Logo

相关技能

通过托管 OAuth 代理访问 Google Calendar API,读写日程与事件。

345 次安装21 星标

从 Gmail 邮件中提取日程事件,经过你确认后写入 Google Calendar。

236 次安装5 星标

Design Gmail, Drive, Sheets, and Calendar automations with scope-aware plans. Use for repeatable daily task automation with explicit OAuth scopes and audit-r...

55 次安装1 星标

根据昨晚睡眠质量自动切换语气与详略,生成一份因人而异的晨间简报。

87 次安装11 星标

获得基于当前价格、签证、天气与当地活动调研的逐日行程方案。

59 次安装1 星标

通过托管 OAuth 连接 Google Tasks,统一 API 完成任务列表与任务的读写管理。

252 次安装10 星标