@honor-claw/yoyo 1.0.7-beta.5 → 1.0.7-beta.7

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 (37) hide show
  1. package/package.json +1 -1
  2. package/skills/yoyo-control/SKILL.md +47 -112
  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 +58 -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 +16 -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 +16 -11
  23. package/skills/yoyo-control/references/no-disturb.md +115 -24
  24. package/skills/yoyo-control/references/quiet-mode.md +15 -10
  25. package/skills/yoyo-control/references/ringing-mode.md +15 -10
  26. package/skills/yoyo-control/references/schedule-create.md +33 -22
  27. package/skills/yoyo-control/references/schedule-delete.md +36 -24
  28. package/skills/yoyo-control/references/schedule-search.md +133 -66
  29. package/skills/yoyo-control/references/schedule-update.md +43 -25
  30. package/skills/yoyo-control/references/screen-record.md +27 -11
  31. package/skills/yoyo-control/references/vibration-mode.md +10 -10
  32. package/skills/yoyo-control/references/volume-operate.md +34 -16
  33. package/skills/yoyo-control/references/wlan.md +55 -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
  37. package/skills/yoyo-control/scripts/invoke.js +0 -41
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honor-claw/yoyo",
3
- "version": "1.0.7-beta.5",
3
+ "version": "1.0.7-beta.7",
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` | 设备屏幕录制管理与控制工具。提供对设备屏幕录制功能的管理与控制能力,支持对屏幕录制功能的开启与关闭、相关录制参数的设置、当前录制状态的查询,并可结合指定应用对其在特定应用场景下的录制行为进行管理。 |
@@ -91,23 +91,22 @@ Before executing any device control operation, you **MUST** consult the correspo
91
91
  | `app` | `references/app-close.md` | 应用关闭工具。用于帮助用户关闭指定的 APP 应用,且不涉及任何具体 App 内部操作。 |
92
92
  | `contact` | `references/contact-search.md` | 联系人查找服务工具。提供按姓名、昵称、电话号码检索联系人的能力,支持区分自然人名与机构/黄页条目,可处理模糊匹配、多结果列表展示及序号选择场景。 |
93
93
  | `call` | `references/call-phone.md` | 智能电话拨打与管理工具。提供全面的电话呼叫功能,支持通过姓名、电话号码或黄页服务发起呼叫;支持指定拨号使用的SIM卡(移动/联通/电信/卡槽);具备重拨最后号码、回拨已接听来电、回拨未接听来电及通用回拨功能。 |
94
- | `call` | `references/call-search.md` | 提供查看通话记录(全部、未接听、已接听,或按联系人筛选)服务。 |
94
+ | `call` | `references/call-search.md` | 提供查看通话记录(全部、未接听、已接听,或按联系人筛选)服务。 |
95
95
  | `message` | `references/message-send.md` | 提供发送短信的服务。支持通过电话号码或联系人名称发送短信内容,可使用黄页发送短信至公共服务号码,以及发送名片信息给指定联系人。 |
96
- | `message` | `references/message-search.md` | 短信查询工具。用于查询设备上的短信记录,支持按联系人、电话号码或短信内容检索。当用户询问"查看/查询/搜索短信"等意图时调用。 |
97
- | `local-search` | `references/local-search.md` | 查询手机文档、笔记、日程、图库、yoyo记忆、钱包等 |
98
- | `file-upload` | `references/file-upload.md` | 文件上传工具。用于将本地文件上传到指定位置。当用户明确提供文件路径时直接调用;当用户仅描述文件(如"某文件"、"某照片")时,需先调用 local-search 查询获取文件路径,再执行上传。 |
99
- | `alarm` | `references/alarm-create.md` | 闹钟创建工具。用于创建闹钟,当用户明确创建/定一个闹钟时,属于创建闹钟。 |
100
- | `alarm` | `references/alarm-query.md` | 闹钟查询工具。用于查询已创建的闹钟列表,支持按时间、标题、重复类型等多维度筛选。 |
101
- | `alarm` | `references/alarm-delete.md` | 闹钟删除工具。用于永久删除已创建的闹钟,支持批量删除多个闹钟。 |
102
- | `alarm` | `references/alarm-disable.md` | 闹钟关闭工具。用于禁用已创建的闹钟,支持批量关闭多个闹钟。 |
103
- | `alarm` | `references/alarm-enable.md` | 闹钟打开工具。用于启用已创建的闹钟,支持批量打开多个闹钟。 |
104
- | `schedule` | `references/schedule-create.md` | 日程创建工具。用于在设备上创建新的日程安排,支持设置具体时间、日期和日程内容。当用户询问"创建/添加/新建日程"等意图时调用。用于创建日程的工具。当用户意图涉及添加日程/安排时,属于创建日程。 |
105
- | `schedule` | `references/schedule-search.md` | 日程查询工具。用于查询设备上已创建的日程安排,支持按时间、内容等多维度检索。 当用户询问"查看/查询/搜索日程"等意图时调用。用于搜索日程的工具。当用户意图涉及查找日程/安排时,属于查询日程。 |
106
- | `schedule` | `references/schedule-delete.md` | 日程删除工具。用于删除设备上已创建的日程安排,支持删除指定日程。当用户询问"删除/移除/取消日程"等意图时调用。用于删除日程的工具。当用户意图涉及移除日程/安排时,属于删除日程。 |
107
- | `schedule` | `references/schedule-update.md` | 日程编辑修改工具。用于修改设备上已创建日程的属性,支持修改时间、内容、地点等。当用户询问"修改/编辑/更改日程"等意图时调用。用于更新日程的工具。当用户意图涉及修改日程/安排属性时,属于编辑修改日程。 |
108
- | `wlan` | `references/wlan.md` | WLAN(无线网络、WiFi)管理工具。提供对WLAN及其相关能力的统一管理与控制,支持WLAN的开启与关闭、参数设置与状态查询,并可对WLAN使用的流量与流量提醒进行管理。 |
109
- | `bluetooth` | `references/bluetooth.md` | 蓝牙设备管理工具。提供蓝牙设备的统一管理与控制,支持蓝牙的打开/关闭、参数设置、状态查询、设备搜索与配对,并能管理已接收的蓝牙文件。 |
110
-
96
+ | `message` | `references/message-search.md` | 短信查询工具。用于查询设备上的短信记录,支持按联系人、电话号码或短信内容检索。当用户询问"查看/查询/搜索短信"等意图时调用。 |
97
+ | `local-search` | `references/local-search.md` | 查询手机文档、笔记、日程、图库、yoyo记忆、钱包等 |
98
+ | `file-upload` | `references/file-upload.md` | 文件上传工具。用于将本地文件上传到指定位置。当用户明确提供文件路径时直接调用;当用户仅描述文件(如"某文件"、"某照片")时,需先调用 local-search 查询获取文件路径,再执行上传。 |
99
+ | `alarm` | `references/alarm-create.md` | 闹钟创建工具。用于创建闹钟,当用户明确创建/定一个闹钟时,属于创建闹钟。 |
100
+ | `alarm` | `references/alarm-query.md` | 闹钟查询工具。用于查询已创建的闹钟列表,支持按时间、标题、重复类型等多维度筛选。 |
101
+ | `alarm` | `references/alarm-delete.md` | 闹钟删除工具。用于永久删除已创建的闹钟,支持批量删除多个闹钟。 |
102
+ | `alarm` | `references/alarm-disable.md` | 闹钟关闭工具。用于禁用已创建的闹钟,支持批量关闭多个闹钟。 |
103
+ | `alarm` | `references/alarm-enable.md` | 闹钟打开工具。用于启用已创建的闹钟,支持批量打开多个闹钟。 |
104
+ | `schedule` | `references/schedule-create.md` | 日程创建工具。用于在设备上创建新的日程安排,支持设置具体时间、日期和日程内容。当用户询问"创建/添加/新建日程"等意图时调用。用于创建日程的工具。当用户意图涉及添加日程/安排时,属于创建日程。 |
105
+ | `schedule` | `references/schedule-search.md` | 日程查询工具。用于查询设备上已创建的日程安排,支持按时间、内容等多维度检索。 当用户询问"查看/查询/搜索日程"等意图时调用。用于搜索日程的工具。当用户意图涉及查找日程/安排时,属于查询日程。 |
106
+ | `schedule` | `references/schedule-delete.md` | 日程删除工具。用于删除设备上已创建的日程安排,支持删除指定日程。当用户询问"删除/移除/取消日程"等意图时调用。用于删除日程的工具。当用户意图涉及移除日程/安排时,属于删除日程。 |
107
+ | `schedule` | `references/schedule-update.md` | 日程编辑修改工具。用于修改设备上已创建日程的属性,支持修改时间、内容、地点等。当用户询问"修改/编辑/更改日程"等意图时调用。用于更新日程的工具。当用户意图涉及修改日程/安排属性时,属于编辑修改日程。 |
108
+ | `wlan` | `references/wlan.md` | WLAN(无线网络、WiFi)管理工具。提供对WLAN及其相关能力的统一管理与控制,支持WLAN的开启与关闭、参数设置与状态查询,并可对WLAN使用的流量与流量提醒进行管理。 |
109
+ | `bluetooth` | `references/bluetooth.md` | 蓝牙设备管理工具。提供蓝牙设备的统一管理与控制,支持蓝牙的打开/关闭、参数设置、状态查询、设备搜索与配对,并能管理已接收的蓝牙文件。 |
111
110
 
112
111
  ### Command and Parameters Construction Workflow
113
112
 
@@ -153,21 +152,21 @@ Execute the following steps **in strict order** for each operation to construct
153
152
  - ❌ **DO NOT** infer parameter structure from similar tools
154
153
  - ❌ **DO NOT** assume enum values without checking reference
155
154
 
156
-
157
155
  ## Step 3: 特殊场景处理
158
156
 
159
- 在正式执行工具调用前,需先识别并处理以下两类特殊场景:
157
+ 在正式执行工具调用前,需先识别并处理如下特殊场景:
160
158
 
161
159
  ### 3.1 重复操作识别与处理
162
160
 
163
- **场景定义**:用户在短时间内(5分钟内)多次要求执行相同或高度相似的操作。
161
+ **场景定义**:用户在短时间内多次要求执行相同或高度相似的操作。
164
162
 
165
163
  **识别逻辑**:
164
+
166
165
  ```
