所有工具

send_email

电子邮件 · macOS

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

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

macOS

用途

当用户希望通过 Mac 的 Apple Mail 中已配置的账户发送电子邮件时使用此工具。通过 Mail.app 撰写并发送;支持纯文本或 HTML 正文。若要通过尚未添加到 Mail.app 的 Microsoft 365 账户发送,请使用 m365_send_email。传入 `from` 可通过特定的已配置 Mail.app 账户发送,而不是使用默认发件人。将 `attachments` 作为以逗号分隔的绝对文件路径列表传入,即可附加文件。

必填输入

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

权限与确认

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

英文规范技术架构macOS
{
  "properties": {
    "attachments": {
      "description": "Files to attach, as comma-separated absolute paths (e.g. a PDF).",
      "type": "string"
    },
    "bcc": {
      "description": "BCC address(es), comma-separated.",
      "type": "string"
    },
    "body": {
      "description": "Plain-text body. Use this OR html_body; if both are given, html_body wins.",
      "type": "string"
    },
    "cc": {
      "description": "CC address(es), comma-separated.",
      "type": "string"
    },
    "confirm": {
      "default": "false",
      "description": "Safety gate: the call only PREVIEWS (nothing is sent) unless confirm:true. Set true to actually send.",
      "type": "boolean"
    },
    "from": {
      "description": "Sender address — on a multi-account Mac, selects which configured Mail.app account sends. Omit to use Mail's default account.",
      "type": "string"
    },
    "html_body": {
      "description": "HTML body. Takes precedence over `body` when both are set.",
      "type": "string"
    },
    "subject": {
      "description": "Subject line.",
      "type": "string"
    },
    "to": {
      "description": "Recipient address(es), comma-separated for multiple.",
      "type": "string"
    }
  },
  "required": [
    "to",
    "subject"
  ],
  "type": "object"
}

文档示例

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

{
  "body": "Can we review the launch checklist on Tuesday?",
  "confirm": false,
  "subject": "Planning meeting",
  "to": "[email protected]"
}