跳到正文
所有工具

reply_email

电子邮件 · macOS

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

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

macOS

用途

当用户想回复位于 Mac 的 Apple 邮件中的邮件时使用(消息 ID 来自 list_emails/search_emails)。发送前会预览。发出的回复包含你的文本,后接原邮件的纯文本引用("On <date>, <sender> wrote:",原邮件各行以 `> ` 开头),位于同一会话中;`html_body` 会被转换为纯文本。如果原邮件没有可读文本,回复只会发送你的文本,响应会说明这一点(`quoted_original: false` 以及需要转告的警告)。若要将回复留在“草稿”中而不发送,请传入 `save_as_draft: true`:草稿位于正确的会话中,带有回复/全部回复的收件人,内容相同(不是 Mail 的样式化引用),且绝不会调用 `send`。无论哪种路径,如果 Mail 没有保留文本或引用,调用都会失败,且不会发送或保存任何内容。带 `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": "Preview first: 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. It is converted to plain text: a reply is sent, or saved, as text with a plain-text quote of the original.",
      "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 reply in Drafts instead of sending it: your text followed by a plain-text quote of the original, in the right thread, with 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"
}