@honor-claw/yoyo 1.0.7-beta.6 → 1.0.7-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/package.json +1 -1
  2. package/skills/yoyo-control/SKILL.md +25 -74
  3. package/skills/yoyo-control/references/alarm-create.md +32 -23
  4. package/skills/yoyo-control/references/alarm-delete.md +27 -18
  5. package/skills/yoyo-control/references/alarm-disable.md +26 -16
  6. package/skills/yoyo-control/references/alarm-enable.md +26 -16
  7. package/skills/yoyo-control/references/alarm-query.md +56 -59
  8. package/skills/yoyo-control/references/alarm-update.md +40 -29
  9. package/skills/yoyo-control/references/app-close.md +90 -21
  10. package/skills/yoyo-control/references/app-open.md +108 -41
  11. package/skills/yoyo-control/references/app_name_to_pkgName.md +238 -0
  12. package/skills/yoyo-control/references/bluetooth.md +62 -58
  13. package/skills/yoyo-control/references/call-phone.md +14 -77
  14. package/skills/yoyo-control/references/call-search.md +46 -12
  15. package/skills/yoyo-control/references/capture-screenshot.md +32 -46
  16. package/skills/yoyo-control/references/contact-search.md +15 -10
  17. package/skills/yoyo-control/references/file-upload.md +13 -9
  18. package/skills/yoyo-control/references/hotspot.md +20 -45
  19. package/skills/yoyo-control/references/local-search.md +15 -10
  20. package/skills/yoyo-control/references/message-search.md +47 -45
  21. package/skills/yoyo-control/references/message-send.md +16 -11
  22. package/skills/yoyo-control/references/mobile-data.md +20 -11
  23. package/skills/yoyo-control/references/no-disturb.md +119 -24
  24. package/skills/yoyo-control/references/quiet-mode.md +19 -10
  25. package/skills/yoyo-control/references/ringing-mode.md +19 -10
  26. package/skills/yoyo-control/references/schedule-create.md +259 -134
  27. package/skills/yoyo-control/references/schedule-delete.md +53 -34
  28. package/skills/yoyo-control/references/schedule-search.md +133 -66
  29. package/skills/yoyo-control/references/schedule-update.md +47 -25
  30. package/skills/yoyo-control/references/screen-record.md +27 -11
  31. package/skills/yoyo-control/references/vibration-mode.md +14 -10
  32. package/skills/yoyo-control/references/volume-operate.md +34 -12
  33. package/skills/yoyo-control/references/wlan.md +59 -56
  34. package/src/agent/templates/AGENTS.md +20 -9
  35. package/src/gateway-client/admin-gateway-client.ts +1 -1
  36. package/src/modules/claw-configs/config-manager.ts +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honor-claw/yoyo",
3
- "version": "1.0.7-beta.6",
3
+ "version": "1.0.7-beta.8",
4
4
  "description": "OpenClaw Honor Yoyo connection plugin",
