SuperAPI AI 工具集

gmail

通用与其它

查看项目

更新于 10-15 22:09

技能介绍

用途:该技能让 AI 通过 gog CLI(v0.10.0)操作 Gmail,完成搜索、发送、回复、附件下载和标签管理。执行路径为 gog,认证账号为 gog 已认证的账号。

主要能力:搜索支持 is:unread、from:、subject:、has:attachment、filename:pdf、after:、newer_than: 等查询及组合;可获取消息与线程详情、下载附件;发送支持 --to、--cc、--bcc、--subject、--body、--body-html、--body-file、--attach 等;回复支持 --thread-id、--reply-to-message-id、--reply-all;标签操作可列出、添加、删除标签,实现已读与归档;另有 messages、thread、drafts 等命令。

使用方式:用 exec 工具执行时指定 timeout: 60;大量搜索用 --max 限制。示例:gog gmail search "is:unread" --max 10;gog gmail send --to "recipient@example.com" --subject "件名" --body "本文";gog gmail attachment <messageId> <attachmentId> --output "./download.pdf"。输出可用 --json、--plain、--max N、--all。

适用场景:未读检查与回复、按发件人或附件条件检索、带附件发送、批量标签整理、下划线与草稿管理。

限制:长正文建议用 --body-file;注意 shell 转义;大量发送需注意速率限制;回复时件名加「Re: 」。其余细节暂未提供。