本文へスキップ
すべてのツール

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

目的

connect_m365_account で接続した Microsoft 365 アカウントの既定のカレンダーに、Microsoft Graph 経由でイベントを作成します(Outlook デスクトップアプリには outlook_calendar_create_event を使ってください)。confirm=true がない場合は何も作成されず、何も送信されません。Microsoft 365 に問い合わせずに全フィールドのプレビューを返すので、ユーザーに見せてください。confirm=true を付けるとイベントが作成され、`attendees` の各アドレスが必須出席者として追加され、Microsoft 365 が各出席者に会議招待を送ります。`start` と `end` は `timezone` で解釈され、既定は UTC で、ユーザーのローカルタイムゾーンではありません。必ず渡してください。既存イベントの確認は行われないため、2 回確定すると 2 件作成されます。応答にはイベント 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"
}