update_calendar_event
日历 · macOS
效果: 写入. 状态: 受限可用.
“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。
macOS
用途
按 ID 更新 Mac 的日历应用(Calendar.app)中的现有事件。只需传入想要更改的字段,未指定的字段保持不变。event_id 从 list_calendar_events 获取;对于重复事件,请传入你所指那一行的单次重复 id,而不是单纯的系列 id。对于 Microsoft 365,请改用 m365_list_events / m365_create_event(连接 Microsoft 365 账户后才会列出)。
必填输入
event_id
输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。
权限与确认
架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 OAuth 范围或操作系统授权。
英文规范技术架构 — macOS
{
"properties": {
"confirm": {
"description": "Must be true to apply changes",
"type": "boolean"
},
"end_date": {
"description": "New end datetime ISO 8601 (optional). Same timezone rules as start_date.",
"type": "string"
},
"event_id": {
"description": "Event (or occurrence) identifier from list_calendar_events. For a recurring event this addresses exactly the occurrence that id came from — the preview names the date and scope so you can confirm before applying.",
"type": "string"
},
"location": {
"description": "New location — pass empty string to clear (optional)",
"type": "string"
},
"notes": {
"description": "New notes — pass empty string to clear (optional)",
"type": "string"
},
"span": {
"description": "For recurring events: 'this' (default — only this occurrence) or 'future' (this and all following occurrences; 'all'/'series' mean the same). Any other value is refused.",
"type": "string"
},
"start_date": {
"description": "New start datetime ISO 8601 (optional). No timezone = Mac's local time; append Z/offset to pin the zone.",
"type": "string"
},
"title": {
"description": "New title (optional)",
"type": "string"
}
},
"required": [
"event_id"
],
"type": "object"
}文档示例
update_calendar_event 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。
{
"confirm": false,
"event_id": "demo-event-001",
"title": "Launch planning meeting"
}