通过托管 OAuth 代理访问 Google Calendar API,读写日程与事件。
编程
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: Install | Step 2: Pair Account | Step 3: Connect Google Calendar |
|---|---|---|
| Install | Pair | App-specific connection GIF coming soon |
| Run the install command in OpenClaw | Sign in and approve the device | Open 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
- Install the ClawLink plugin (see Install above).
- Pair the plugin with
clawlink_begin_pairingif it is not configured yet. - Open https://claw-link.dev/dashboard?add=google-calendar and connect Google Calendar.
- Call
clawlink_list_integrationsto 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:
- Direct the user to https://claw-link.dev/dashboard?add=google-calendar
- After they confirm, call
clawlink_list_integrationsto verify - 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
| Tool | Description | Mode |
|---|---|---|
googlecalendar_list_calendars | List all calendars in the user's calendar list | Read |
googlecalendar_get_calendar | Get a specific calendar's metadata | Read |
googlecalendar_duplicate_calendar | Create a new empty calendar | Write |
googlecalendar_patch_calendar | Update calendar title, description, timezone | Write |
googlecalendar_calendars_delete | Delete a secondary calendar | Write |
googlecalendar_clear_calendar | Delete all events from a calendar | Write |
Events
| Tool | Description | Mode |
|---|---|---|
googlecalendar_events_list | List events on a calendar with time filtering | Read |
googlecalendar_events_list_all_calendars | List events across all calendars | Read |
googlecalendar_events_get | Get a specific event by ID | Read |
googlecalendar_find_event | Search events by text query and time range | Read |
googlecalendar_create_event | Create a new calendar event | Write |
googlecalendar_update_event | Full update of an existing event | Write |
googlecalendar_patch_event | Partial update of event fields | Write |
googlecalendar_delete_event | Delete an event by ID | Write |
googlecalendar_events_move | Move an event to another calendar | Write |
googlecalendar_events_instances | Get instances of a recurring event | Read |
Scheduling
| Tool | Description | Mode |
|---|---|---|
googlecalendar_find_free_slots | Find free/busy time slots across calendars | Read |
googlecalendar_get_current_date_time | Get current date and time in a timezone | Read |
googlecalendar_quick_add | Parse natural language to create a simple event | Write |
Attendees
| Tool | Description | Mode |
|---|---|---|
googlecalendar_remove_attendee | Remove an attendee from an event | Write |
Availability
| Tool | Description | Mode |
|---|---|---|
googlecalendar_freebusy_query | Get free/busy info for a list of calendars | Read |
Access Control
| Tool | Description | Mode |
|---|---|---|
googlecalendar_acl_list | List access control rules for a calendar | Read |
googlecalendar_acl_insert | Create an ACL rule (share calendar) | Write |
googlecalendar_acl_delete | Delete an ACL rule | Write |
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
- Call
clawlink_list_integrationsto confirm Google Calendar is connected. - Call
clawlink_list_tools --integration google-calendarto see the live catalog. - Treat the returned list as the source of truth. Do not guess or assume what tools exist.
- If the user describes a capability but the exact tool is unclear, call
clawlink_search_toolswith a short query and integrationgoogle-calendar. - 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 │
└─────────────────────────────────────────────────────────────┘
- For unfamiliar tools, ambiguous requests, or any write action, call
clawlink_describe_toolfirst. - Use the returned guidance, schema,
whenToUse,askBefore,safeDefaults,examples, andfollowupsto shape the call. - Prefer read, list, search, and availability operations before writes.
- For event changes or other high-impact actions, call
clawlink_preview_toolfirst, then confirm with the user. - Execute with
clawlink_call_tool. Pass confirmation only after the preview matches the user's intent. - 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
Zare 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_slotsto detect overlaps.
Error Handling
| Status / Error | Meaning |
|---|---|
| Tool not found | The tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration google-calendar. |
| Missing connection | Google Calendar is not connected. Direct the user to https://claw-link.dev/dashboard?add=google-calendar. |
404 Not Found | Calendar or event does not exist. Verify the calendar_id and event_id. |
403 Forbidden | Insufficient permissions to access or modify the calendar. |
400 Bad Request | Invalid datetime format or timezone. Use ISO 8601 with timezone offset. |
| Write rejected | User did not confirm a write action. Always confirm before executing event creates, updates, moves, or deletes. |
Troubleshooting: Tools Not Visible
- Check that the ClawLink plugin is installed:
openclaw plugins list - If the plugin is installed but tools are missing, tell the user to send
/newas a standalone message to reload the catalog. - If a fresh chat does not help, run:
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json openclaw gateway restart - After restart, tell the user to send
/newagain and retry.
Troubleshooting: Invalid Tool Call
- Ensure the integration slug is exactly
google-calendar. - Use
clawlink_describe_toolto verify parameter names and types before calling. - For write operations, always call
clawlink_preview_toolfirst.
Resources
- Google Calendar API Overview
- Google Calendar API Reference
- Event Resource
- ClawLink
- ClawLink Docs
- ClawLink Verification
Related Skills
- Gmail — For email management alongside scheduling
- Google Meet — For video conferencing
Powered by ClawLink — an integration hub for OpenClaw
ClawLink Logo
相关技能
从 Gmail 邮件中提取日程事件,经过你确认后写入 Google Calendar。
Design Gmail, Drive, Sheets, and Calendar automations with scope-aware plans. Use for repeatable daily task automation with explicit OAuth scopes and audit-r...
根据昨晚睡眠质量自动切换语气与详略,生成一份因人而异的晨间简报。
获得基于当前价格、签证、天气与当地活动调研的逐日行程方案。
通过托管 OAuth 连接 Google Tasks,统一 API 完成任务列表与任务的读写管理。