تخطَّ إلى المستندات
خادم MCP

التقويم

الأحداث والدعوات.

أدوات التقويم

الأداةما تفعله
listCalendarEventsكل موعد بين لحظتين، والحدث المتكرر مرة لكل مرة يقع فيها، مع مكانه وحالته وردّك.
getCalendarEventحدث واحد كاملًا، عبر id أو عبر threadId للمحادثة التي تحمل دعوته: الحضور وردودهم، وكيف يتكرر، وتذكيراته.
createCalendarEventضع حدثًا في التقويم وادعُ الحضور من عنوان يحق لك الإرسال منه. وفي دردشة التطبيق يسأل أولًا ما لم تطلب ذلك.
updateCalendarEventيغيّر حدثًا تنظّمه ويرسل التحديث إلى كل المدعوين. وفي دردشة التطبيق يسأل أولًا ما لم تطلب ذلك.
cancelCalendarEventيلغي اجتماعًا تنظّمه ويخبر كل المدعوين. وفي دردشة التطبيق يسأل دائمًا أولًا.
deleteCalendarEventيزيل حدثًا من التقويم دون إخبار أحد. وفي دردشة التطبيق يسأل دائمًا أولًا.
respondToCalendarEventيقبل دعوة أو يرفضها أو يقبلها مبدئيًا، ويخبر المنظِّم. وفي دردشة التطبيق يسأل أولًا ما لم تطلب ذلك.

القراءة تتطلب calendar:read وكل تغيير يتطلب calendar:write. وكل ما يرسل بريدًا إلى أحد يتطلب أيضًا emails:send: دعوة الحضور إلى اجتماع أو تحديثه أو إلغاؤه، وكل رد على دعوة.

العميل المقصور على بعض العناوين لا يرى ولا يغيّر إلا الأحداث التي ينظّمها أحدها أو يحضرها، ولا يرسل إلا منها.

المرجع

listCalendarEvents

الصلاحياتcalendar:readينفّذه مساعد التطبيق دون أن يسألمجموعة الأدواتcalendar

The calendar between two moments, as the Calendar page of the app shows it: every occurrence in the window, a repeating event once for each time it happens, sorted by start, with its event id, place, status and your answer. from and to are ISO 8601 with a zone, at most a year apart, and timezone (an IANA zone, UTC unless you say) decides what an all-day event means. When more follow, the last line gives the offset to pass back.

المدخلات

fromstringمطلوب
التنسيقdate-time
tostringمطلوب
التنسيقdate-time
timezonestring
من 1 إلى 64 من الأحرف
limitinteger
على الأقل 1على الأكثر 200
offsetinteger
على الأقل 0

متاح أيضًا في

API
GET /calendar/events
SDK
calendar.listEvents()calendar.listAllEvents()calendar.iterateEvents()

getCalendarEvent

الصلاحياتcalendar:readينفّذه مساعد التطبيق دون أن يسألمجموعة الأدواتcalendar

One calendar event in full: when it is, where, who organised it, every attendee and their answer, your own answer, how it repeats and its reminders. Pass id for an event from listCalendarEvents, or threadId for the invitation a conversation carries.

المدخلات

idstring
من 1 إلى 64 من الأحرف
threadIdstring
من 1 إلى 256 من الأحرف

متاح أيضًا في

API
GET /calendar/events/{id}GET /threads/{id}/event
SDK
calendar.getEvent()threads.getEvent()

createCalendarEvent

الصلاحياتcalendar:writeيسأل مساعد التطبيق أولًا ما لم تكن قد طلبت ذلكمجموعة الأدواتcalendar

Put an event on the calendar, as New event on the Calendar page does. start and end are ISO 8601 with a zone. With attendees, an invitation goes to each of them from the address in from, which has to be one you may send as, unless sendInvites is false. reminders takes minutes before the start, and recurrence an RRULE such as FREQ=WEEKLY;BYDAY=MO.

المدخلات