5
5
  "keywords": [
6
6
  "ai",
@@ -1,7 +1,7 @@
1
1
  ---
2
- name: YOYO-phone-control
2
+ name: yoyo_phone_control
3
3
  version: 1.0.0
4
- description: 用于控制和操作手机系统功能及本地信息的工具集合,包括打开/关闭应用、发送/查找短信、拨打电话、搜索联系人、搜索通话记录、创建/打开/查询/关闭/删除闹钟、截屏、屏幕录制、调节音量、切换响铃/静音/勿扰模式、管理移动数据或热点、进行本地内容搜索、文件发送等。
4
+ description: 通过YOYO操作手机系统用机功能,包括打开/关闭应用、发送/查找短信、拨打电话、搜索联系人、搜索通话记录、创建/打开/查询/关闭/删除闹钟、创建/添加/新建日程、截屏、屏幕录制、调节音量、切换响铃/静音/勿扰模式、管理移动数据或热点或蓝牙或WLAN、进行本地内容搜索、文件发送等。
5
5
  metadata: { "openclaw": { "emoji": "📱", "always": true } }
6
6
  ---
7
7
 
@@ -79,7 +79,7 @@ Before executing any device control operation, you **MUST** consult the correspo
79
79
  | Required Node Caps | Reference File | Tool Description |
80
80
  | -------------------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
81
81
  | `mobile-data` | `references/mobile-data.md` | 移动数据与流量管理工具。提供对移动数据及流量管理相关功能的综合管理与控制,支持开关移动数据、切换SIM卡、查询流量使用情况/账单/排行、设置流量限额与提醒、控制应用级流量、流量校准及省流量模式等功能。 |
82
- | `hotspot` | `references/hotspot.md` | 个人热点管理工具。提供对个人热点功能的统一管理与控制,支持个人热点的开启与关闭、参数设置以及当前状态查询,并可结合指定应用执行相关操作。 |
82
+ | `hotspot` | `references/hotspot.md` | 个人热点管理工具。提供对个人热点功能的统一管理与控制,支持个人热点的开启与关闭。 |
83
83
  | `volume` | `references/volume-operate.md` | 设备音量调节与管理工具。提供对设备音量的调节与管理功能,支持音量的设置、调高、调低、开启与关闭,以及当前音量状态的查询;可针对不同应用、不同设备及不同音量类型(如媒体、通话、通知等)进行精细化控制。 |
84
84
  | `no-disturb` | `references/no-disturb.md` | 免打扰模式管理工具。支持在特定时间段或特定情况下屏蔽来电和通知,减少干扰,提高专注度。提供即时开关、定时设置、联系人例外、应用通知控制等功能。 |
85
85
  | `screen-record` | `references/screen-record.md` | 设备屏幕录制管理与控制工具。提供对设备屏幕录制功能的管理与控制能力,支持对屏幕录制功能的开启与关闭、相关录制参数的设置、当前录制状态的查询,并可结合指定应用对其在特定应用场景下的录制行为进行管理。 |
@@ -154,11 +154,11 @@ Execute the following steps **in strict order** for each operation to construct
154
154
 
155
155
  ## Step 3: 特殊场景处理
156
156
 
157
- 在正式执行工具调用前,需先识别并处理以下两类特殊场景:
157
+ 在正式执行工具调用前,需先识别并处理如下特殊场景:
158
158
 
159
159
  ### 3.1 重复操作识别与处理
160
160
 
161
- **场景定义**:用户在短时间内(5分钟内)多次要求执行相同或高度相似的操作。
161
+ **场景定义**:用户在短时间内多次要求执行相同或高度相似的操作。
162
162
 
163
163
  **识别逻辑**:
164
164
 
@@ -166,7 +166,7 @@ Execute the following steps **in strict order** for each operation to construct
166
166
  ┌─────────────────────────────────────────────────────────────┐
167
167
  │ 重复操作识别 │
168
168
  │ - 检查当前会话历史记录 │
169
- │ - 比对:操作类型(action_type)、目标对象(target)、 │
169
+ │ - 比对:操作类型(actionType)、目标对象(target)、 │
170
170
  │ 设备(device)、应用(app)等关键参数 │
171
171
  │ - 时间窗口:5分钟内 │
172
172
  │ - 结果:已执行成功且参数匹配 → 判定为重复操作 │
@@ -175,89 +175,40 @@ Execute the following steps **in strict order** for each operation to construct
175
175
 
176
176
  **处理策略**:
177
177
 
178
- | 场景 | 处理方式 | 话术示例 |
179
- | :----------------------- | :------------------ | :--------------------------------------------- |
180
- | 完全重复(参数完全一致) | 直接执行 + 智能提示 | "刚已经帮你打开蓝牙了,你是想要再操作一次吗?" |
181
- | 疑似重复(核心参数一致) | 确认后执行 | "蓝牙已经是打开状态了,你是要重新开关一次吗?" |
182
- | 用户坚持重复 | 无条件执行 | "好的,马上再帮你执行一次" |
178
+ 当用户提出重复的请求,直接执行,不能质疑用户。
183
179
 
184
- **智能话术模板**:
185
180
 
186
- ```
187
- 【直接执行型】
188
- "刚已经帮你[操作]了,我再执行一次~"
189
- "好的,马上再帮你[操作]一次"
190
-
191
- 【确认型】
192
- "[功能]已经是[状态]了,你是要重新[操作]一次吗?"
193
- "刚执行过了,还需要再来一次吗?"
194
-
195
- 【幽默型】
196
- "收到!虽然刚[操作]过,但再来一次也没问题~"
197
- "好嘞,[操作]×2!"
198
- ```
199
-
200
- ### 3.2 定时任务识别与拒绝
181
+ ### 3.2 查询类请求的特殊处理
201
182
 
202
- **场景定义**:用户要求执行带有时间延迟、定时触发或条件触发的操作。
203
-
204
- **识别关键词**:
205
-
206
- - 时间延迟:"X分钟后"、"X小时后"、"过一会儿"
207
- - 定时触发:"定时"、"到时候"、"X点的时候"
208
- - 条件触发:"等...之后"、"当...的时候"
183
+ **场景定义**:用户在访问查询类的请求,比如查询我的手机是否是静音模式
209
184
 
210
185
  **识别逻辑**:
211
186
 
212
187
  ```
213
188
  ┌─────────────────────────────────────────────────────────────┐
214
- 定时任务识别
215
- - 解析用户意图中的时间修饰词
216
- │ - 匹配定时关键词库
217
- │ - 提取:延迟时长、触发条件、执行序列(A然后B)
218
- │ - 结果:包含非常规即时执行意图 → 判定为定时任务 │
189
+ 查询类请求特殊处理
190
+
191
+ │ - 检查当前会话历史记录
192
+ │ - 查看当前用户请求是否为查询类请求
193
+ │ - 比对:请求类型(actionType)是否为查询类操作│
194
+ │ └─ 查询闹钟 / 查询日程 / 查短信 / 查联系人 / 查通讯录 --> 特殊查询(闹钟/日程/短信/联系人/通讯录): │
195
+ │ 根据实际返回结果进行针对性交互,而非固定话术│
196
+ │ └─ 其他查询-->进行普通查询:回复"好的" │
197
+ │ - 结果:命中查询类指令 → 触发特殊交互策略 │
198
+ │ │
199
+ │ 【特殊交互策略】 │
200
+ │ 普通查询:回复"好的" │
201
+ │ 特殊查询(闹钟/日程/短信/联系人/通讯录): │
202
+ │ 根据实际返回结果进行针对性交互,而非固定话术 │
219
203
  └─────────────────────────────────────────────────────────────┘
220
204
  ```
221
205
 
222
206
  **处理策略**:
223
207
 
224
- | 场景 | 处理方式 | 话术示例 |
225
- | :------------------ | :---------------------------- | :------------------------------------------------- |
226
- | 延迟执行(X分钟后) | 提示不支持 + 询问是否立即执行 | "我还不支持定时任务,只能现在帮你[操作],需要吗?" |
227
- | 定时触发(X点执行) | 提示不支持 + 建议替代方案 | "目前无法定时执行,你可以到点了再叫我哦" |
228
- | 序列操作(A然后B) | 拆解为即时操作 + 说明限制 | "我可以现在帮你[操作A],但[操作B]需要到时候再叫我" |
229
- | 条件触发(等X后Y) | 提示不支持条件执行 | "我做不到自动等待,你可以等[条件]满足后再叫我" |
208
+ 其中,特殊指令,包含查询闹钟/查询日程/查短信/查联系人/查通讯录,这些根据查询的具体返回结果进行交互。
209
+ 除了上述特殊查询,都回复用户“好的”。
230
210
 
231
- **标准话术模板**:
232
-
233
- ```
234
- 【延迟执行】
235
- "我还不支持定时任务,只能立刻帮你[操作],需要吗?"
236
- "目前做不到[延迟]后自动[操作],我现在就帮你[操作]可以吗?"
237
211
 
238
- 【定时触发】
239
- "定时功能还在学习中~ 你可以[时间点]的时候再叫我[操作]"
240
- "暂时不支持定时[操作],到[时间点]你提醒我一下?"
241
-
242
- 【序列操作】
243
- "我可以现在[操作A],但[操作B]需要你[时间点/条件]后再叫我"
244
- "不支持自动连续操作,我先帮你[操作A],[操作B]到时候再说?"
245
-
246
- 【条件触发】
247
- "我做不到自动等待[条件],你可以在[条件]满足后再叫我[操作]"
248
- "条件触发功能暂不支持,[条件]发生后再喊我哦"
249
- ```
250
-
251
- **执行策略**:
252
-
253
- ```
254
- ┌─────────────────────────────────────────────────────────────┐
255
- │ 用户确认后执行即时操作 │
256
- │ - 用户同意立即执行 → 继续Step 3,按正常流程执行 │
257
- │ - 用户拒绝/坚持定时 → 礼貌结束,不提供替代方案 │
258
- │ - 用户询问替代方案 → 建议使用系统自带定时功能或闹钟提醒 │
259
- └─────────────────────────────────────────────────────────────┘
260
- ```
261
212
 
262
213
  ## Step 4. Invoke Node With Command and Parameters
263
214
 
@@ -140,8 +140,9 @@ alarm.create
140
140
 
141
141
  **Windows (Cmd) 执行命令**:
142
142
 
143
- ``Cmd
144
- cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T10:00:00\\\",\\\"realRepeatType\\\":0,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false}\"'
143
+ ```bash
144
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params "{\"time\":\"T10:00:00\",\"realRepeatType\":0,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false}"'
145
+
145
146
  ```
146
147
 
147
148
  **Linux (Bash) 执行命令**:
@@ -171,8 +172,9 @@ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T10:
171
172
 
172
173
  **Windows (Cmd) 执行命令**:
173
174
 
174
- ``Cmd
175
- cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"title\\\":\\\"购物\\\",\\\"time\\\":\\\"T15:00:00\\\",\\\"realRepeatType\\\":0,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false}\"'
175
+ ```bash
176
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params "{\"title\":\"购物\",\"time\":\"T15:00:00\",\"realRepeatType\":0,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false}"'
177
+
176
178
  ```
177
179
 
178
180
  **Linux (Bash) 执行命令**:
@@ -202,8 +204,9 @@ openclaw nodes invoke --node <ID> --command alarm.create --params '{"title":"购
202
204
 
203
205
  **Windows (Cmd) 执行命令**:
204
206
 
205
- ``Cmd
206
- cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"title\\\":\\\"起床\\\",\\\"time\\\":\\\"T07:00:00\\\",\\\"realRepeatType\\\":2,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false}\"'
207
+ ```bash
208
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params "{\"title\":\"起床\",\"time\":\"T07:00:00\",\"realRepeatType\":2,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false}"'
209
+
207
210
  ```
208
211
 
209
212
  **Linux (Bash) 执行命令**:
@@ -232,8 +235,9 @@ openclaw nodes invoke --node <ID> --command alarm.create --params '{"title":"起
232
235
 
233
236
  **Windows (Cmd) 执行命令**:
234
237
 
235
- ``Cmd
236
- cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T08:00:00\\\",\\\"realRepeatType\\\":1,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false}\"'
238
+ ```bash
239
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params "{\"time\":\"T08:00:00\",\"realRepeatType\":1,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false}"'
240
+
237
241
  ```
238
242
 
239
243
  **Linux (Bash) 执行命令**:
@@ -264,8 +268,9 @@ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T08:
264
268
 
265
269
  **Windows (Cmd) 执行命令**:
266
270
 
267
- ``Cmd
268
- cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T15:00:00\\\",\\\"realRepeatType\\\":3,\\\"daysOfWeek\\\":20,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false}\"'
271
+ ```bash
272
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params "{\"time\":\"T15:00:00\",\"realRepeatType\":3,\"daysOfWeek\":20,\"specialTimeMillis\":0,\"skipHoliday\":false}"'
273
+
269
274
  ```
270
275
 
271
276
  **Linux (Bash) 执行命令**:
@@ -296,8 +301,9 @@ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T15:
296
301
 
297
302
  **Windows (Cmd) 执行命令**:
298
303
 
299
- ``Cmd
300
- cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T08:00:00\\\",\\\"realRepeatType\\\":5,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":1773964800000,\\\"skipHoliday\\\":false}\"'
304
+ ```bash
305
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params "{\"time\":\"T08:00:00\",\"realRepeatType\":5,\"daysOfWeek\":0,\"specialTimeMillis\":1773964800000,\"skipHoliday\":false}"'
306
+
301
307
  ```
302
308
 
303
309
  **Linux (Bash) 执行命令**:
@@ -328,8 +334,9 @@ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T08:
328
334
 
329
335
  **Windows (Cmd) 执行命令**:
330
336
 
331
- ``Cmd
332
- cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T09:00:00\\\",\\\"realRepeatType\\\":1,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":true}\"'
337
+ ```bash
338
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params "{\"time\":\"T09:00:00\",\"realRepeatType\":1,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":true}"'
339
+
333
340
  ```
