所有工具

reply_email

电子邮件 · macOS

效果: 发送. 状态: 受限可用.

“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。

macOS

用途

当用户希望回复 Mac 的 Apple Mail 中某封电子邮件时使用此工具(邮件 ID 来自 list_emails/search_emails)。支持纯文本或 HTML 正文,并会在发送前显示预览。若要将回复保留在“草稿”中而不发送,请传入 `save_as_draft: true`:它会构建相同的原生 Mail 回复(自动引用原邮件、使用正确的会话,以及回复/全部回复的收件人),并将其保存而不是发送——此路径绝不会调用 `send`。带有 `reply_to_message_id` 的 `create_draft` 也会留下草稿,但它会从头撰写,因此不包含自动引用。对于由 m365_list_emails 返回的 Microsoft 365 邮件 ID,请使用 m365_reply_email。传入 `account`(来自 list_emails/search_emails 的结果)可跳过扫描其他账户,并避免多账户 Mac 上的超时。

必填输入

输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。

权限与确认

架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。

英文规范技术架构macOS
{
  "properties": {
    "account": {
      "description": "Account (from the listing) the message is in — pass it to skip scanning other accounts and avoid multi-account timeouts.",
      "type": "string"
    },
    "body": {
      "description": "Plain-text reply body.",
      "type": "string"
    },
    "confirm": {
      "default": "false",
      "description": "Consent gate: the first call previews the reply; call again with confirm=true to actually SEND it — or to save it when save_as_draft is set.",
      "type": "boolean"
    },
    "html_body": {
      "description": "HTML reply body. Takes precedence over `body` when both are given.",
      "type": "string"
    },
    "message_id": {
      "description": "Id of the message to reply to (from list_emails/search_emails).",
      "type": "string"
    },
    "reply_all": {
      "default": "false",
      "description": "Reply to all original recipients instead of just the sender.",
      "type": "boolean"
    },
    "save_as_draft": {
      "default": "false",
      "description": "Save the native reply in Drafts instead of sending it. Keeps Mail's reply template: automatic quote of the original, the right thread, and the Reply/Reply-All recipients. Nothing is sent on this path.",
      "type": "boolean"
    }
  },
  "required": [
    "message_id"
  ],
  "type": "object"
}

文档示例

reply_email 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "body": "Can we review the launch checklist on Tuesday?",
  "confirm": false,
  "message_id": "demo-message-001"
}