高风险
查询之后会直接创建会议并邀请他人,超出声明的只读查找用途
原文依据:4 处发现了什么
技能描述只承诺查询忙闲状态来寻找时段,但最后一步调用 `calendar +insert`,在用户日历中创建“Meeting”并添加两名参会者。指令没有要求在写入前展示最终时间、确认组织者日历或取得用户批准。
为什么需要注意
如果代理自动执行完整配方,它可能在错误账户或错误时间创建事件,并向列出的地址发送或触发会议邀请,修改用户及参会者的日历与通知。
该风险有源码支持。技能声明的用途是查询忙闲状态并寻找会议时段,但执行步骤还要求调用 `calendar +insert` 创建会议,并把两个示例地址加入参会者。若代理照完整配方执行,这会修改用户日历,并可能向他人发出邀请;步骤中未见写入前确认。用户可要求作者将创建会议改为明确的可选步骤,并限制代理在展示拟定时间、组织者日历和参会者且获得确认后才能执行。
name: recipe-find-free-timedescription: "Query Google Calendar free/busy status for multiple users to find a meeting slot."metadata:查看另外 3 个位置
Query Google Calendar free/busy status for multiple users to find a meeting slot.2. Review the output to find overlapping free slots3. Create event in the free slot: `gws calendar +insert --summary 'Meeting' --attendee user1@company.com --attendee user2@company.com --start '2024-03-18T14:00:00' --end '2024-03-18T14:30:00'`1. Query free/busy: `gws calendar freebusy query --json '{"timeMin": "2024-03-18T08:00:00Z", "timeMax": "2024-03-18T18:00:00Z", "items": [{"id": "user1@company.com"}, {"id": "user2@company.com"}]}'`2. Review the output to find overlapping free slots3. Create event in the free slot: `gws calendar +insert --summary 'Meeting' --attendee user1@company.com --attendee user2@company.com --start '2024-03-18T14:00:00' --end '2024-03-18T14:30:00'`