360 Secure SkillHub
360 安全技能中心

Gmail Search Emails

该 Skill 是一个原子化 Gmail 搜索节点:根据查询调用 gog 的 gmail search 命令,以 --json 输出匹配邮件的 id、threadId 和 snippet;搜索失败时报告错误。不包含正文读取、发送、回复或附件下载。

zvirb
zvirb
热度 51.41
最近更新 2026-05-11 17:45:58
分类:搜索依赖:第三方 API应用场景:工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gmail-search-emails
Metadata
name
Gmail Search Emails
description
Atomic node skill to search for emails in Gmail using the gog CLI.
os
all
requires
{"bins":["gog"]}

Lean Philosophy (Principles)

  • Kaizen (改善): This skill is an atomic node, broken down into its simplest, smallest component to eliminate waste and ensure perfection.
  • Standardized Work (Hyojun Sagyo): This node represents the most efficient, standardized path for this specific task before automation.
  • Jidoka (自働化): This node includes autonomous defect detection. It relies on the CLI's self-healing loop and will report errors if the search fails.

Gmail Search Emails

This skill allows the agent to search for emails in Gmail using specific queries with the native CLI.

Cognitive Directives

WHEN [Requested to search for an email or find specific communications] THEN [Invoke the gog tool with the argument gmail search "query" --json]

Schema Example

{
  "args": "gmail search \"from:example@gmail.com subject:invoice\" --json"
}

Expected Output

A JSON array containing email headers (id, threadId, snippet) or a "no results found" message.