@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.
- package/package.json +1 -1
- package/skills/yoyo-control/SKILL.md +46 -44
- package/skills/yoyo-control/references/alarm-create.md +37 -0
- package/skills/yoyo-control/references/app-uninstall.md +3 -25
- package/skills/yoyo-control/references/audio-record.md +14 -28
- package/skills/yoyo-control/references/autoscreen-onnotice.md +7 -27
- package/skills/yoyo-control/references/battery.md +11 -42
- package/skills/yoyo-control/references/brightness.md +1 -26
- package/skills/yoyo-control/references/camera.md +1 -26
- package/skills/yoyo-control/references/dark-mode.md +7 -22
- package/skills/yoyo-control/references/device-operation.md +16 -28
- package/skills/yoyo-control/references/eyecomfort.md +19 -24
- package/skills/yoyo-control/references/location-service.md +6 -26
- package/skills/yoyo-control/references/nfc.md +1 -21
- package/skills/yoyo-control/references/schedule-delete.md +1 -1
- package/skills/yoyo-control/references/status-bar-show.md +14 -28
- package/skills/yoyo-control/references/usb-shared-network.md +7 -22
- package/src/cloud-channel/client.ts +1 -22
- package/src/cloud-channel/message-handler.ts +11 -17
- package/src/cloud-channel/types.ts +16 -1
- package/src/commands/logout/impl.ts +0 -1
- package/src/honor-auth/cloud.ts +18 -24
- package/src/modules/device/providers/windows.ts +34 -3
|
@@ -7,7 +7,6 @@ description: >
|
|
|
7
7
|
# Autoscreen Onnotice 通知自动亮屏
|
|
8
8
|
|
|
9
9
|
## Tool Command
|
|
10
|
-
|
|
11
10
|
```bash
|
|
12
11
|
autoscreen-onnotice
|
|
13
12
|
```
|
|
@@ -15,7 +14,6 @@ autoscreen-onnotice
|
|
|
15
14
|
## 集成工作流
|
|
16
15
|
|
|
17
16
|
### Step 1: 意图解析与参数组装
|
|
18
|
-
|
|
19
17
|
```
|
|
20
18
|
┌─────────────────────────────────────────────────────────────┐
|
|
21
19
|
│ 意图识别与参数提取 │
|
|
@@ -43,18 +41,21 @@ autoscreen-onnotice
|
|
|
43
41
|
```
|
|
44
42
|
|
|
45
43
|
### Step 2: 执行调用
|
|
46
|
-
|
|
47
44
|
- 根据操作系统选择对应的命令格式
|
|
48
45
|
- Windows: Cmd 格式(双引号需转义)
|
|
49
46
|
- Linux: Bash 格式(单引号包裹)
|
|
50
47
|
|
|
51
48
|
## 参数定义
|
|
52
|
-
|
|
53
49
|
```json
|
|
54
50
|
{
|
|
55
51
|
"actionType": {
|
|
56
52
|
"type": "string",
|
|
57
|
-
"enum": [
|
|
53
|
+
"enum": [
|
|
54
|
+
"设置",
|
|
55
|
+
"查询",
|
|
56
|
+
"打开",
|
|
57
|
+
"关闭"
|
|
58
|
+
],
|
|
58
59
|
"description": "必填参数,通知自动亮屏相关操作的动作类型,用于明确本次指令的主要行为。当涉及调整通知亮屏触发规则或应用范围时使用设置;当获取当前通知自动亮屏功能是否启用及其配置状态时使用查询;当要求启用收到通知时自动点亮屏幕的功能时使用打开;当要求关闭通知触发亮屏功能以减少干扰或节省电量时使用关闭。"
|
|
59
60
|
},
|
|
60
61
|
"app": {
|
|
@@ -65,7 +66,6 @@ autoscreen-onnotice
|
|
|
65
66
|
```
|
|
66
67
|
|
|
67
68
|
### 参数注意事项
|
|
68
|
-
|
|
69
69
|
1. 必填参数取值:`actionType` 为必填参数,且 `actionType` 的取值必须在枚举列表中。
|
|
70
70
|
2. 同义词/间接表述映射: "开启/启用"→`打开`;"禁用/停用"→`关闭`;"设置/配置/进入设置页面"→`设置`;"查看状态/是否开启"→`查询`。
|
|
71
71
|
3. 默认值或缺省行为: 未指定`app`时,操作作用于系统全局通知亮屏设置;当`actionType`为`查询`且未指定`app`时,返回系统全局状态。
|
|
@@ -75,13 +75,11 @@ autoscreen-onnotice
|
|
|
75
75
|
## Query 示例及输出
|
|
76
76
|
|
|
77
77
|
### 示例 1: 全局开启通知自动亮屏
|
|
78
|
-
|
|
79
78
|
**用户输入**: "打开收到通知自动亮屏"
|
|
80
79
|
|
|
81
80
|
**工具**: "autoscreen-onnotice"
|
|
82
81
|
|
|
83
82
|
**JSON 参数**:
|
|
84
|
-
|
|
85
83
|
```json
|
|
86
84
|
{
|
|
87
85
|
"actionType": "打开"
|
|
@@ -89,13 +87,11 @@ autoscreen-onnotice
|
|
|
89
87
|
```
|
|
90
88
|
|
|
91
89
|
**Windows (Cmd) 执行命令**:
|
|
92
|
-
|
|
93
90
|
```bash
|
|
94
91
|
cmd /c 'openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params "{\"actionType\":\"打开\"}"'
|
|
95
92
|
```
|
|
96
93
|
|
|
97
94
|
**Linux (Bash) 执行命令**:
|
|
98
|
-
|
|
99
95
|
```bash
|
|
100
96
|
openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params '{"actionType":"打开"}'
|
|
101
97
|
```
|
|
@@ -103,13 +99,11 @@ openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params '{"acti
|
|
|
103
99
|
---
|
|
104
100
|
|
|
105
101
|
### 示例 2: 全局关闭通知自动亮屏
|
|
106
|
-
|
|
107
102
|
**用户输入**: "关闭收到通知自动亮屏"
|
|
108
103
|
|
|
109
104
|
**工具**: "autoscreen-onnotice"
|
|
110
105
|
|
|
111
106
|
**JSON 参数**:
|
|
112
|
-
|
|
113
107
|
```json
|
|
114
108
|
{
|
|
115
109
|
"actionType": "关闭"
|
|
@@ -117,13 +111,11 @@ openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params '{"acti
|
|
|
117
111
|
```
|
|
118
112
|
|
|
119
113
|
**Windows (Cmd) 执行命令**:
|
|
120
|
-
|
|
121
114
|
```bash
|
|
122
115
|
cmd /c 'openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params "{\"actionType\":\"关闭\"}"'
|
|
123
116
|
```
|
|
124
117
|
|
|
125
118
|
**Linux (Bash) 执行命令**:
|
|
126
|
-
|
|
127
119
|
```bash
|
|
128
120
|
openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params '{"actionType":"关闭"}'
|
|
129
121
|
```
|
|
@@ -131,13 +123,11 @@ openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params '{"acti
|
|
|
131
123
|
---
|
|
132
124
|
|
|
133
125
|
### 示例 3: 进入通知自动亮屏设置页面
|
|
134
|
-
|
|
135
126
|
**用户输入**: "进入收到通知自动亮屏设置页面"
|
|
136
127
|
|
|
137
128
|
**工具**: "autoscreen-onnotice"
|
|
138
129
|
|
|
139
130
|
**JSON 参数**:
|
|
140
|
-
|
|
141
131
|
```json
|
|
142
132
|
{
|
|
143
133
|
"actionType": "设置"
|
|
@@ -145,13 +135,11 @@ openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params '{"acti
|
|
|
145
135
|
```
|
|
146
136
|
|
|
147
137
|
**Windows (Cmd) 执行命令**:
|
|
148
|
-
|
|
149
138
|
```bash
|
|
150
139
|
cmd /c 'openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params "{\"actionType\":\"设置\"}"'
|
|
151
140
|
```
|
|
152
141
|
|
|
153
142
|
**Linux (Bash) 执行命令**:
|
|
154
|
-
|
|
155
143
|
```bash
|
|
156
144
|
openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params '{"actionType":"设置"}'
|
|
157
145
|
```
|
|
@@ -159,13 +147,11 @@ openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params '{"acti
|
|
|
159
147
|
---
|
|
160
148
|
|
|
161
149
|
### 示例 4: 仅微信通知自动亮屏
|
|
162
|
-
|
|
163
150
|
**用户输入**: "打开微信消息亮屏"
|
|
164
151
|
|
|
165
152
|
**工具**: "autoscreen-onnotice"
|
|
166
153
|
|
|
167
154
|
**JSON 参数**:
|
|
168
|
-
|
|
169
155
|
```json
|
|
170
156
|
{
|
|
171
157
|
"actionType": "打开",
|
|
@@ -174,13 +160,11 @@ openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params '{"acti
|
|
|
174
160
|
```
|
|
175
161
|
|
|
176
162
|
**Windows (Cmd) 执行命令**:
|
|
177
|
-
|
|
178
163
|
```bash
|
|
179
164
|
cmd /c 'openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params "{\"actionType\":\"打开\",\"app\":\"微信\"}"'
|
|
180
165
|
```
|
|
181
166
|
|
|
182
167
|
**Linux (Bash) 执行命令**:
|
|
183
|
-
|
|
184
168
|
```bash
|
|
185
169
|
openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params '{"actionType":"打开","app":"微信"}'
|
|
186
170
|
```
|
|
@@ -188,13 +172,11 @@ openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params '{"acti
|
|
|
188
172
|
---
|
|
189
173
|
|
|
190
174
|
### 示例 5: 查询当前状态(全局)
|
|
191
|
-
|
|
192
175
|
**用户输入**: "查看通知亮屏是否开启"
|
|
193
176
|
|
|
194
177
|
**工具**: "autoscreen-onnotice"
|
|
195
178
|
|
|
196
179
|
**JSON 参数**:
|
|
197
|
-
|
|
198
180
|
```json
|
|
199
181
|
{
|
|
200
182
|
"actionType": "查询"
|
|
@@ -202,15 +184,13 @@ openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params '{"acti
|
|
|
202
184
|
```
|
|
203
185
|
|
|
204
186
|
**Windows (Cmd) 执行命令**:
|
|
205
|
-
|
|
206
187
|
```bash
|
|
207
188
|
cmd /c 'openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params "{\"actionType\":\"查询\"}"'
|
|
208
189
|
```
|
|
209
190
|
|
|
210
191
|
**Linux (Bash) 执行命令**:
|
|
211
|
-
|
|
212
192
|
```bash
|
|
213
193
|
openclaw nodes invoke --node <ID> --command autoscreen-onnotice --params '{"actionType":"查询"}'
|
|
214
194
|
```
|
|
215
195
|
|
|
216
|
-
---
|
|
196
|
+
---
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
name: battery
|
|
3
3
|
description: >
|
|
4
4
|
设备电量与模式管理工具。支持设置、查询、打开或关闭电量相关功能,包括电量使用情况与剩余电量查询、性能/省电/超级省电模式切换,以及电量百分比显示位置配置。支持多种设备的电量查询与模式切换,如蓝牙设备。
|
|
5
|
+
不支持设备充电状态的查询与控制。
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
# Battery 电量管理
|
|
8
9
|
|
|
9
10
|
## Tool Command
|
|
10
|
-
|
|
11
11
|
```bash
|
|
12
12
|
battery
|
|
13
13
|
```
|
|
@@ -15,7 +15,6 @@ battery
|
|
|
15
15
|
## 集成工作流
|
|
16
16
|
|
|
17
17
|
### Step 1: 意图解析与参数组装
|
|
18
|
-
|
|
19
18
|
```
|
|
20
19
|
┌─────────────────────────────────────────────────────────────┐
|
|
21
20
|
│ 意图识别与参数提取 │
|
|
@@ -26,6 +25,7 @@ battery
|
|
|
26
25
|
│ - 提取应用名称: 指定单个应用(如微信) │
|
|
27
26
|
│ - 特殊处理: "显示电量百分比"等同义词统一识别为百分比显示方式 │
|
|
28
27
|
│ - 特殊处理: "开启/打开" → 映射为打开,"关闭/停用" → 映射为关闭 │
|
|
28
|
+
│ - 超出操作对象范围: 直接输出人性化的功能不支持提示,结束本次调用 │
|
|
29
29
|
└─────────────────────────────────────────────────────────────┘
|
|
30
30
|
↓
|
|
31
31
|
┌─────────────────────────────────────────────────────────────┐
|
|
@@ -45,13 +45,11 @@ battery
|
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
### Step 2: 执行调用
|
|
48
|
-
|
|
49
48
|
- 根据操作系统选择对应的命令格式
|
|
50
49
|
- Windows: Cmd 格式(双引号需转义)
|
|
51
50
|
- Linux: Bash 格式(单引号包裹)
|
|
52
51
|
|
|
53
52
|
## 参数定义
|
|
54
|
-
|
|
55
53
|
```json
|
|
56
54
|
{
|
|
57
55
|
"actionType": {
|
|
@@ -61,18 +59,7 @@ battery
|
|
|
61
59
|
},
|
|
62
60
|
"target": {
|
|
63
61
|
"type": "string",
|
|
64
|
-
"enum": [
|
|
65
|
-
"电量",
|
|
66
|
-
"百分比显示方式",
|
|
67
|
-
"使用情况",
|
|
68
|
-
"剩余电量",
|
|
69
|
-
"性能模式",
|
|
70
|
-
"省电模式",
|
|
71
|
-
"超级省电模式",
|
|
72
|
-
"智能充电模式",
|
|
73
|
-
"耗电优化",
|
|
74
|
-
"耗电排行"
|
|
75
|
-
],
|
|
62
|
+
"enum": ["电量", "百分比显示方式", "使用情况", "剩余电量", "性能模式", "省电模式", "超级省电模式", "智能充电模式", "耗电优化", "耗电排行"],
|
|
76
63
|
"description": "必填参数,电量操作或查询的具体对象,用于限定 actionType 的作用范围。当关注整体电池状态时使用电量;当调整电量百分比展示形式时使用百分比显示方式;当查看各功能或应用的电量消耗情况时使用使用情况或耗电排行;当查询当前可用续航时使用剩余电量;当切换不同电量使用策略时使用对应的性能模式、省电模式或超级省电模式;当涉及充电行为与耗电控制时使用智能充电模式或耗电优化。"
|
|
77
64
|
},
|
|
78
65
|
"positionType": {
|
|
@@ -92,12 +79,11 @@ battery
|
|
|
92
79
|
```
|
|
93
80
|
|
|
94
81
|
### 参数注意事项
|
|
95
|
-
|
|
96
82
|
1. 必填参数取值:`actionType` 与 `target` 均为必填参数,且 `actionType` 与 `target` 的取值必须在枚举列表中。`actionType` 与 `target` 必须同时出现,`target`的值用于限定`actionType`的作用范围。
|
|
97
83
|
2. 同义词/间接表述映射: `"开启/打开"→"打开"、"关闭/停用"→"关闭";"显示电量百分比/电量百分比"→target 填写"百分比显示方式";"耗电量/用电数"→target 填写"电量";"电量剩多少/还剩多少电"→target 填写"剩余电量";"高性能/游戏加速"→"性能模式";"省电/节电"→"省电模式";"超级省电/极限省电"→"超级省电模式"。`
|
|
98
84
|
3. 默认值或缺省行为: `未明确 target 时,默认按"电量"进行查询;无法从用户动词识别 actionType 时,默认执行"查询"。`
|
|
99
85
|
4. 可选参数填写条件: `positionType 仅在 target 为"百分比显示方式"时填写;app 仅在 target 为"使用情况"或"耗电排行"时填写;device 仅在用户明确指定非本机设备时填写。`
|
|
100
|
-
5. 参数间关联/互斥关系:
|
|
86
|
+
5. 参数间关联/互斥关系:
|
|
101
87
|
1. 当 target 为各类模式(性能/省电/超级省电/智能充电/耗电优化)时,不应填写 positionType;
|
|
102
88
|
2. 当 target 为"百分比显示方式",且 positionType 存在有效取值时,actionType 必须设置为 `打开` 或 `关闭`;
|
|
103
89
|
3. 查询使用情况时填写 app 表示按该应用过滤。
|
|
@@ -108,13 +94,11 @@ battery
|
|
|
108
94
|
## Query 示例及输出
|
|
109
95
|
|
|
110
96
|
### 示例 1: 打开省电模式
|
|
111
|
-
|
|
112
97
|
**用户输入**: "打开省电模式"
|
|
113
98
|
|
|
114
99
|
**工具**: "battery"
|
|
115
100
|
|
|
116
101
|
**JSON 参数**:
|
|
117
|
-
|
|
118
102
|
```json
|
|
119
103
|
{
|
|
120
104
|
"actionType": "打开",
|
|
@@ -123,13 +107,11 @@ battery
|
|
|
123
107
|
```
|
|
124
108
|
|
|
125
109
|
**Windows (Cmd) 执行命令**:
|
|
126
|
-
|
|
127
110
|
```bash
|
|
128
111
|
cmd /c 'openclaw nodes invoke --node <ID> --command battery --params "{\"actionType\":\"打开\",\"target\":\"省电模式\"}"'
|
|
129
112
|
```
|
|
130
113
|
|
|
131
114
|
**Linux (Bash) 执行命令**:
|
|
132
|
-
|
|
133
115
|
```bash
|
|
134
116
|
openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"打开","target":"省电模式"}'
|
|
135
117
|
```
|
|
@@ -137,13 +119,11 @@ openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"打
|
|
|
137
119
|
---
|
|
138
120
|
|
|
139
121
|
### 示例 2: 电池百分比显示在电池内
|
|
140
|
-
|
|
141
122
|
**用户输入**: "电池百分比显示在电池内"
|
|
142
123
|
|
|
143
124
|
**工具**: "battery"
|
|
144
125
|
|
|
145
126
|
**JSON 参数**:
|
|
146
|
-
|
|
147
127
|
```json
|
|
148
128
|
{
|
|
149
129
|
"actionType": "打开",
|
|
@@ -153,13 +133,11 @@ openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"打
|
|
|
153
133
|
```
|
|
154
134
|
|
|
155
135
|
**Windows (Cmd) 执行命令**:
|
|
156
|
-
|
|
157
136
|
```bash
|
|
158
137
|
cmd /c 'openclaw nodes invoke --node <ID> --command battery --params "{\"actionType\":\"打开\",\"target\":\"百分比显示方式\",\"positionType\":\"电池内\"}"'
|
|
159
138
|
```
|
|
160
139
|
|
|
161
140
|
**Linux (Bash) 执行命令**:
|
|
162
|
-
|
|
163
141
|
```bash
|
|
164
142
|
openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"打开","target":"百分比显示方式","positionType":"电池内"}'
|
|
165
143
|
```
|
|
@@ -167,13 +145,11 @@ openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"打
|
|
|
167
145
|
---
|
|
168
146
|
|
|
169
147
|
### 示例 3: 查询设备剩余电量
|
|
170
|
-
|
|
171
148
|
**用户输入**: "查询设备剩余电量"
|
|
172
149
|
|
|
173
150
|
**工具**: "battery"
|
|
174
151
|
|
|
175
152
|
**JSON 参数**:
|
|
176
|
-
|
|
177
153
|
```json
|
|
178
154
|
{
|
|
179
155
|
"actionType": "查询",
|
|
@@ -182,13 +158,11 @@ openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"打
|
|
|
182
158
|
```
|
|
183
159
|
|
|
184
160
|
**Windows (Cmd) 执行命令**:
|
|
185
|
-
|
|
186
161
|
```bash
|
|
187
162
|
cmd /c 'openclaw nodes invoke --node <ID> --command battery --params "{\"actionType\":\"查询\",\"target\":\"剩余电量\"}"'
|
|
188
163
|
```
|
|
189
164
|
|
|
190
165
|
**Linux (Bash) 执行命令**:
|
|
191
|
-
|
|
192
166
|
```bash
|
|
193
167
|
openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"查询","target":"剩余电量"}'
|
|
194
168
|
```
|
|
@@ -196,13 +170,11 @@ openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"查
|
|
|
196
170
|
---
|
|
197
171
|
|
|
198
172
|
### 示例 4: 查看微信app耗电量
|
|
199
|
-
|
|
200
173
|
**用户输入**: "查看微信app耗电量"
|
|
201
174
|
|
|
202
175
|
**工具**: "battery"
|
|
203
176
|
|
|
204
177
|
**JSON 参数**:
|
|
205
|
-
|
|
206
178
|
```json
|
|
207
179
|
{
|
|
208
180
|
"actionType": "查询",
|
|
@@ -212,13 +184,11 @@ openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"查
|
|
|
212
184
|
```
|
|
213
185
|
|
|
214
186
|
**Windows (Cmd) 执行命令**:
|
|
215
|
-
|
|
216
187
|
```bash
|
|
217
188
|
cmd /c 'openclaw nodes invoke --node <ID> --command battery --params "{\"actionType\":\"查询\",\"target\":\"使用情况\",\"app\":\"微信\"}"'
|
|
218
189
|
```
|
|
219
190
|
|
|
220
191
|
**Linux (Bash) 执行命令**:
|
|
221
|
-
|
|
222
192
|
```bash
|
|
223
193
|
openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"查询","target":"使用情况","app":"微信"}'
|
|
224
194
|
```
|
|
@@ -226,13 +196,11 @@ openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"查
|
|
|
226
196
|
---
|
|
227
197
|
|
|
228
198
|
### 示例 5: 查询耳机盒子的电量
|
|
229
|
-
|
|
230
199
|
**用户输入**: "查询耳机盒子的电量。"
|
|
231
200
|
|
|
232
201
|
**工具**: "battery"
|
|
233
202
|
|
|
234
203
|
**JSON 参数**:
|
|
235
|
-
|
|
236
204
|
```json
|
|
237
205
|
{
|
|
238
206
|
"actionType": "查询",
|
|
@@ -242,13 +210,11 @@ openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"查
|
|
|
242
210
|
```
|
|
243
211
|
|
|
244
212
|
**Windows (Cmd) 执行命令**:
|
|
245
|
-
|
|
246
213
|
```bash
|
|
247
214
|
cmd /c 'openclaw nodes invoke --node <ID> --command battery --params "{\"actionType\":\"查询\",\"target\":\"电量\",\"device\":\"耳机盒子\"}"'
|
|
248
215
|
```
|
|
249
216
|
|
|
250
217
|
**Linux (Bash) 执行命令**:
|
|
251
|
-
|
|
252
218
|
```bash
|
|
253
219
|
openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"查询","target":"电量","device":"耳机盒子"}'
|
|
254
220
|
```
|
|
@@ -256,13 +222,11 @@ openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"查
|
|
|
256
222
|
---
|
|
257
223
|
|
|
258
224
|
### 示例 6: 进入设置页面
|
|
259
|
-
|
|
260
225
|
**用户输入**: "进入电量百分比显示方式设置页面"
|
|
261
226
|
|
|
262
227
|
**工具**: "battery"
|
|
263
228
|
|
|
264
229
|
**JSON 参数**:
|
|
265
|
-
|
|
266
230
|
```json
|
|
267
231
|
{
|
|
268
232
|
"actionType": "设置",
|
|
@@ -271,13 +235,18 @@ openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"查
|
|
|
271
235
|
```
|
|
272
236
|
|
|
273
237
|
**Windows (Cmd) 执行命令**:
|
|
274
|
-
|
|
275
238
|
```bash
|
|
276
239
|
cmd /c 'openclaw nodes invoke --node <ID> --command battery --params "{\"actionType\":\"设置\",\"target\":\"省电模式\"}"'
|
|
277
240
|
```
|
|
278
241
|
|
|
279
242
|
**Linux (Bash) 执行命令**:
|
|
280
|
-
|
|
281
243
|
```bash
|
|
282
244
|
openclaw nodes invoke --node <ID> --command battery --params '{"actionType":"设置","target":"省电模式"}'
|
|
283
245
|
```
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
### 示例 6: 充电状态查询(不支持)
|
|
250
|
+
**用户输入**: "帮我看一下设备是否在充电"
|
|
251
|
+
**处理方式**:告知用户当前不支持充电状态查询,并提供当前支持的功能范围。
|
|
252
|
+
**回复话术**: 抱歉,当前不支持查询设备充电状态的功能,但是我可以告诉你当前的电量,是否需要帮你查询?
|
|
@@ -7,7 +7,6 @@ description: >
|
|
|
7
7
|
# Brightness 屏幕亮度管理
|
|
8
8
|
|
|
9
9
|
## Tool Command
|
|
10
|
-
|
|
11
10
|
```bash
|
|
12
11
|
brightness
|
|
13
12
|
```
|
|
@@ -15,7 +14,6 @@ brightness
|
|
|
15
14
|
## 集成工作流
|
|
16
15
|
|
|
17
16
|
### Step 1: 意图解析与参数组装
|
|
18
|
-
|
|
19
17
|
```
|
|
20
18
|
┌─────────────────────────────────────────────────────────────┐
|
|
21
19
|
│ 意图识别与参数提取 │
|
|
@@ -46,13 +44,11 @@ brightness
|
|
|
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": {
|
|
@@ -86,7 +82,6 @@ brightness
|
|
|
86
82
|
```
|
|
87
83
|
|
|
88
84
|
### 参数注意事项
|
|
89
|
-
|
|
90
85
|
1. 必填参数取值:`actionType` 为必填参数,且 `actionType` 的取值必须在枚举列表中。
|
|
91
86
|
2. **设置与调大/调小的区别**:`设值`为绝对值设定("调到50"),`调大`/`调小`为相对值调整("调大20")
|
|
92
87
|
3. **numberType 匹配**: `number` 需与 `numberType` 配合使用——"50"对应数字、"50%"对应百分比、"最大/最小"对应极值、"3格/3档"对应级别、"1/3/三分之一"对应分数
|
|
@@ -98,13 +93,11 @@ brightness
|
|
|
98
93
|
## Query 示例及输出
|
|
99
94
|
|
|
100
95
|
### 示例 1: 打开自动调节亮度
|
|
101
|
-
|
|
102
96
|
**用户输入**: "打开屏幕自动调节亮度"
|
|
103
97
|
|
|
104
98
|
**工具**: "brightness"
|
|
105
99
|
|
|
106
100
|
**JSON 参数**:
|
|
107
|
-
|
|
108
101
|
```json
|
|
109
102
|
{
|
|
110
103
|
"actionType": "打开",
|
|
@@ -113,13 +106,11 @@ brightness
|
|
|
113
106
|
```
|
|
114
107
|
|
|
115
108
|
**Windows (Cmd) 执行命令**:
|
|
116
|
-
|
|
117
109
|
```bash
|
|
118
110
|
cmd /c 'openclaw nodes invoke --node <ID> --command brightness --params "{\"actionType\":\"打开\",\"target\":\"自动调节亮度\"}"'
|
|
119
111
|
```
|
|
120
112
|
|
|
121
113
|
**Linux (Bash) 执行命令**:
|
|
122
|
-
|
|
123
114
|
```bash
|
|
124
115
|
openclaw nodes invoke --node <ID> --command brightness --params '{"actionType":"打开","target":"自动调节亮度"}'
|
|
125
116
|
```
|
|
@@ -127,13 +118,11 @@ openclaw nodes invoke --node <ID> --command brightness --params '{"actionType":"
|
|
|
127
118
|
---
|
|
128
119
|
|
|
129
120
|
### 示例 2: 设定亮度为一半
|
|
130
|
-
|
|
131
121
|
**用户输入**: "亮度调到一半"
|
|
132
122
|
|
|
133
123
|
**工具**: "brightness"
|
|
134
124
|
|
|
135
125
|
**JSON 参数**:
|
|
136
|
-
|
|
137
126
|
```json
|
|
138
127
|
{
|
|
139
128
|
"actionType": "设值",
|
|
@@ -144,13 +133,11 @@ openclaw nodes invoke --node <ID> --command brightness --params '{"actionType":"
|
|
|
144
133
|
```
|
|
145
134
|
|
|
146
135
|
**Windows (Cmd) 执行命令**:
|
|
147
|
-
|
|
148
136
|
```bash
|
|
149
137
|
cmd /c 'openclaw nodes invoke --node <ID> --command brightness --params "{\"actionType\":\"设值\",\"target\":\"亮度\",\"number\":\"一半\",\"numberType\":\"分数\"}"'
|
|
150
138
|
```
|
|
151
139
|
|
|
152
140
|
**Linux (Bash) 执行命令**:
|
|
153
|
-
|
|
154
141
|
```bash
|
|
155
142
|
openclaw nodes invoke --node <ID> --command brightness --params '{"actionType":"设值","target":"亮度","number":"一半","numberType":"分数"}'
|
|
156
143
|
```
|
|
@@ -158,13 +145,11 @@ openclaw nodes invoke --node <ID> --command brightness --params '{"actionType":"
|
|
|
158
145
|
---
|
|
159
146
|
|
|
160
147
|
### 示例 3: 亮度设为3档
|
|
161
|
-
|
|
162
148
|
**用户输入**: "亮度调大到3档"
|
|
163
149
|
|
|
164
150
|
**工具**: "brightness"
|
|
165
151
|
|
|
166
152
|
**JSON 参数**:
|
|
167
|
-
|
|
168
153
|
```json
|
|
169
154
|
{
|
|
170
155
|
"actionType": "设值",
|
|
@@ -175,13 +160,11 @@ openclaw nodes invoke --node <ID> --command brightness --params '{"actionType":"
|
|
|
175
160
|
```
|
|
176
161
|
|
|
177
162
|
**Windows (Cmd) 执行命令**:
|
|
178
|
-
|
|
179
163
|
```bash
|
|
180
164
|
cmd /c 'openclaw nodes invoke --node <ID> --command brightness --params "{\"actionType\":\"设值\",\"target\":\"亮度\",\"number\":\"3档\",\"numberType\":\"级别\"}"'
|
|
181
165
|
```
|
|
182
166
|
|
|
183
167
|
**Linux (Bash) 执行命令**:
|
|
184
|
-
|
|
185
168
|
```bash
|
|
186
169
|
openclaw nodes invoke --node <ID> --command brightness --params '{"actionType":"设值","target":"亮度","number":"3档","numberType":"级别"}'
|
|
187
170
|
```
|
|
@@ -189,13 +172,11 @@ openclaw nodes invoke --node <ID> --command brightness --params '{"actionType":"
|
|
|
189
172
|
---
|
|
190
173
|
|
|
191
174
|
### 示例 4: 台灯亮度设为最高值
|
|
192
|
-
|
|
193
175
|
**用户输入**: "台灯亮度调到最高值"
|
|
194
176
|
|
|
195
177
|
**工具**: "brightness"
|
|
196
178
|
|
|
197
179
|
**JSON 参数**:
|
|
198
|
-
|
|
199
180
|
```json
|
|
200
181
|
{
|
|
201
182
|
"actionType": "设值",
|
|
@@ -207,13 +188,11 @@ openclaw nodes invoke --node <ID> --command brightness --params '{"actionType":"
|
|
|
207
188
|
```
|
|
208
189
|
|
|
209
190
|
**Windows (Cmd) 执行命令**:
|
|
210
|
-
|
|
211
191
|
```bash
|
|
212
192
|
cmd /c 'openclaw nodes invoke --node <ID> --command brightness --params "{\"actionType\":\"设值\",\"device\":\"台灯\",\"target\":\"亮度\",\"number\":\"最高\",\"numberType\":\"极值\"}"'
|
|
213
193
|
```
|
|
214
194
|
|
|
215
195
|
**Linux (Bash) 执行命令**:
|
|
216
|
-
|
|
217
196
|
```bash
|
|
218
197
|
openclaw nodes invoke --node <ID> --command brightness --params '{"actionType":"设值","device":"台灯","target":"亮度","number":"最高","numberType":"极值"}'
|
|
219
198
|
```
|
|
@@ -221,13 +200,11 @@ openclaw nodes invoke --node <ID> --command brightness --params '{"actionType":"
|
|
|
221
200
|
---
|
|
222
201
|
|
|
223
202
|
### 示例 5: 查询电视当前亮度
|
|
224
|
-
|
|
225
203
|
**用户输入**: "查询当前电视的亮度"
|
|
226
204
|
|
|
227
205
|
**工具**: "brightness"
|
|
228
206
|
|
|
229
207
|
**JSON 参数**:
|
|
230
|
-
|
|
231
208
|
```json
|
|
232
209
|
{
|
|
233
210
|
"actionType": "查询",
|
|
@@ -237,13 +214,11 @@ openclaw nodes invoke --node <ID> --command brightness --params '{"actionType":"
|
|
|
237
214
|
```
|
|
238
215
|
|
|
239
216
|
**Windows (Cmd) 执行命令**:
|
|
240
|
-
|
|
241
217
|
```bash
|
|
242
218
|
cmd /c 'openclaw nodes invoke --node <ID> --command brightness --params "{\"actionType\":\"查询\",\"device\":\"电视\",\"target\":\"亮度\"}"'
|
|
243
219
|
```
|
|
244
220
|
|
|
245
221
|
**Linux (Bash) 执行命令**:
|
|
246
|
-
|
|
247
222
|
```bash
|
|
248
223
|
openclaw nodes invoke --node <ID> --command brightness --params '{"actionType":"查询","device":"电视","target":"亮度"}'
|
|
249
|
-
```
|
|
224
|
+
```
|