@honor-claw/yoyo 1.2.0-beta.8 → 1.2.0

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.
@@ -7,7 +7,6 @@ description: >
7
7
  # Camera 相机
8
8
 
9
9
  ## Tool Command
10
-
11
10
  ```bash
12
11
  camera
13
12
  ```
@@ -15,7 +14,6 @@ camera
15
14
  ## 集成工作流
16
15
 
17
16
  ### Step 1: 意图解析与参数组装
18
-
19
17
  ```
20
18
  ┌─────────────────────────────────────────────────────────────┐
21
19
  │ 意图识别与参数提取 │
@@ -46,13 +44,11 @@ camera
46
44
  ```
47
45
 
48
46
  ### Step 2: 执行调用
49
-
50
47
  - 根据操作系统选择对应的命令格式
51
48
  - Windows: Cmd 格式(双引号需转义)
52
49
  - Linux: Bash 格式(单引号包裹)
53
50
 
54
51
  ## 参数定义
55
-
56
52
  ```json
57
53
  {
58
54
  "actionType": {
@@ -81,7 +77,6 @@ camera
81
77
  ```
82
78
 
83
79
  ### 参数注意事项
84
-
85
80
  1. **同义词/间接表述映射**: `"录影/摄像/录视频"`→`target`=`录像`;`"照相/拍张/来一张"`→`target`=`拍照`;`"开启/启动/打开相机"`→`actionType`=`打开`;`"停止/结束/退出"`→`actionType`=`关闭`;`"自拍"`优先映射为`target`=`自拍`。
86
81
  2. **默认值或缺省行为**: 未指明`camera`时,`target`为`拍照`或`录像`默认使用后置;`target`为`自拍`默认使用前置;未指定`app`时默认调用系统相机;未提供`mode`时保持当前相机默认,不做推断。
87
82
  3. **参数间关联/依赖/互斥关系**: `target`=`模式`时通常需提供`mode`(否则需追问);在`拍照/录像/自拍`场景下如同时提供`mode`,表示以该模式进行对应拍摄;`actionType`=`关闭`且`target`=`录像`表示停止当前录制;`actionType`=`关闭`、`target`=`模式`、`mode`=`闪光灯`表示关闭闪光灯。
@@ -90,13 +85,11 @@ camera
90
85
  ## Query 示例及输出
91
86
 
92
87
  ### 示例 1: 停止正在进行的录像
93
-
94
88
  **用户输入**: "停止录制视频"
95
89
 
96
90
  **工具**: "camera"
97
91
 
98
92
  **JSON 参数**:
99
-
100
93
  ```json
101
94
  {
102
95
  "actionType": "关闭",
@@ -105,13 +98,11 @@ camera
105
98
  ```
106
99
 
107
100
  **Windows (Cmd) 执行命令**:
108
-
109
101
  ```bash
110
102
  cmd /c 'openclaw nodes invoke --node <ID> --command camera --params "{\"actionType\":\"关闭\",\"target\":\"录像\"}"'
111
103
  ```
112
104
 
113
105
  **Linux (Bash) 执行命令**:
114
-
115
106
  ```bash
116
107
  openclaw nodes invoke --node <ID> --command camera --params '{"actionType":"关闭","target":"录像"}'
117
108
  ```
@@ -119,13 +110,11 @@ openclaw nodes invoke --node <ID> --command camera --params '{"actionType":"关
119
110
  ---
120
111
 
121
112
  ### 示例 2: 使用前置摄像头拍照
122
-
123
113
  **用户输入**: "front摄像头拍照"
124
114
 
125
115
  **工具**: "camera"
126
116
 
127
117
  **JSON 参数**:
128
-
129
118
  ```json
130
119
  {
131
120
  "actionType": "打开",
@@ -135,13 +124,11 @@ openclaw nodes invoke --node <ID> --command camera --params '{"actionType":"关
135
124
  ```
136
125
 
137
126
  **Windows (Cmd) 执行命令**:
138
-
139
127
  ```bash
140
128
  cmd /c 'openclaw nodes invoke --node <ID> --command camera --params "{\"actionType\":\"打开\",\"target\":\"拍照\",\"camera\":\"front\"}"'
141
129
  ```
