Agent Skills
› xuiltul/animaworks
› gmail-tool
gmail-tool
GitHub提供Gmail集成功能,支持通过OAuth2 API读取收件箱、获取邮件正文及创建草稿。适用于查询未读邮件、检索邮件内容或撰写邮件草稿等场景。
Trigger Scenarios
阅读收件箱邮件
获取邮件正文内容
编写或发送邮件草稿
搜索带有特定标签的邮件
Install
npx skills add xuiltul/animaworks --skill gmail-tool -g -y
SKILL.md
Frontmatter
{
"name": "gmail-tool",
"tags": [
"communication",
"gmail",
"email",
"external"
],
"description": "Gmail integration tool for unread checks, reading bodies, and drafts via OAuth2 Gmail API access. Use when: reading inbox mail, fetching message bodies, writing drafts, or searching labeled mail."
}
Gmail Tool
External tool for Gmail operations via OAuth2 API access.
Invocation via Bash
Use Bash with animaworks-tool gmail <subcommand> [args]:
animaworks-tool gmail unread [-n 20]
animaworks-tool gmail read MESSAGE_ID
animaworks-tool gmail draft --to ADDR --subject SUBJ --body BODY [--thread-id TID]
Actions
unread — List unread emails
{"tool_name": "gmail", "action": "unread", "args": {"max_results": 20}}
read_body — Read email body
{"tool_name": "gmail", "action": "read_body", "args": {"message_id": "message ID"}}
draft — Create draft
{"tool_name": "gmail", "action": "draft", "args": {"to": "recipient@example.com", "subject": "Subject", "body": "Body text", "thread_id": "thread ID (optional)"}}
CLI Usage (S/C/D/G-mode)
animaworks-tool gmail unread [-n 20]
animaworks-tool gmail read MESSAGE_ID
animaworks-tool gmail draft --to ADDR --subject SUBJ --body BODY [--thread-id TID]
Notes
- OAuth2 authentication flow required on first use
- credentials.json and token.json must be in ~/.animaworks/
Version History
- 140e43b Current 2026-07-25 09:12