summarystringمطلوب
من 1 إلى 255 من الأحرف
startstringمطلوب
التنسيقdate-time
endstringمطلوب
التنسيقdate-time
descriptionstring
حتى 8000 من الأحرف
locationstring
حتى 255 من الأحرف
urlstring
حتى 2000 من الأحرفالتنسيقuri
allDayboolean
timezonestring
من 1 إلى 64 من الأحرف
recurrencestring
حتى 512 من الأحرف
attendeesobject[]
حتى 200 من العناصر
emailstringمطلوب
حتى 320 من الأحرفالتنسيقemail
namestring
حتى 128 من الأحرف
optionalboolean
remindersobject[]
حتى 5 من العناصر
minutesBeforeintegerمطلوب
على الأقل 0على الأكثر 40320
sendInvitesboolean
fromstring
حتى 320 من الأحرف

متاح أيضًا في

API
POST /calendar/events
SDK
calendar.createEvent()

updateCalendarEvent

الصلاحياتcalendar:writeيسأل مساعد التطبيق أولًا ما لم تكن قد طلبت ذلكمجموعة الأدواتcalendar

Change an event you organise: its title, time, place, attendees, reminders or repeating. A field left out keeps its value, and attendees replaces the whole list. Everyone invited gets the updated invitation unless sendInvites is false.

المدخلات

idstringمطلوب
من 1 إلى 64 من الأحرف
summarystring
من 1 إلى 255 من الأحرف
startstring
التنسيقdate-time
endstring
التنسيقdate-time
descriptionstring
حتى 8000 من الأحرف
locationstring
حتى 255 من الأحرف
urlstring
حتى 2000 من الأحرفالتنسيقuri
allDayboolean
timezonestring
من 1 إلى 64 من الأحرف
recurrencestring
حتى 512 من الأحرف
attendeesobject[]
حتى 200 من العناصر
emailstringمطلوب
حتى 320 من الأحرفالتنسيقemail
namestring
حتى 128 من الأحرف
optionalboolean
remindersobject[]
حتى 5 من العناصر
minutesBeforeintegerمطلوب
على الأقل 0على الأكثر 40320
sendInvitesboolean
fromstring
حتى 320 من الأحرف

متاح أيضًا في

API
PATCH /calendar/events/{id}
SDK
calendar.updateEvent()

cancelCalendarEvent

الصلاحياتcalendar:writeيسأل مساعد التطبيق دائمًا أولًامجموعة الأدواتcalendar

Call off a meeting you organise, as Cancel meeting does in the app: it stays on the calendar marked cancelled, and everyone invited is told it is off, from the address in from. A chat always asks first.

المدخلات

idstringمطلوب
من 1 إلى 64 من الأحرف
fromstring
حتى 320 من الأحرف

متاح أيضًا في

API
POST /calendar/events/{id}/cancel
SDK
calendar.cancelEvent()

deleteCalendarEvent

الصلاحياتcalendar:writeيسأل مساعد التطبيق دائمًا أولًامجموعة الأدواتcalendar

Remove an event from the calendar for good, as Remove does in the app. Nobody else is told, so call off a meeting with others in it with cancelCalendarEvent instead. A chat always asks first.

المدخلات

idstringمطلوب
من 1 إلى 64 من الأحرف

متاح أيضًا في

API
DELETE /calendar/events/{id}
SDK
calendar.deleteEvent()

respondToCalendarEvent

الصلاحياتcalendar:writeيسأل مساعد التطبيق أولًا ما لم تكن قد طلبت ذلكمجموعة الأدواتcalendar

Answer an invitation: ACCEPTED, DECLINED or TENTATIVE. The answer goes to the organiser by email from the invited address you may send as, or from respondingAs when the invitation went to more than one of yours.

المدخلات

idstringمطلوب
من 1 إلى 64 من الأحرف
responsestringمطلوب
أحد"ACCEPTED""DECLINED""TENTATIVE"
respondingAsstring
حتى 320 من الأحرف

متاح أيضًا في

API
POST /calendar/events/{id}/respond
SDK
calendar.respondToEvent()