360 Secure SkillHub
360 安全技能中心

Gmail Retrieve Email

通过 gog CLI 执行 Gmail 消息获取命令,根据邮件消息 ID 读取邮件头、正文与元数据,并以 JSON 返回。

zvirb
zvirb
热度 51.24
最近更新 2026-05-11 17:45:58
分类:协作依赖:代码执行 / 第三方 API应用场景:工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add gmail-retrieve-email
Metadata
name
Gmail Retrieve Email
description
Atomic node skill to read a specific email via 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 retrieval fails.

Gmail Retrieve Email

This skill allows the agent to retrieve the full contents of a specific email using the native CLI.

Cognitive Directives

WHEN [The contents of a specific email need to be read] THEN [Execute the native terminal command gog gmail messages get <messageId> --json]

Schema Example

{
  "command": "gog gmail messages get msg_id_123 --json"
}

Expected Output

A JSON object containing the email headers, body, and metadata.