360 Secure SkillHub
360 安全技能中心

Gmail Draft Update Body

该 Skill 是一个原子节点,只负责更新已有 Gmail 草稿的正文:执行 gog gmail drafts update <draftId> --body "..." --json,检查返回的 JSON 确认正文已更新,若失败或参数出错则最多重试 3 次。不涉及创建草稿、发送邮件或修改其他字段。

zvirb
zvirb
热度 40.86
最近更新 2026-05-11 17:46:16
分类:协作依赖:代码执行 / 第三方 API应用场景:邮件起草

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add gmail-draft-update-body
Metadata
name
Gmail Draft Update Body
description
Atomic node skill to update the body text of an existing Gmail draft.
os
all
requires
{"bins":["gog"]}

Lean Philosophy (Principles)

  • Kaizen (改善): This skill is an atomic node, strictly limited to updating the body of a draft, preventing complex multi-field string constructions.
  • 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.

Gmail Draft Update Body

This skill allows the agent to update the body of an existing Gmail draft using the native CLI.

Cognitive Directives

WHEN [The body of a Gmail draft needs to be set or updated] THEN [Execute the native terminal command gog gmail drafts update <draftId> --body "..." --json]

Schema Example

{
  "command": "gog gmail drafts update draft_id_123 --body \"Please review the attached invoice.\" --json"
}

Jidoka Validation Loop

  1. Try: Execute the command.
  2. Evaluate: Check the JSON response to confirm the body was updated.
  3. Correct/Fail: If it failed or hallucinated parameters, retry up to 3 times (max_retries=3).
  4. Proceed: Return the confirmation.

Expected Output

A JSON object confirming the draft was updated.