142
130
 
143
131
  **Linux (Bash) 执行命令**:
144
-
145
132
  ```bash
146
133
  openclaw nodes invoke --node <ID> --command camera --params '{"actionType":"打开","target":"拍照","camera":"front"}'
147
134
  ```
@@ -149,13 +136,11 @@ openclaw nodes invoke --node <ID> --command camera --params '{"actionType":"打
149
136
  ---
150
137
 
151
138
  ### 示例 3: 夜景模式拍照
152
-
153
139
  **用户输入**: "用夜景拍张相吧"
154
140
 
155
141
  **工具**: "camera"
156
142
 
157
143
  **JSON 参数**:
158
-
159
144
  ```json
160
145
  {
161
146
  "actionType": "打开",
@@ -165,13 +150,11 @@ openclaw nodes invoke --node <ID> --command camera --params '{"actionType":"打
165
150
  ```
166
151
 
167
152
  **Windows (Cmd) 执行命令**:
168
-
169
153
  ```bash
170
154
  cmd /c 'openclaw nodes invoke --node <ID> --command camera --params "{\"actionType\":\"打开\",\"target\":\"拍照\",\"mode\":\"夜景\"}"'
171
155
  ```
172
156
 
173
157
  **Linux (Bash) 执行命令**:
174
-
175
158
  ```bash
176
159
  openclaw nodes invoke --node <ID> --command camera --params '{"actionType":"打开","target":"拍照","mode":"夜景"}'
177
160
  ```
@@ -179,13 +162,11 @@ openclaw nodes invoke --node <ID> --command camera --params '{"actionType":"打
179
162
  ---
180
163
 
181
164
  ### 示例 4: 切换到前置摄像头的自拍拍摄模式
182
-
183
165
  **用户输入**: "切换到前置摄像头的自拍拍摄模式"
184
166
 
185
167
  **工具**: "camera"
186
168
 
187
169
  **JSON 参数**:
188
-
189
170
  ```json
190
171
  {
191
172
  "actionType": "打开",
@@ -197,13 +178,11 @@ openclaw nodes invoke --node <ID> --command camera --params '{"actionType":"打
197
178
  ```
198
179
 
199
180
  **Windows (Cmd) 执行命令**:
200
-
201
181
  ```bash
202
182
  cmd /c 'openclaw nodes invoke --node <ID> --command camera --params "{\"actionType\":\"打开\",\"target\":\"模式\",\"mode\":\"自拍拍摄模式\",\"camera\":\"前置\",\"app\":\"相机\"}"'
203
183
  ```
204
184
 
205
185
  **Linux (Bash) 执行命令**:
206
-
207
186
  ```bash
208
187
  openclaw nodes invoke --node <ID> --command camera --params '{"actionType":"打开","target":"模式","mode":"自拍拍摄模式","camera":"前置","app":"相机"}'
209
188
  ```
@@ -211,13 +190,11 @@ openclaw nodes invoke --node <ID> --command camera --params '{"actionType":"打
211
190
  ---
212
191
 
213
192
  ### 示例 5: 打开相机以广角模式拍照
214
-
215
193
  **用户输入**: "打开相机使用广角镜头拍照"
216
194
 
217
195
  **工具**: "camera"
218
196
 
219
197
  **JSON 参数**:
220
-
221
198
  ```json
222
199
  {
223
200
  "actionType": "打开",
@@ -228,15 +205,13 @@ openclaw nodes invoke --node <ID> --command camera --params '{"actionType":"打
228
205
  ```
229
206
 
230
207
  **Windows (Cmd) 执行命令**:
231
-
232
208
  ```bash
233
209
  cmd /c 'openclaw nodes invoke --node <ID> --command camera --params "{\"actionType\":\"打开\",\"target\":\"拍照\",\"mode\":\"广角镜头\",\"app\":\"相机\"}"'
234
210
  ```
235
211
 
236
212
  **Linux (Bash) 执行命令**:
237
-
238
213
  ```bash
239
214
  openclaw nodes invoke --node <ID> --command camera --params '{"actionType":"打开","target":"拍照","mode":"广角镜头","app":"相机"}'
240
215
  ```