334
341
 
335
342
  **Linux (Bash) 执行命令**:
@@ -359,8 +366,9 @@ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T09:
359
366
 
360
367
  **Windows (Cmd) 执行命令**:
361
368
 
362
- ``Cmd
363
- cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T09:00:00\\\",\\\"realRepeatType\\\":9,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false,\\\"bigWeek\\\":true}\"'
369
+ ```bash
370
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params "{\"time\":\"T09:00:00\",\"realRepeatType\":9,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false,\"bigWeek\":true}"'
371
+
364
372
  ```
365
373
 
366
374
  **Linux (Bash) 执行命令**:
@@ -390,8 +398,9 @@ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T09:
390
398
 
391
399
  **Windows (Cmd) 执行命令**:
392
400
 
393
- ``Cmd
394
- cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T09:00:00\\\",\\\"realRepeatType\\\":9,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false,\\\"bigWeek\\\":false}\"'
401
+ ```bash
402
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params "{\"time\":\"T09:00:00\",\"realRepeatType\":9,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false,\"bigWeek\":false}"'
403
+
395
404
  ```
396
405
 
397
406
  **Linux (Bash) 执行命令**:
@@ -422,15 +431,15 @@ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T09:
422
431
 
423
432
  **Windows (Cmd) 执行命令**:
424
433
 