167
166
  ┌─────────────────────────────────────────────────────────────┐
168
167
  │ 重复操作识别 │
169
168
  │ - 检查当前会话历史记录 │
170
- │ - 比对:操作类型(action_type)、目标对象(target)、 │
169
+ │ - 比对:操作类型(actionType)、目标对象(target)、 │
171
170
  │ 设备(device)、应用(app)等关键参数 │
172
171
  │ - 时间窗口:5分钟内 │
173
172
  │ - 结果:已执行成功且参数匹配 → 判定为重复操作 │
@@ -176,90 +175,44 @@ Execute the following steps **in strict order** for each operation to construct
176
175
 
177
176
  **处理策略**:
178
177
 
179
- | 场景 | 处理方式 | 话术示例 |
180
- | :--- | :--- | :--- |
181
- | 完全重复(参数完全一致) | 直接执行 + 智能提示 | "刚已经帮你打开蓝牙了,你是想要再操作一次吗?" |
182
- | 疑似重复(核心参数一致) | 确认后执行 | "蓝牙已经是打开状态了,你是要重新开关一次吗?" |
183
- | 用户坚持重复 | 无条件执行 | "好的,马上再帮你执行一次" |
184
-
185
- **智能话术模板**:
186
-
187
- ```
188
- 【直接执行型】
189
- "刚已经帮你[操作]了,我再执行一次~"
190
- "好的,马上再帮你[操作]一次"
191
-
192
- 【确认型】
193
- "[功能]已经是[状态]了,你是要重新[操作]一次吗?"
194
- "刚执行过了,还需要再来一次吗?"
195
-
196
- 【幽默型】
197
- "收到!虽然刚[操作]过,但再来一次也没问题~"
198
- "好嘞,[操作]×2!"
199
- ```
200
-
201
- ### 3.2 定时任务识别与拒绝
178
+ 当用户提出重复的请求,直接执行,不能质疑用户。
202
179
 
