跳到正文
所有工具

m365_create_email_folder

Microsoft 365 · macOS · Windows

效果: 写入. 状态: 受限可用.

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

macOS

用途

当用户想在其 Microsoft 365 / Outlook 账户中新建邮件文件夹时使用:它创建在 Exchange 服务器上,因此 Outlook 会在每台设备上显示它。name 是新文件夹的名称;parent(可选)将其放入现有文件夹内——来自 m365_list_email_folders 的 id、名称或路径,或 inbox。如果同一父级下已存在同名文件夹(不区分大小写),则不会创建任何内容,答复为 exists=true 并附带其 id。先显示预览——设置 confirm=true 才会创建。只有在 Microsoft 365 第二次读取时返回了新文件夹之后,才会答复 created=true。需要 Microsoft 365 权限 Mail.ReadWrite:在请求该权限之前连接的账户,会答复 consent_required,直到重新连接。对于 Mac 邮件应用中账户的文件夹,请使用 create_email_folder。

必填输入

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

权限与确认

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

英文规范技术架构 — macOS
{
  "properties": {
    "account": {
      "description": "Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account.",
      "type": "string"
    },
    "confirm": {
      "description": "Set to true to create the folder (default: shows a preview only).",
      "type": "boolean"
    },
    "name": {
      "description": "The new folder's name: one line, without /, at most 255 characters.",
      "type": "string"
    },
    "parent": {
      "description": "Folder to create it in: an id, name or path from m365_list_email_folders, or inbox. Leave it out for a top-level folder.",
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "type": "object"
}

文档示例

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

{
  "confirm": false,
  "name": "Launch 2026",
  "parent": "inbox"
}

Windows

用途

当用户想在其 Microsoft 365 / Outlook 账户中新建邮件文件夹时使用:它创建在 Exchange 服务器上,因此 Outlook 会在每台设备上显示它。name 是新文件夹的名称;parent(可选)将其放入现有文件夹内——来自 m365_list_email_folders 的 id、名称或路径,或 inbox。如果同一父级下已存在同名文件夹(不区分大小写),则不会创建任何内容,答复为 exists=true 并附带其 id。先显示预览——设置 confirm=true 才会创建。只有在 Microsoft 365 第二次读取时返回了新文件夹之后,才会答复 created=true。需要 Microsoft 365 权限 Mail.ReadWrite:在请求该权限之前连接的账户,会答复 consent_required,直到重新连接。对于这台电脑上经典 Outlook 应用中的文件夹,请使用 outlook_create_folder。

必填输入

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

权限与确认

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

英文规范技术架构 — Windows
{
  "properties": {
    "account": {
      "description": "Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account.",
      "type": "string"
    },
    "confirm": {
      "description": "Set to true to create the folder (default: shows a preview only).",
      "type": "boolean"
    },
    "name": {
      "description": "The new folder's name: one line, without /, at most 255 characters.",
      "type": "string"
    },
    "parent": {
      "description": "Folder to create it in: an id, name or path from m365_list_email_folders, or inbox. Leave it out for a top-level folder.",
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "type": "object"
}

文档示例

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

{
  "confirm": false,
  "name": "Launch 2026",
  "parent": "inbox"
}