425
- ``Cmd
426
- cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T18:00:00\\\",\\\"realRepeatType\\\":4,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false}\"'
434
+ ```bash
435
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params "{\"time\":\"T18:00:00\",\"realRepeatType\":4,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false}"'
427
436
  ```
428
437
 
429
438
  **Linux (Bash) 执行命令**:
430
439
 
431
440
  ```bash
432
441
  openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T18:00:00","realRepeatType":4,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false}'
433
- ```
442
+ ````
434
443
 
435
444
  ---
436
445
 
@@ -452,8 +461,8 @@ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T18:
452
461
 
453
462
  **Windows (Cmd) 执行命令**:
454
463
 
455
- ``Cmd
456
- cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T08:30:00\\\",\\\"realRepeatType\\\":10,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false}\"'
464
+ ```bash
465
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params "{\"time\":\"T08:30:00\",\"realRepeatType\":10,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false}"'
457
466
  ```
458
467
 
459
468
  **Linux (Bash) 执行命令**:
@@ -7,7 +7,6 @@ description: >
7
7
  **注意:调用本工具前必须先调用 alarm.query 查询闹钟,获取目标闹钟的 alarmId。**
8
8
  ---
9
9
 
10
-
11
10
  # Alarm Delete 删除闹钟
12
11
 