203
- **场景定义**:用户要求执行带有时间延迟、定时触发或条件触发的操作。
180
+ ### 3.2 查询类请求的特殊处理
204
181
 
205
- **识别关键词**:
206
- - 时间延迟:"X分钟后"、"X小时后"、"过一会儿"
207
- - 定时触发:"定时"、"到时候"、"X点的时候"
208
- - 条件触发:"等...之后"、"当...的时候"
182
+ **场景定义**:用户在短时间内多次要求执行相同或高度相似的操作。
209
183
 
210
184
  **识别逻辑**:
185
+
211
186
  ```
212
187
  ┌─────────────────────────────────────────────────────────────┐
213
- 定时任务识别
214
- - 解析用户意图中的时间修饰词
215
- │ - 匹配定时关键词库
216
- │ - 提取:延迟时长、触发条件、执行序列(A然后B)
217
- - 结果:包含非常规即时执行意图 判定为定时任务
188
+ 查询类请求特殊处理
189
+
190
+ │ - 检查当前会话历史记录
191
+ │ - 比对:请求类型(actionType)是否为查询类操作
192
+ └─ 查询闹钟 / 查询日程 / 查短信 / 查联系人 / 查通讯录
193
+ │ - 结果:命中查询类指令 → 触发特殊交互策略 │
194
+ │ │
195
+ │ 【特殊交互策略】 │
196
+ │ 普通查询:回复"好的" │
197
+ │ 特殊查询(闹钟/日程/短信/联系人/通讯录): │
198
+ │ 根据实际返回结果进行针对性交互,而非固定话术 │
218
199
  └─────────────────────────────────────────────────────────────┘
219
200
  ```