241
216
 
242
- ---
217
+ ---
@@ -7,7 +7,6 @@ description: >
7
7
  # Dark Mode 深色模式
8
8
 
9
9
  ## Tool Command
10
-
11
10
  ```bash
12
11
  dark-mode
13
12
  ```
@@ -15,7 +14,6 @@ dark-mode
15
14
  ## 集成工作流
16
15
 
17
16
  ### Step 1: 意图解析与参数组装
18
-
19
17
  ```
20
18
  ┌─────────────────────────────────────────────────────────────┐
21
19
  │ 意图识别与参数提取 │
@@ -45,18 +43,21 @@ dark-mode
45
43
  ```
46
44
 
47
45
  ### Step 2: 执行调用
48
-
49
46
  - 根据操作系统选择对应的命令格式
50
47
  - Windows: Cmd 格式(双引号需转义)
51
48
  - Linux: Bash 格式(单引号包裹)
52
49
 
53
50
  ## 参数定义
54
-
55
51
  ```json
56
52
  {
57
53
  "actionType": {
58
54
  "type": "string",
59
- "enum": ["设置", "查询", "打开", "关闭"],
55
+ "enum": [
56
+ "设置",
57
+ "查询",
58
+ "打开",
59
+ "关闭"
60
+ ],
60
61
  "description": "必填参数,深色模式相关操作的动作类型,用于明确本次指令的主要行为。当涉及调整深色模式相关显示参数或策略时使用设置;当获取当前深色模式开启状态或配置信息时使用查询;当要求启用深色模式显示效果时使用打开;当要求停用深色模式并恢复其他显示样式时使用关闭。"
61
62
  },
62
63
  "app": {
@@ -67,7 +68,6 @@ dark-mode
67
68
  ```
68
69
 
69
70
  ### 参数注意事项
70
-
71
71
  1. 必填参数取值:`actionType` 为必填参数,且 `actionType` 的取值必须在枚举列表中。
72
72
  2. 同义词/间接表述映射: 用户口语化表述需映射到`actionType`。例如:`"浅色外观"、"亮色模式"、"明亮模式"`→`"关闭"`;`"夜间模式"、"黑暗模式"、"深色主题"`统一识别为深色模式相关;`"进入设置/配置深色模式"`→`"设置"`;`"启用/打开/切换到深色模式"`→`"打开"`;`"禁用/关闭/退出深色模式"`→`"关闭"`。
73
73
  3. 默认值或缺省行为: 未指定`app`时默认为系统全局操作;当无法从用户输入中可靠判断`actionType`时需追问确认,不进行默认推断。
@@ -83,7 +83,6 @@ dark-mode
83
83
  **工具**: "dark-mode"
84
84
 
85
85
  **JSON 参数**:
86
-
87
86
  ```json
88
87
  {
89
88
  "actionType": "打开"
@@ -91,13 +90,11 @@ dark-mode
91
90
  ```
92
91
 
93
92
  **Windows (Cmd) 执行命令**:
94
-
95
93
  ```bash
96
94
  cmd /c 'openclaw nodes invoke --node <ID> --command dark-mode --params "{\"actionType\":\"打开\"}"'
97
95
  ```
98
96
 
99
97
  **Linux (Bash) 执行命令**:
100
-
101
98
  ```bash
102
99
  openclaw nodes invoke --node <ID> --command dark-mode --params '{"actionType":"打开"}'
103
100
  ```
@@ -111,7 +108,6 @@ openclaw nodes invoke --node <ID> --command dark-mode --params '{"actionType":"
111
108
  **工具**: "dark-mode"
112
109
 
113
110
  **JSON 参数**:
114
-
115
111
  ```json
116
112
  {
117
113
  "actionType": "关闭"
@@ -119,13 +115,11 @@ openclaw nodes invoke --node <ID> --command dark-mode --params '{"actionType":"
119
115
  ```
120
116
 
121
117
  **Windows (Cmd) 执行命令**:
