AgentSkillsCN

gmail-search

在 Gmail 中搜索邮件。“邮件搜索”“查找邮件”“Gmail 搜索”“搜索邮件”“来自○○的邮件”“按主题搜索”等操作均可触发此功能。

SKILL.md
--- frontmatter
name: gmail-search
description: Gmail でメールを検索する。「メール検索」「メールを探して」「Gmail 検索」「メールを検索して」「○○からのメール」「件名で検索」などで起動。
allowed-tools: [Read, Bash]

Gmail Search

Gmail でメールを検索します。Gmail の検索クエリ構文を使用できます。

引数

  • 検索クエリ (必須): Gmail の検索クエリ

オプション

  • --max <number>: 最大取得件数(デフォルト: 20)
  • --include-body: 本文プレビューを含める

実行方法

bash
python plugins/shiiman-google/skills/gmail-list-unread/scripts/google_gmail.py search --query "<query>"

最大件数を指定

bash
python plugins/shiiman-google/skills/gmail-list-unread/scripts/google_gmail.py search --query "<query>" --max 50

本文プレビューを含める

bash
python plugins/shiiman-google/skills/gmail-list-unread/scripts/google_gmail.py search --query "<query>" --include-body

クエリ例

クエリ説明
from:user@example.com送信者で検索
to:user@example.com宛先で検索
subject:会議件名で検索
has:attachment添付ファイル付き
after:2025/01/01日付以降
before:2025/01/31日付以前
is:unread未読
is:starredスター付き
label:importantラベルで検索