220
201
 
221
202
  **处理策略**:
222
203
 
204
+ <<<<<<< Updated upstream
205
+ 正常回复用户“好的”。
206
+ 其中,特殊指令,包含查询闹钟/查询日程/查短信/查联系人/查通讯录,这些根据查询的具体返回结果进行交互。
207
+ =======
223
208
  | 场景 | 处理方式 | 话术示例 |
224
- | :--- | :--- | :--- |
209
+ | ------------------- | ----------------------------- | -------------------------------------------------- |
225
210
  | 延迟执行(X分钟后) | 提示不支持 + 询问是否立即执行 | "我还不支持定时任务,只能现在帮你[操作],需要吗?" |
226
211
  | 定时触发(X点执行) | 提示不支持 + 建议替代方案 | "目前无法定时执行,你可以到点了再叫我哦" |
227
212
  | 序列操作(A然后B) | 拆解为即时操作 + 说明限制 | "我可以现在帮你[操作A],但[操作B]需要到时候再叫我" |
228
213
  | 条件触发(等X后Y) | 提示不支持条件执行 | "我做不到自动等待,你可以等[条件]满足后再叫我" |
229
214
 
230
- **标准话术模板**:
231
-
232
- ```
233
- 【延迟执行】
234
- "我还不支持定时任务,只能立刻帮你[操作],需要吗?"
235
- "目前做不到[延迟]后自动[操作],我现在就帮你[操作]可以吗?"
236
-
237
- 【定时触发】
238
- "定时功能还在学习中~ 你可以[时间点]的时候再叫我[操作]"
239
- "暂时不支持定时[操作],到[时间点]你提醒我一下?"
240
-
241
- 【序列操作】
242
- "我可以现在[操作A],但[操作B]需要你[时间点/条件]后再叫我"
243
- "不支持自动连续操作,我先帮你[操作A],[操作B]到时候再说?"
244
-
245
- 【条件触发】
246
- "我做不到自动等待[条件],你可以在[条件]满足后再叫我[操作]"
247
- "条件触发功能暂不支持,[条件]发生后再喊我哦"
248
- ```
249
-
250
- **执行策略**:
251
-
252
- ```
253
- ┌─────────────────────────────────────────────────────────────┐
254
- │ 用户确认后执行即时操作 │
255
- │ - 用户同意立即执行 → 继续Step 3,按正常流程执行 │
256
- │ - 用户拒绝/坚持定时 → 礼貌结束,不提供替代方案 │
257
- │ - 用户询问替代方案 → 建议使用系统自带定时功能或闹钟提醒 │
258
- └─────────────────────────────────────────────────────────────┘
259
- ```
260
-
261
-
262
-
215
+ > > > > > > > Stashed changes
263
216
 