122
-
123
118
  ```bash
124
119
  cmd /c 'openclaw nodes invoke --node <ID> --command dark-mode --params "{\"actionType\":\"关闭\"}"'
125
120
  ```
126
121
 
127
122
  **Linux (Bash) 执行命令**:
128
-
129
123
  ```bash
130
124
  openclaw nodes invoke --node <ID> --command dark-mode --params '{"actionType":"关闭"}'
131
125
  ```
@@ -139,7 +133,6 @@ openclaw nodes invoke --node <ID> --command dark-mode --params '{"actionType":"
139
133
  **工具**: "dark-mode"
140
134
 
141
135
  **JSON 参数**:
142
-
143
136
  ```json
144
137
  {
145
138
  "actionType": "设置"
@@ -147,13 +140,11 @@ openclaw nodes invoke --node <ID> --command dark-mode --params '{"actionType":"
147
140
  ```
148
141
 
149
142
  **Windows (Cmd) 执行命令**:
150
-
151
143
  ```bash
152
144
  cmd /c 'openclaw nodes invoke --node <ID> --command dark-mode --params "{\"actionType\":\"设置\"}"'
153
145
  ```
154
146
 
155
147
  **Linux (Bash) 执行命令**:
156
-
157
148
  ```bash
158
149
  openclaw nodes invoke --node <ID> --command dark-mode --params '{"actionType":"设置"}'
159
150
  ```
@@ -167,7 +158,6 @@ openclaw nodes invoke --node <ID> --command dark-mode --params '{"actionType":"
167
158
  **工具**: "dark-mode"
168
159
 
169
160
  **JSON 参数**:
170
-
171
161
  ```json
172
162
  {
173
163
  "actionType": "关闭"
@@ -175,13 +165,11 @@ openclaw nodes invoke --node <ID> --command dark-mode --params '{"actionType":"
175
165
  ```
176
166
 
177
167
  **Windows (Cmd) 执行命令**:
178
-
179
168
  ```bash
180
169
  cmd /c 'openclaw nodes invoke --node <ID> --command dark-mode --params "{\"actionType\":\"关闭\"}"'
181
170
  ```
182
171
 
183
172
  **Linux (Bash) 执行命令**:
184
-
185
173
  ```bash
186
174
  openclaw nodes invoke --node <ID> --command dark-mode --params '{"actionType":"关闭"}'
187
175
  ```
@@ -195,7 +183,6 @@ openclaw nodes invoke --node <ID> --command dark-mode --params '{"actionType":"
195
183
  **工具**: "dark-mode"
196
184
 
197
185
  **JSON 参数**:
198
-
199
186
  ```json
200
187
  {
201
188
  "actionType": "打开"
@@ -203,13 +190,11 @@ openclaw nodes invoke --node <ID> --command dark-mode --params '{"actionType":"
203
190
  ```
204
191
 
205
192
  **Windows (Cmd) 执行命令**:
206
-
207
193
  ```bash
208
194
  cmd /c 'openclaw nodes invoke --node <ID> --command dark-mode --params "{\"actionType\":\"打开\"}"'
209
195
  ```
210
196
 
211
197
  **Linux (Bash) 执行命令**:
212
-
213
198
  ```bash
214
199
  openclaw nodes invoke --node <ID> --command dark-mode --params '{"actionType":"打开"}'
215
- ```
200
+ ```
@@ -7,7 +7,6 @@ description: >
7
7
  # Device Operation 设备操作
8
8
 
9
9
  ## Tool Command
10
-
11
10
  ```bash
12
11
  device-operation
13
12
  ```
@@ -15,7 +14,6 @@ device-operation
15
14
  ## 集成工作流
16
15
 
17
16
  ### Step 1: 意图解析与参数组装
18
-
19
17
  ```
20
18
  ┌─────────────────────────────────────────────────────────────┐
21
19
  │ 意图识别与参数提取 │
@@ -45,18 +43,26 @@ device-operation
45
43
  ```
46
44
 
47
45
  ### Step 2: 执行调用
48
-
49
46
  - 根据操作系统选择对应的命令格式
50
47
  - Windows: Cmd 格式(双引号需转义)
51
48
  - Linux: Bash 格式(单引号包裹)
52
49
 
53
50
  ## 参数定义
54
-
55
51
  ```json
