跳到正文
TakoAPI
返回技能列表

xferops-gog

由 parker-xferops 提供

Web & Frontend Development
328下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.

描述

该技能的功能

Command-line interface for Google Workspace services including Gmail, Calendar, Drive, Contacts, Sheets, and Docs. Requires a one-time OAuth setup with a Google Cloud client secret. Supports scripting with JSON output and stdin piping.

Replaces fragile browser automation or custom OAuth code with a single binary that covers all major Google Workspace APIs from the terminal.

何时使用

  • Search inbox and read email bodies from a script
  • Create and update calendar events with color coding
  • Read and write Google Sheets data in automation pipelines
  • Download Gmail attachments to local paths
  • Export Google Docs to plain text for processing

示例工作流

输入

User asks: find emails from ryanair.com in the last 7 days and save any attachments

智能体
  1. 1

    Run gog gmail messages search 'in:inbox from:ryanair.com newer_than:7d' --max 20 --json to list matching messages

  2. 2

    Parse message IDs from the JSON output

  3. 3

    For each message, run gog gmail get <MESSAGE_ID> --json to retrieve attachment metadata

  4. 4

    Run gog gmail attachment <messageId> <attachmentId> --out /tmp/ryanair/ for each attachment found

输出

Attachments saved to /tmp/ryanair/ for all matching emails

前置要求

  • Google Cloud project with OAuth 2.0 client credentials (client_secret.json)
  • Google account with access to the Workspace services you want to use

安装

clawhub install parker-xferops/xferops-gog

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接