calendar +insert
PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.
create a new event
Usage
CODEBLOCK0
Flags
| Flag | Required | Default | Description |
|---|
| INLINECODE2 | — | primary | Calendar ID (default: primary) |
| INLINECODE3 |
✓ | — | Event summary/title |
|
--start | ✓ | — | Start time (ISO 8601, e.g., 2024-01-01T10:00:00Z) |
|
--end | ✓ | — | End time (ISO 8601) |
|
--location | — | — | Event location |
|
--description | — | — | Event description/body |
|
--attendee | — | — | Attendee email (can be used multiple times) |
|
--meet | — | — | Add a Google Meet video conference link |
Examples
CODEBLOCK1
Tips
- - Use RFC3339 format for times (e.g. 2026-06-17T09:00:00-07:00).
- The --meet flag automatically adds a Google Meet link to the event.
[!CAUTION]
This is a write command — confirm with the user before executing.
See Also
技能名称: gws-calendar-insert
详细描述:
calendar +insert
前置条件: 阅读 ../gws-shared/SKILL.md 了解认证、全局标志和安全规则。若文件缺失,请运行 gws generate-skills 创建。
创建新事件
用法
bash
gws calendar +insert --summary <文本> --start <时间> --end <时间>
标志
| 标志 | 必填 | 默认值 | 描述 |
|---|
| --calendar | — | primary | 日历 ID(默认:primary) |
| --summary |
✓ | — | 事件摘要/标题 |
| --start | ✓ | — | 开始时间(ISO 8601 格式,例如 2024-01-01T10:00:00Z) |
| --end | ✓ | — | 结束时间(ISO 8601 格式) |
| --location | — | — | 事件地点 |
| --description | — | — | 事件描述/正文 |
| --attendee | — | — | 参与者邮箱(可多次使用) |
| --meet | — | — | 添加 Google Meet 视频会议链接 |
示例
bash
gws calendar +insert --summary 站会 --start 2026-06-17T09:00:00-07:00 --end 2026-06-17T09:30:00-07:00
gws calendar +insert --summary 评审 --start ... --end ... --attendee alice@example.com
gws calendar +insert --summary 会议 --start ... --end ... --meet
提示
- - 使用 RFC3339 格式表示时间(例如 2026-06-17T09:00:00-07:00)。
- --meet 标志会自动为事件添加 Google Meet 链接。
[!CAUTION]
这是一个写入命令——执行前请与用户确认。
另请参阅