13
12
  ## Tool Command
@@ -164,6 +163,7 @@ alarm.delete
164
163
  **用户输入**: "删除八点的闹钟"
165
164
 
166
165
  **前置查询**(alarm.query):
166
+
167
167
  ```json
168
168
  {
169
169
  "queryParams": "{\"timeList\":[\"T08:00:00\"]}"
@@ -171,6 +171,7 @@ alarm.delete
171
171
  ```
172
172
 
173
173
  **查询结果处理**:
174
+
174
175
  - 返回闹钟ID为"3" → 加入待删除列表
175
176
 
176
177
  **JSON 参数**:
@@ -183,7 +184,7 @@ alarm.delete
183
184
 
184
185
  **Windows (Cmd) 执行命令**:
185
186
 
186
- ```Cmd
187
+ ```bash
187
188
  cmd /c 'openclaw nodes invoke --node <ID> --command alarm.delete --params "{\"alarmIdList\":\"[3]\"}"'
188
189
  ```
189
190
 
@@ -200,6 +201,7 @@ openclaw nodes invoke --node <ID> --command alarm.delete --params '{"alarmIdList
200
201
  **用户输入**: "删除所有叫起床的闹钟"
201
202
 
202
203
  **前置查询**(alarm.query):
204
+
203
205
  ```json