56
52
  {
57
53
  "actionType": {
58
54
  "type": "string",
59
- "enum": ["开机", "关机", "重启", "待机", "休眠", "灭屏", "锁屏", "亮屏", "退出"],
55
+ "enum": [
56
+ "开机",
57
+ "关机",
58
+ "重启",
59
+ "待机",
60
+ "休眠",
61
+ "灭屏",
62
+ "锁屏",
63
+ "亮屏",
64
+ "退出"
65
+ ],
60
66
  "description": "必填参数,设备操作的动作类型,用于明确本次指令执行的具体行为。"
61
67
  },
62
68
  "device": {
@@ -69,7 +75,10 @@ device-operation
69
75
  },
70
76
  "confirmState": {
71
77
  "type": "string",
72
- "enum": ["确认", "取消"],
78
+ "enum": [
79
+ "确认",
80
+ "取消"
81
+ ],
73
82
  "description": "指定该操作是否需要进行二次确认,以避免误触发关键设备指令。"
74
83
  },
75
84
  "app": {
@@ -80,7 +89,6 @@ device-operation
80
89
  ```
81
90
 
82
91
  ### 参数注意事项
83
-
84
92
  1. 必填参数取值:`actionType` 为必填参数,且 `actionType` 的取值必须在枚举列表中。
85
93
  2. 同义词/间接表述映射: `"重新启动/重启/重新开机"→重启`、`"关机/关闭电源/切断电源"→关机`、`"息屏/熄屏/关闭屏幕"→灭屏`、`"点亮屏幕/唤醒屏幕/打开屏幕"→亮屏`、`"锁定屏幕/锁住屏幕"→锁屏`、`"进入待机/待机状态"→待机`、`"睡眠/进入休眠"→休眠`、`"退出/关了/关闭当前操作"→退出`。
86
94
  3. 关键参数说明:未提供`confirmState`时默认不进行二次确认;但是,当`actionType`为`"开机"`、`"关机"`或`"重启"`时,必须进行二次确认,**由模型生成二次确认的话术**。
@@ -91,14 +99,12 @@ device-operation
91
99
  ## Query 示例及输出
92
100
 
93
101
  ### 示例 1: 立即重启当前设备
94
-
95
102
  **用户输入**: "重启"
96
103
  **二次确认话术**: "是否确认重启手机?"
97
104
  **用户确认**: "确认"
98
105
  **工具**: "device-operation"
99
106
 
100
107
  **JSON 参数**:
101
-
102
108
  ```json
103
109
  {
104
110
  "actionType": "重启",
@@ -107,13 +113,11 @@ device-operation
107
113
  ```
108
114
 
109
115
  **Windows (Cmd) 执行命令**:
110
-
111
116
  ```bash
112
117
  cmd /c 'openclaw nodes invoke --node <ID> --command device-operation --params "{\"actionType\":\"重启\",\"confirmState\":\"确认\"}"'
113
118
  ```
114
119
 
115
120
  **Linux (Bash) 执行命令**:
116
-
117
121
  ```bash
118
122
  openclaw nodes invoke --node <ID> --command device-operation --params '{"actionType":"重启","confirmState":"确认"}'
119
123
  ```
@@ -121,14 +125,12 @@ openclaw nodes invoke --node <ID> --command device-operation --params '{"actionT
121
125
  ---
122
126
 
123
127
  ### 示例 2: 3分钟后重启手机
124
-
125
128
  **用户输入**: "请在3分钟后帮我重启手机"
126
129
  **二次确认话术**: "是否确认在3分钟后重启手机?"
127
130
  **用户确认**: "确认"
128
131
  **工具**: "device-operation"
129
132
 
130
133
  **JSON 参数**:
131
-
132
134
  ```json
133
135
  {
134
136
  "actionType": "重启",
@@ -139,13 +141,11 @@ openclaw nodes invoke --node <ID> --command device-operation --params '{"actionT
139
141
  ```
140
142
 
141
143
  **Windows (Cmd) 执行命令**:
142
-
143
144
  ```bash
144
145
  cmd /c 'openclaw nodes invoke --node <ID> --command device-operation --params "{\"actionType\":\"重启\",\"device\":\"手机\",\"time\":\"3分钟后\",\"confirmState\":\"确认\"}"'
145
146
  ```
146
147
 
147
148
  **Linux (Bash) 执行命令**:
148
-
149
149
  ```bash
150
150
  openclaw nodes invoke --node <ID> --command device-operation --params '{"actionType":"重启","device":"手机","time":"3分钟后","confirmState":"确认"}'
151
151
  ```
@@ -153,14 +153,12 @@ openclaw nodes invoke --node <ID> --command device-operation --params '{"actionT
153
153
  ---
154
154
 
155
155
  ### 示例 3: 确认关机
156
-
157
156
  **用户输入**: "确认关机"
158
157
  **二次确认话术**: "是否确认关机?"
159
158
  **用户确认**: "确认"
160
159
  **工具**: "device-operation"
161
160
 
162
161
  **JSON 参数**:
163
-
164
162
  ```json
165
163
  {
166
164
  "actionType": "关机",
@@ -169,13 +167,11 @@ openclaw nodes invoke --node <ID> --command device-operation --params '{"actionT
169
167
  ```
170
168
 
171
169
  **Windows (Cmd) 执行命令**:
172
-
173
170
  ```bash
174
171
  cmd /c 'openclaw nodes invoke --node <ID> --command device-operation --params "{\"actionType\":\"关机\",\"confirmState\":\"确认\"}"'
175
172
  ```
176
173
 
177
174
  **Linux (Bash) 执行命令**:
178
-
179
175
  ```bash
180
176
  openclaw nodes invoke --node <ID> --command device-operation --params '{"actionType":"关机","confirmState":"确认"}'
181
177
  ```
@@ -183,13 +179,11 @@ openclaw nodes invoke --node <ID> --command device-operation --params '{"actionT
183
179
  ---
184
180
 
185
181
  ### 示例 4: 锁定手机屏幕
186
-
187
182
  **用户输入**: "锁定手机屏幕吧"
188
183
 
189
184
  **工具**: "device-operation"
190
185
 
191
186
  **JSON 参数**:
192
-
193
187
  ```json
194
188
  {
195
189
  "actionType": "锁屏",
@@ -198,13 +192,11 @@ openclaw nodes invoke --node <ID> --command device-operation --params '{"actionT
198
192
  ```
199
193
 
200
194
  **Windows (Cmd) 执行命令**:
201
-
202
195
  ```bash
203
196
  cmd /c 'openclaw nodes invoke --node <ID> --command device-operation --params "{\"actionType\":\"锁屏\",\"device\":\"手机\"}"'
204
197
  ```
205
198
 
206
199
  **Linux (Bash) 执行命令**:
207
-
208
200
  ```bash
209
201
  openclaw nodes invoke --node <ID> --command device-operation --params '{"actionType":"锁屏","device":"手机"}'
210
202
  ```
@@ -212,13 +204,11 @@ openclaw nodes invoke --node <ID> --command device-operation --params '{"actionT
212
204
  ---
213
205
 
214
206
  ### 示例 5: 退出当前操作
215
-
216
207
  **用户输入**: "你可以关了"
217
208
 
218
209
  **工具**: "device-operation"
219
210
 
220
211
  **JSON 参数**:
221
-
222
212
  ```json
223
213
  {
224
214
  "actionType": "退出"
@@ -226,13 +216,11 @@ openclaw nodes invoke --node <ID> --command device-operation --params '{"actionT
226
216
  ```
227
217
 
228
218
  **Windows (Cmd) 执行命令**:
229
-
230
219
  ```bash
231
220
  cmd /c 'openclaw nodes invoke --node <ID> --command device-operation --params "{\"actionType\":\"退出\"}"'
232
221
  ```
233
222
 
234
223
  **Linux (Bash) 执行命令**:
235
-
236
224
  ```bash
237
225
  openclaw nodes invoke --node <ID> --command device-operation --params '{"actionType":"退出"}'
238
- ```
226
+ ```