پرش به مستندات
سرور 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()