204
206
  {
205
207
  "queryParams": "{\"titleList\":[\"起床\"]}"
@@ -207,6 +209,7 @@ openclaw nodes invoke --node <ID> --command alarm.delete --params '{"alarmIdList
207
209
  ```
208
210
 
209
211
  **查询结果处理**:
212
+
210
213
  - 返回闹钟ID"1"、"5"、"8" → 全部加入待删除列表
211
214
 
212
215
  **JSON 参数**:
@@ -219,7 +222,7 @@ openclaw nodes invoke --node <ID> --command alarm.delete --params '{"alarmIdList
219
222
 
220
223
  **Windows (Cmd) 执行命令**:
221
224
 
222
- ```Cmd
225
+ ```bash
223
226
  cmd /c 'openclaw nodes invoke --node <ID> --command alarm.delete --params "{\"alarmIdList\":\"[1,5,8]\"}"'
224
227
  ```
225
228
 
@@ -236,6 +239,7 @@ openclaw nodes invoke --node <ID> --command alarm.delete --params '{"alarmIdList
236
239
  **用户输入**: "删除工作日的闹钟"
237
240
 
238
241
  **前置查询**(alarm.query):
242
+
239
243
  ```json
240
244
  {
241
245
  "queryParams": "{\"repeatParamList\":[{\"realRepeatType\":1}]}"
@@ -243,6 +247,7 @@ openclaw nodes invoke --node <ID> --command alarm.delete --params '{"alarmIdList
243
247
  ```
244
248
 
245
249
  **查询结果处理**:
250
+
246
251
  - 返回多个闹钟ID:"2"、"4"、"6" → 全部加入待删除列表
247
252
 
248
253
  **JSON 参数**:
@@ -255,7 +260,7 @@ openclaw nodes invoke --node <ID> --command alarm.delete --params '{"alarmIdList
255
260
 
256
261
  **Windows (Cmd) 执行命令**:
257
262
 
258
- ```Cmd
263
+ ```bash
259
264
  cmd /c 'openclaw nodes invoke --node <ID> --command alarm.delete --params "{\"alarmIdList\":\"[2,4,6]\"}"'
260
265
  ```
261
266
 
@@ -272,6 +277,7 @@ openclaw nodes invoke --node <ID> --command alarm.delete --params '{"alarmIdList
272
277
  **用户输入**: "删除早上十点的闹钟"
273
278
 
274
279
  **前置查询**(alarm.query):
280
+
275
281
  ```json
276
282
  {
277
283
  "queryParams": "{\"timeList\":[\"T10:00:00\"]}"
@@ -279,6 +285,7 @@ openclaw nodes invoke --node <ID> --command alarm.delete --params '{"alarmIdList
279
285
  ```
280
286
 
281
287
  **查询结果处理**:
288
+
282
289
  - 未返回任何闹钟数据
283
290
 
284
291
  **处理结果**: 无需调用 alarm.delete,直接提示用户:"未找到符合条件的闹钟"
@@ -290,6 +297,7 @@ openclaw nodes invoke --node <ID> --command alarm.delete --params '{"alarmIdList
290
297
  **用户输入**: "删除早上八点的起床闹钟"
291
298
 
292
299
  **前置查询**(alarm.query):
300
+
293
301
  ```json
294
302
  {
295
303
  "queryParams": "{\"timeList\":[\"T08:00:00\"],\"titleList\":[\"起床\"]}"
@@ -297,6 +305,7 @@ openclaw nodes invoke --node <ID> --command alarm.delete --params '{"alarmIdList
297
305
  ```
298
306
 
299
307
  **查询结果处理**:
308
+
300
309
  - 返回闹钟ID"15" → 加入待删除列表
301
310
 
302
311
  **JSON 参数**:
@@ -309,7 +318,7 @@ openclaw nodes invoke --node <ID> --command alarm.delete --params '{"alarmIdList
309
318
 
310
319
  **Windows (Cmd) 执行命令**:
311
320
 
312
- ```Cmd
321
+ ```bash
313
322
  cmd /c 'openclaw nodes invoke --node <ID> --command alarm.delete --params "{\"alarmIdList\":\"[15]\"}"'
314
323
  ```
315
324
 
@@ -323,14 +332,14 @@ openclaw nodes invoke --node <ID> --command alarm.delete --params '{"alarmIdList
323
332
 
324
333
  删除操作成功时,返回操作结果详情:
325
334
 
326
- | 字段 | 类型 | 说明 |
327
- | :--- | :--- | :--- |
328
- | successList | array | 成功删除的闹钟列表 |
329
- | failedList | array | 删除失败的闹钟列表及原因 |
330
- | alarmId | string | 闹钟唯一标识 |
331
- | alarmTitle | string | 已删除的闹钟标题 |
332
- | alarmTime | string | 已删除的响铃时间(THH:mm:ss 格式) |
333
- | reason | string | 失败原因描述 |
335
+ | 字段 | 类型 | 说明 |
336
+ | :---------- | :----- | :--------------------------------- |
337
+ | successList | array | 成功删除的闹钟列表 |
338
+ | failedList | array | 删除失败的闹钟列表及原因 |
339
+ | alarmId | string | 闹钟唯一标识 |
340
+ | alarmTitle | string | 已删除的闹钟标题 |
341
+ | alarmTime | string | 已删除的响铃时间(THH:mm:ss 格式) |
342
+ | reason | string | 失败原因描述 |
334
343
 
335
344
  ## 错误处理
336
345
 
@@ -354,8 +363,8 @@ openclaw nodes invoke --node <ID> --command alarm.delete --params '{"alarmIdList
354
363
 
355
364
  ## 注意事项
356
365
 
357
- | 注意事项 | 说明 |
358
- | :--- | :--- |
359
- | 数据不可恢复 | 删除操作永久生效,无法撤销或恢复 |
360
- | 状态无关 | 无论闹钟处于启用(alarmState=1)或禁用(alarmState=2)状态,均可删除 |
361
- | 批量谨慎 | 批量删除前建议向用户展示待删除列表,避免误删 |
366
+ | 注意事项 | 说明 |
367
+ | :----------- | :--------------------------------------------------------------- |
368
+ | 数据不可恢复 | 删除操作永久生效,无法撤销或恢复 |
369
+ | 状态无关 | 无论闹钟处于启用(alarmState=1)或禁用(alarmState=2)状态,均可删除 |
370
+ | 批量谨慎 | 批量删除前建议向用户展示待删除列表,避免误删 |
@@ -164,6 +164,7 @@ alarm.disable
164
164
  **用户输入**: "关闭八点的闹钟"
165
165
 
166
166
  **前置查询**(alarm.query):
167
+
167
168
  ```json
168
169
  {
169
170
  "queryParams": "{\"timeList\":[\"T08:00:00\"]}"
@@ -171,6 +172,7 @@ alarm.disable
171
172
  ```
172
173
 
173
174
  **查询结果处理**:
175
+
174
176
  - 返回闹钟ID为"3",alarmState=1(启用)→ 加入待关闭列表
175
177
  - 返回闹钟ID为"5",alarmState=2(已关闭)→ 提示"5号闹钟已处于关闭状态"
176
178
 
@@ -184,7 +186,7 @@ alarm.disable
184
186
 
185
187
  **Windows (Cmd) 执行命令**:
186
188
 
187
- ```Cmd
189
+ ```bash
188
190
  cmd /c 'openclaw nodes invoke --node <ID> --command alarm.disable --params "{\"alarmIdList\":\"[3]\"}"'
189
191
  ```
190
192
 
@@ -201,6 +203,7 @@ openclaw nodes invoke --node <ID> --command alarm.disable --params '{"alarmIdLis
201
203
  **用户输入**: "关闭所有叫起床的闹钟"
202
204
 
203
205
  **前置查询**(alarm.query):
206
+
204
207
  ```json
205
208
  {
206
209
  "queryParams": "{\"titleList\":[\"起床\"]}"
@@ -208,6 +211,7 @@ openclaw nodes invoke --node <ID> --command alarm.disable --params '{"alarmIdLis
208
211
  ```
209
212
 
210
213
  **查询结果处理**:
214
+
211
215
  - 返回闹钟ID"1"(alarmState=1,启用)、"7"(alarmState=1,启用)、"9"(alarmState=2,已关闭)
212
216
  - "9号闹钟已处于关闭状态,无需重复操作"
213
217
 
@@ -221,7 +225,7 @@ openclaw nodes invoke --node <ID> --command alarm.disable --params '{"alarmIdLis
221
225
 
222
226
  **Windows (Cmd) 执行命令**:
223
227
 
224
- ```Cmd
228
+ ```bash
225
229
  cmd /c 'openclaw nodes invoke --node <ID> --command alarm.disable --params "{\"alarmIdList\":\"[1,7]\"}"'
226
230
  ```
227
231
 
@@ -238,6 +242,7 @@ openclaw nodes invoke --node <ID> --command alarm.disable --params '{"alarmIdLis
238
242
  **用户输入**: "关闭工作日的闹钟"
239
243
 
240
244
  **前置查询**(alarm.query):
245
+
241
246
  ```json
242
247
  {
243
248
  "queryParams": "{\"repeatParamList\":[{\"realRepeatType\":1}]}"
@@ -245,6 +250,7 @@ openclaw nodes invoke --node <ID> --command alarm.disable --params '{"alarmIdLis
245
250
  ```
246
251
 
247
252
  **查询结果处理**:
253
+
248
254
  - 返回多个闹钟,筛选出 alarmState=1 的ID:"2"、"4"、"6"
249
255
 
250
256
  **JSON 参数**:
@@ -257,7 +263,7 @@ openclaw nodes invoke --node <ID> --command alarm.disable --params '{"alarmIdLis
257
263
 
258
264
  **Windows (Cmd) 执行命令**:
259
265
 
260
- ```Cmd
266
+ ```bash
261
267
  cmd /c 'openclaw nodes invoke --node <ID> --command alarm.disable --params "{\"alarmIdList\":\"[2,4,6]\"}"'
262
268
  ```
263
269
 
@@ -274,6 +280,7 @@ openclaw nodes invoke --node <ID> --command alarm.disable --params '{"alarmIdLis
274
280
  **用户输入**: "关闭早上七点的闹钟"
275
281
 
276
282
  **前置查询**(alarm.query):
283
+
277
284
  ```json
278
285
  {
279
286
  "queryParams": "{\"timeList\":[\"T07:00:00\"]}"
@@ -281,6 +288,7 @@ openclaw nodes invoke --node <ID> --command alarm.disable --params '{"alarmIdLis
281
288
  ```
282
289
 
283
290
  **查询结果处理**:
291
+
284
292
  - 返回闹钟ID"10",alarmState=2(已关闭)
285
293
 
286
294
  **处理结果**: 无需调用 alarm.disable,直接提示用户:"该闹钟已处于关闭状态"
@@ -292,6 +300,7 @@ openclaw nodes invoke --node <ID> --command alarm.disable --params '{"alarmIdLis
292
300
  **用户输入**: "关闭早上八点的起床闹钟"
293
301
 
294
302
  **前置查询**(alarm.query):
303
+
295
304
  ```json
296
305
  {
297
306
  "queryParams": "{\"timeList\":[\"T08:00:00\"],\"titleList\":[\"起床\"]}"
@@ -299,6 +308,7 @@ openclaw nodes invoke --node <ID> --command alarm.disable --params '{"alarmIdLis
299
308
  ```
300
309
 
301
310
  **查询结果处理**:
311
+
302
312
  - 返回闹钟ID"15",alarmState=1(启用)
303
313
 
304
314
  **JSON 参数**:
@@ -311,7 +321,7 @@ openclaw nodes invoke --node <ID> --command alarm.disable --params '{"alarmIdLis
311
321
 
312
322
  **Windows (Cmd) 执行命令**:
313
323
 
314
- ```Cmd
324
+ ```bash
315
325
  cmd /c 'openclaw nodes invoke --node <ID> --command alarm.disable --params "{\"alarmIdList\":\"[15]\"}"'
316
326
  ```
317
327
 
@@ -325,14 +335,14 @@ openclaw nodes invoke --node <ID> --command alarm.disable --params '{"alarmIdLis
325
335
 
326
336
  关闭操作成功时,返回操作结果详情:
327
337
 
328
- | 字段 | 类型 | 说明 |
329
- | :--- | :--- | :--- |
330
- | successList | array | 成功关闭的闹钟列表 |
331
- | failedList | array | 关闭失败的闹钟列表及原因 |
332
- | alarmId | string | 闹钟唯一标识 |
333
- | alarmTitle | string | 闹钟标题 |
334
- | alarmTime | string | 响铃时间(THH:mm:ss 格式) |
335
- | reason | string | 失败原因描述 |
338
+ | 字段 | 类型 | 说明 |
339
+ | :---------- | :----- | :------------------------- |
340
+ | successList | array | 成功关闭的闹钟列表 |
341
+ | failedList | array | 关闭失败的闹钟列表及原因 |
342
+ | alarmId | string | 闹钟唯一标识 |
343
+ | alarmTitle | string | 闹钟标题 |
344
+ | alarmTime | string | 响铃时间(THH:mm:ss 格式) |
345
+ | reason | string | 失败原因描述 |
336
346
 
337
347
  ## 错误处理
338
348
 
@@ -356,7 +366,7 @@ openclaw nodes invoke --node <ID> --command alarm.disable --params '{"alarmIdLis
356
366
 
357
367
  ## 状态对照表
358
368
 
359
- | alarmState 值 | 状态 | 处理方式 |
360
- | :--- | :--- | :--- |
361
- | 1 | 打开(启用) | 加入 alarmIdList,执行关闭操作 |
362
- | 2 | 关闭(禁用) | 跳过,提示用户已关闭 |
369
+ | alarmState 值 | 状态 | 处理方式 |
370
+ | :------------ | :----------- | :----------------------------- |
371
+ | 1 | 打开(启用) | 加入 alarmIdList,执行关闭操作 |
372
+ | 2 | 关闭(禁用) | 跳过,提示用户已关闭 |