264
217
  ## Step 4. Invoke Node With Command and Parameters
265
218
 
@@ -302,30 +255,12 @@ Before executing any command, you **MUST** detect the current platform and use t
302
255
 
303
256
  #### 平台特定命令格式
304
257
 
305
- | Platform | Shell Type | Quote Style | JSON Escaping Required | Example Command |
306
- | ----------- | ---------- | ------------------------------- | ---------------------- | -------------------------------------------------------------------------------------------- |
258
+ | Platform | Shell Type | Quote Style | JSON Escaping Required | Example Command |
259
+ | ----------- | ---------- | ------------------------------- | ---------------------- | ----------------------------------------------------------------------------------------------------------- |
307
260
  | **Windows** | CMD | Double quotes, escape inner `"` | ✅ YES | `cmd /c 'openclaw nodes invoke --node <ID> --command phone.call --params "{\"actionType\":\"打电话\"}"` |
308
261
  | **Windows** | PowerShell | Double quotes, escape inner `$` | ✅ YES | `cmd /c 'openclaw nodes invoke --node <ID> --command phone.call --params "{\`"actionType\`":\`"打电话\`"}"` |
309
- | **Linux** | Bash | Single quotes | ❌ NO | `openclaw nodes invoke <IP> --command phone.call --params '{"actionType":"打电话"}'` |
310
- | **macOS** | Bash/Zsh | Single quotes | ❌ NO | `openclaw nodes invoke <IP> --command phone.call --params '{"actionType":"打电话"}'` |
311
-
312
- **Universal execution method (all platforms):**
313
-
314
- Use the invoke script which automatically handles platform-specific JSON parameter formatting and shell execution.
315
-
316
- ```bash
317
- node {baseDir}/scripts/invoke.js --node <ID> --command <command> --params '<json>'
318
- ```
319
-
320
- **Execution examples:**
321
-
322
- ```bash
323
- # Phone call
324
- node {baseDir}/scripts/invoke.js --node 192.168.1.100 --command phone.call --params '{"actionType":"打电话","phoneNumber":"10086"}'
325
-
326
- # Volume control
327
- node {baseDir}/scripts/invoke.js --node 192.168.1.100 --command volume.operate --params '{"actionType":"增加","level":50}'
328
- ```
262
+ | **Linux** | Bash | Single quotes | ❌ NO | `openclaw nodes invoke <IP> --command phone.call --params '{"actionType":"打电话"}'` |
263
+ | **macOS** | Bash/Zsh | Single quotes | ❌ NO | `openclaw nodes invoke <IP> --command phone.call --params '{"actionType":"打电话"}'` |
329
264
 
330
265
  ### Error Handling
331
266
 
@@ -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
+ | 批量谨慎 | 批量删除前建议向用户展示待删除列表,避免误删 |