跳到正文
所有工具

m365_create_event

Microsoft 365 · macOS · Windows

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

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

macOS

用途

在已连接的 Microsoft 365 / Outlook 日历中创建事件。如果设置了 `attendees`,事件一创建,Microsoft 365 就会立即向每位与会者发送会议邀请:带与会者创建就等于发送邀请,因此请先与用户核对名单。时间按 `timezone` 解读,其默认为 UTC(不同于 create_calendar_event,不使用这台 Mac 的时间)——请传入用户的时区,否则事件会落在错误的时刻;未提供时区时,预览会提示。除非 `calendar` 指定了其他日历,否则使用主日历。未传 confirm 时返回所有字段的预览,不会改动任何内容;传入 confirm=true 才会创建。返回事件 id。对于 Mac 上的日历应用,请改用 create_calendar_event。

必填输入

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

权限与确认

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

英文规范技术架构 — 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"
    },
    "attendees": {
      "description": "Comma-separated email addresses to invite (optional)",
      "type": "string"
    },
    "body": {
      "description": "Event description (optional)",
      "type": "string"
    },
    "calendar": {
      "description": "Calendar name to create the event in — partial, case-insensitive match (optional). Omit to use the primary calendar.",
      "type": "string"
    },
    "confirm": {
      "description": "Must be true to create the event",
      "type": "boolean"
    },
    "end": {
      "description": "End time in ISO 8601, e.g. '2026-05-20T11:00:00'",
      "type": "string"
    },
    "location": {
      "description": "Location (optional)",
      "type": "string"
    },
    "start": {
      "description": "Start time in ISO 8601, e.g. '2026-05-20T10:00:00'",
      "type": "string"
    },
    "subject": {
      "description": "Event title",
      "type": "string"
    },
    "timezone": {
      "description": "IANA timezone, e.g. 'America/New_York' (default: UTC)",
      "type": "string"
    }
  },
  "required": [
    "subject",
    "start",
    "end"
  ],
  "type": "object"
}

文档示例

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

{
  "confirm": false,
  "end": "2026-10-06T11:00:00",
  "start": "2026-10-06T10:00:00",
  "subject": "Planning meeting"
}

Windows

用途

通过 Microsoft Graph,在使用 connect_m365_account 连接的 Microsoft 365 账户的默认日历中创建事件(对于 Outlook 桌面应用,请使用 outlook_calendar_create_event)。不带 confirm=true 时不会创建任何内容,也不会发送任何内容:调用返回所有字段的预览,且不会联系 Microsoft 365,请将其展示给用户。带 confirm=true 时会创建事件,`attendees` 中的每个地址都会作为必需与会者添加,Microsoft 365 会向每个人发送会议邀请。`start` 和 `end` 按 `timezone` 解读,其默认为 UTC,而不是用户的本地时区:请传入它。不会检查是否已存在事件,因此确认两次会创建两个事件。回复中带有事件 ID,m365_delete_event 使用它来删除该事件;此服务器没有编辑事件的工具。

必填输入

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

权限与确认

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

英文规范技术架构 — 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"
    },
    "attendees": {
      "description": "Comma-separated email addresses to invite (optional)",
      "type": "string"
    },
    "body": {
      "description": "Event description (optional)",
      "type": "string"
    },
    "confirm": {
      "description": "Must be true to create the event. Without it the call returns a preview and creates nothing.",
      "type": "boolean"
    },
    "end": {
      "description": "End time ISO 8601, e.g. '2026-05-20T11:00:00'",
      "type": "string"
    },
    "location": {
      "description": "Location (optional)",
      "type": "string"
    },
    "start": {
      "description": "Start time ISO 8601, e.g. '2026-05-20T10:00:00'",
      "type": "string"
    },
    "subject": {
      "description": "Event title",
      "type": "string"
    },
    "timezone": {
      "description": "IANA timezone, e.g. 'America/New_York' (default: UTC)",
      "type": "string"
    }
  },
  "required": [
    "subject",
    "start",
    "end"
  ],
  "type": "object"
}

文档示例

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

{
  "confirm": false,
  "end": "2026-10-06T11:00:00",
  "start": "2026-10-06T10:00:00",
  "subject": "Planning meeting"
}