gog by naoterumaker/openclaw-gog-skills
npx skills add https://github.com/naoterumaker/openclaw-gog-skills --skill gog操作 Google 服务的 CLI 工具。
账户: your-account@gmail.com (default)
执行路径: gog
exec 工具中执行时,指定 timeout: 60(等待 API 响应)--max 限制数量# 基本搜索
gog gmail search "搜索查询"
gog gmail search "from:someone@example.com"
gog gmail search "is:unread" --max 10
gog gmail search "subject:发票 after:2026/01/01"
# 获取所有页面
gog gmail search "label:重要" --all
搜索查询示例:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
is:unread - 未读from:xxx - 发件人to:xxx - 收件人subject:xxx - 主题has:attachment - 有附件after:YYYY/MM/DD - 日期之后label:xxx - 标签# 获取邮件
gog gmail get <messageId>
gog gmail get <messageId> --body # 包含正文
# 下载附件
gog gmail attachment <messageId> <attachmentId>
# 基本发送
gog gmail send --to "recipient@example.com" --subject "主题" --body "正文"
# 带 CC/BCC
gog gmail send --to "a@b.com" --cc "c@d.com" --bcc "e@f.com" --subject "主题" --body "正文"
# 带附件
gog gmail send --to "a@b.com" --subject "主题" --body "正文" --attach "./file.pdf"
# 回复到线程
gog gmail send --thread-id <threadId> --to "a@b.com" --subject "Re: 主题" --body "回复正文"
# 回复所有人
gog gmail send --reply-to-message-id <messageId> --reply-all --subject "Re: 主题" --body "回复"
发送选项:
| 选项 | 说明 |
|---|---|
--to | 收件人(逗号分隔) |
--cc | CC |
--bcc | BCC |
--subject | 主题 |
--body | 正文(纯文本) |
--body-html | HTML 正文 |
--body-file | 正文文件 |
--attach | 附件文件(可多个) |
--thread-id | 线程 ID(回复时) |
--reply-to-message-id | 回复源邮件 ID |
--reply-all | 回复所有人 |
# 标签列表
gog gmail labels list
# 添加/删除标签
gog gmail thread modify <threadId> --add-labels "INBOX" --remove-labels "UNREAD"
# 未来日程(默认7天)
gog calendar events
gog calendar events --max 20
# 指定期间
gog calendar events --from "2026-02-01" --to "2026-02-28"
# 特定日历
gog calendar events primary
gog calendar events "user@example.com"
# 普通日程
gog calendar create primary --summary "会议" --from "2026-02-15T10:00:00+09:00" --to "2026-02-15T11:00:00+09:00"
# 全天日程
gog calendar create primary --summary "休假" --from "2026-02-20" --to "2026-02-21" --all-day
# 带地点和参与者
gog calendar create primary --summary "会议" --from "2026-02-15T14:00:00+09:00" --to "2026-02-15T15:00:00+09:00" \
--location "会议室A" --attendees "a@b.com,c@d.com"
# 带 Google Meet
gog calendar create primary --summary "在线会议" --from "2026-02-15T10:00:00+09:00" --to "2026-02-15T11:00:00+09:00" --with-meet
# 带提醒
gog calendar create primary --summary "会议" --from "2026-02-15T10:00:00+09:00" --to "2026-02-15T11:00:00+09:00" --reminder "popup:30m" --reminder "email:1d"
创建选项:
| 选项 | 说明 |
|---|---|
--summary | 标题 |
--from | 开始时间(RFC3339) |
--to | 结束时间(RFC3339) |
--all-day | 全天日程 |
--location | 地点 |
--description | 描述 |
--attendees | 参与者(逗号分隔) |
--with-meet | 创建 Google Meet |
--reminder | 提醒(popup:30m, email:1d 等) |
--rrule | 重复规则 |
# 更新
gog calendar update primary <eventId> --summary "新标题"
# 删除
gog calendar delete primary <eventId>
gog calendar search "会议"
gog calendar calendars
# 根文件夹
gog drive ls
# 特定文件夹
gog drive ls --parent <folderId>
# 数量限制
gog drive ls --max 20
gog drive search "报告"
gog drive search "mimeType='application/pdf'"
# 下载
gog drive download <fileId>
gog drive download <fileId> --output "./local-file.pdf"
# 上传
gog drive upload "./local-file.pdf"
gog drive upload "./file.pdf" --parent <folderId>
# 创建文件夹
gog drive mkdir "新文件夹"
gog drive mkdir "子文件夹" --parent <parentFolderId>
# 移动
gog drive move <fileId> --parent <newFolderId>
# 重命名
gog drive rename <fileId> "新名称"
gog drive copy <fileId> "副本名称"
gog drive copy <fileId> "副本名称" --parent <folderId>
# 共享
gog drive share <fileId> --email "user@example.com" --role reader
gog drive share <fileId> --email "user@example.com" --role writer
# 权限列表
gog drive permissions <fileId>
# 取消共享
gog drive unshare <fileId> <permissionId>
gog sheets get <spreadsheetId> "工作表1!A1:C10"
gog sheets get <spreadsheetId> "工作表1!A:A" # 整列
# 管道分隔多个单元格
gog sheets update <spreadsheetId> "工作表1!A1:C1" "值1|值2|值3"
# JSON 格式(包含逗号、管道的数据)
gog sheets update <spreadsheetId> "工作表1!A1:C2" --values-json '[["名称","金额"],["田中","500,000"]]'
gog sheets append <spreadsheetId> "工作表1" "值1|值2|值3"
gog sheets clear <spreadsheetId> "工作表1!A1:C10"
FMT='{"backgroundColor":{"red":0.2,"green":0.4,"blue":0.7},"textFormat":{"bold":true}}'
gog sheets format <spreadsheetId> "工作表1!A1:C1" --format-json "$FMT"
# 新建
gog sheets create "新电子表格"
gog sheets create "标题" --sheets "工作表1,工作表2,工作表3"
# 复制
gog sheets copy <spreadsheetId> "副本名称"
gog sheets metadata <spreadsheetId>
gog sheets export <spreadsheetId> --format csv
gog sheets export <spreadsheetId> --format xlsx
gog contacts list
gog contacts list --max 50
gog contacts search "田中"
gog contacts get <resourceName>
gog contacts create --name "山田太郎" --email "yamada@example.com" --phone "090-1234-5678"
gog contacts update <resourceName> --name "新名称"
gog contacts delete <resourceName>
gog tasks lists list # 列表一览
# 列表
gog tasks list <tasklistId>
# 创建
gog tasks add <tasklistId> --title "待办事项"
gog tasks add <tasklistId> --title "任务" --notes "详细备注" --due "2026-02-20"
# 完成
gog tasks done <tasklistId> <taskId>
# 恢复为未完成
gog tasks undo <tasklistId> <taskId>
# 更新
gog tasks update <tasklistId> <taskId> --title "新标题"
# 删除
gog tasks delete <tasklistId> <taskId>
# 清除已完成
gog tasks clear <tasklistId>
| 选项 | 说明 |
|---|---|
--json | JSON 输出 |
--plain | TSV 输出 |
-a, --account | 指定账户 |
--max | 最大数量 |
--force | 跳过确认 |
-n, --dry-run | 仅预览不执行 |
https://docs.google.com/spreadsheets/d/<ID>/edit 获取https://drive.google.com/file/d/<ID>/view 获取primary 表示主日历,或共享日历的邮件地址gog tasks lists list 确认Weekly Installs
399
Repository
GitHub Stars
3
First Seen
Feb 17, 2026
Security Audits
Installed on
codex395
gemini-cli394
cline394
opencode394
cursor394
kimi-cli394
Google サービスを操作するCLIツール。
アカウント: your-account@gmail.com (default)
実行パス: gog
exec ツールで実行時、timeout: 60 を指定(API応答待ちのため)--max で制限# 基本検索
gog gmail search "検索クエリ"
gog gmail search "from:someone@example.com"
gog gmail search "is:unread" --max 10
gog gmail search "subject:請求書 after:2026/01/01"
# 全ページ取得
gog gmail search "label:重要" --all
検索クエリ例:
is:unread - 未読from:xxx - 送信者to:xxx - 宛先subject:xxx - 件名has:attachment - 添付ありafter:YYYY/MM/DD - 日付以降label:xxx - ラベル# メッセージ取得
gog gmail get <messageId>
gog gmail get <messageId> --body # 本文込み
# 添付ファイルダウンロード
gog gmail attachment <messageId> <attachmentId>
# 基本送信
gog gmail send --to "recipient@example.com" --subject "件名" --body "本文"
# CC/BCC付き
gog gmail send --to "a@b.com" --cc "c@d.com" --bcc "e@f.com" --subject "件名" --body "本文"
# 添付ファイル付き
gog gmail send --to "a@b.com" --subject "件名" --body "本文" --attach "./file.pdf"
# スレッドに返信
gog gmail send --thread-id <threadId> --to "a@b.com" --subject "Re: 件名" --body "返信本文"
# 全員に返信
gog gmail send --reply-to-message-id <messageId> --reply-all --subject "Re: 件名" --body "返信"
送信オプション:
| オプション | 説明 |
|---|---|
--to | 宛先(カンマ区切り) |
--cc | CC |
--bcc | BCC |
--subject | 件名 |
--body | 本文(プレーンテキスト) |
--body-html | HTML本文 |
--body-file |
# ラベル一覧
gog gmail labels list
# ラベル追加/削除
gog gmail thread modify <threadId> --add-labels "INBOX" --remove-labels "UNREAD"
# 今後の予定(デフォルト7日間)
gog calendar events
gog calendar events --max 20
# 期間指定
gog calendar events --from "2026-02-01" --to "2026-02-28"
# 特定カレンダー
gog calendar events primary
gog calendar events "user@example.com"
# 通常の予定
gog calendar create primary --summary "ミーティング" --from "2026-02-15T10:00:00+09:00" --to "2026-02-15T11:00:00+09:00"
# 終日予定
gog calendar create primary --summary "休暇" --from "2026-02-20" --to "2026-02-21" --all-day
# 場所・参加者付き
gog calendar create primary --summary "会議" --from "2026-02-15T14:00:00+09:00" --to "2026-02-15T15:00:00+09:00" \
--location "会議室A" --attendees "a@b.com,c@d.com"
# Google Meet付き
gog calendar create primary --summary "オンラインMTG" --from "2026-02-15T10:00:00+09:00" --to "2026-02-15T11:00:00+09:00" --with-meet
# リマインダー付き
gog calendar create primary --summary "MTG" --from "2026-02-15T10:00:00+09:00" --to "2026-02-15T11:00:00+09:00" --reminder "popup:30m" --reminder "email:1d"
作成オプション:
| オプション | 説明 |
|---|---|
--summary | タイトル |
--from | 開始時刻(RFC3339) |
--to | 終了時刻(RFC3339) |
--all-day | 終日予定 |
--location | 場所 |
--description | 説明 |
--attendees |
# 更新
gog calendar update primary <eventId> --summary "新タイトル"
# 削除
gog calendar delete primary <eventId>
gog calendar search "ミーティング"
gog calendar calendars
# ルートフォルダ
gog drive ls
# 特定フォルダ
gog drive ls --parent <folderId>
# 件数制限
gog drive ls --max 20
gog drive search "レポート"
gog drive search "mimeType='application/pdf'"
# ダウンロード
gog drive download <fileId>
gog drive download <fileId> --output "./local-file.pdf"
# アップロード
gog drive upload "./local-file.pdf"
gog drive upload "./file.pdf" --parent <folderId>
# フォルダ作成
gog drive mkdir "新フォルダ"
gog drive mkdir "サブフォルダ" --parent <parentFolderId>
# 移動
gog drive move <fileId> --parent <newFolderId>
# リネーム
gog drive rename <fileId> "新しい名前"
gog drive copy <fileId> "コピー名"
gog drive copy <fileId> "コピー名" --parent <folderId>
# 共有
gog drive share <fileId> --email "user@example.com" --role reader
gog drive share <fileId> --email "user@example.com" --role writer
# 権限一覧
gog drive permissions <fileId>
# 共有解除
gog drive unshare <fileId> <permissionId>
gog sheets get <spreadsheetId> "シート1!A1:C10"
gog sheets get <spreadsheetId> "シート1!A:A" # 列全体
# パイプ区切りで複数セル
gog sheets update <spreadsheetId> "シート1!A1:C1" "値1|値2|値3"
# JSON形式(カンマ・パイプを含むデータ)
gog sheets update <spreadsheetId> "シート1!A1:C2" --values-json '[["名前","金額"],["田中","500,000"]]'
gog sheets append <spreadsheetId> "シート1" "値1|値2|値3"
gog sheets clear <spreadsheetId> "シート1!A1:C10"
FMT='{"backgroundColor":{"red":0.2,"green":0.4,"blue":0.7},"textFormat":{"bold":true}}'
gog sheets format <spreadsheetId> "シート1!A1:C1" --format-json "$FMT"
# 新規作成
gog sheets create "新しいスプレッドシート"
gog sheets create "タイトル" --sheets "シート1,シート2,シート3"
# コピー
gog sheets copy <spreadsheetId> "コピー名"
gog sheets metadata <spreadsheetId>
gog sheets export <spreadsheetId> --format csv
gog sheets export <spreadsheetId> --format xlsx
gog contacts list
gog contacts list --max 50
gog contacts search "田中"
gog contacts get <resourceName>
gog contacts create --name "山田太郎" --email "yamada@example.com" --phone "090-1234-5678"
gog contacts update <resourceName> --name "新しい名前"
gog contacts delete <resourceName>
gog tasks lists list # リスト一覧
# 一覧
gog tasks list <tasklistId>
# 作成
gog tasks add <tasklistId> --title "やること"
gog tasks add <tasklistId> --title "タスク" --notes "詳細メモ" --due "2026-02-20"
# 完了
gog tasks done <tasklistId> <taskId>
# 未完了に戻す
gog tasks undo <tasklistId> <taskId>
# 更新
gog tasks update <tasklistId> <taskId> --title "新タイトル"
# 削除
gog tasks delete <tasklistId> <taskId>
# 完了済みをクリア
gog tasks clear <tasklistId>
| オプション | 説明 |
|---|---|
--json | JSON出力 |
--plain | TSV出力 |
-a, --account | アカウント指定 |
--max | 最大件数 |
--force | 確認スキップ |
-n, --dry-run | 実行せずプレビュー |
https://docs.google.com/spreadsheets/d/<ID>/edit から取得https://drive.google.com/file/d/<ID>/view から取得primary でメインカレンダー、または共有カレンダーのメールアドレスgog tasks lists list で確認Weekly Installs
399
Repository
GitHub Stars
3
First Seen
Feb 17, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykFail
Installed on
codex395
gemini-cli394
cline394
opencode394
cursor394
kimi-cli394
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
66,100 周安装
| 本文ファイル |
--attach | 添付ファイル(複数可) |
--thread-id | スレッドID(返信時) |
--reply-to-message-id | 返信元メッセージID |
--reply-all | 全員に返信 |
| 参加者(カンマ区切り) |
--with-meet | Google Meet作成 |
--reminder | リマインダー(popup:30m, email:1d等) |
--rrule | 繰り返し |