Calendar Set Event Attachments
calendar_set_event_attachmentsAdd or remove files from an existing Google Calendar event's attachments while keeping other attachments, with options to add, remove, or both in one update.
Instructions
Add files to and remove files from an existing event's attachments in one change, keeping the others; give add, remove or both. To replace the whole list use calendar_update_event, and to save an attached file use drive_download_file with its file_id. Returns status 'ok', event (the updated event in the calendar_read_events shape), added_count and removed_count (0 when nothing matched). Removing attachments, or a send_updates that emails guests, asks the user to confirm first; declining returns status 'cancelled' with nothing changed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"event_id": "<event_id>"
},
"name": "calendar_set_event_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Files to attach, each {file_url, title, mime_type, icon_link, file_id}; a file whose file_url is already attached is skipped. Google allows at most 25 attachments per event. | |
| remove | No | Attachments to detach, each {file_url, file_id} with at least one of the two, as listed by calendar_read_events; an attachment matching either is removed. Removals apply before additions, and the files stay in Drive. | |
| event_id | Yes | Calendar event ID, from calendar_search_events, calendar_get_calendar_digest or calendar_read_events results. | |
| calendar_id | No | Calendar ID: 'primary' for the user's main calendar, or an ID from calendar_get_calendar_context's calendars (often an email address). | primary |
| send_updates | No | Who Google notifies about this change: 'all' guests, 'externalOnly' (only guests who do not use Google Calendar, by email), or 'none'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | No | ||
| status | No | Machine-readable operation status. | |
| added_count | No | ||
| removed_count | No |