先看看示例
作者提供的示例,实际效果取决于你的输入和使用工具。
输入
为 2025-01-20 起每周一至周五 9:00-11:00(America/New_York)创建名为 Focus Time 的重复事件,并标记为忙碌。
输出
预期交付:Google Calendar 中的重复事件,以及通过议程命令查看的忙碌状态确认。(编辑说明,非实际运行结果)
方法说明
---
name: recipe-block-focus-time
description: "Create recurring focus time blocks on Google Calendar to protect deep work hours."
metadata:
version: 0.22.5
openclaw:
category: "recipe"
domain: "scheduling"
requires:
bins:
- gws
skills:
- gws-calendar
---
# Block Focus Time on Google Calendar
> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-calendar`
Create recurring focus time blocks on Google Calendar to protect deep work hours.
## Steps
1. Create recurring focus block: `gws calendar events insert --params '{"calendarId": "primary"}' --json '{"summary": "Focus Time", "description": "Protected deep work block", "start": {"dateTime": "2025-01-20T09:00:00", "timeZone": "America/New_York"}, "end": {"dateTime": "2025-01-20T11:00:00", "timeZone": "America/New_York"}, "recurrence": ["RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR"], "transparency": "opaque"}'`
2. Verify it shows as busy: `gws calendar +agenda`