@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
|
# Eyecomfort 护眼模式与视觉健康控制
|
|
8
8
|
|
|
9
9
|
## Tool Command
|
|
10
|
-
|
|
11
10
|
```bash
|
|
12
11
|
eyecomfort
|
|
13
12
|
```
|
|
@@ -15,7 +14,6 @@ eyecomfort
|
|
|
15
14
|
## 集成工作流
|
|
16
15
|
|
|
17
16
|
### Step 1: 意图解析与参数组装
|
|
18
|
-
|
|
19
17
|
```
|
|
20
18
|
┌─────────────────────────────────────────────────────────────┐
|
|
21
19
|
│ 意图识别与参数提取 │
|
|
@@ -45,28 +43,41 @@ eyecomfort
|
|
|
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
|
"target": {
|
|
63
64
|
"type": "string",
|
|
64
|
-
"enum": [
|
|
65
|
+
"enum": [
|
|
66
|
+
"护眼模式",
|
|
67
|
+
"助眠显示",
|
|
68
|
+
"干眼友好",
|
|
69
|
+
"视力舒缓",
|
|
70
|
+
"自然色彩显示",
|
|
71
|
+
"照明闪烁检测"
|
|
72
|
+
],
|
|
65
73
|
"description": "必填参数,护眼模式操作的具体对象,用于限定 actionType 的作用范围。当操作指向整体护眼能力时选择护眼模式;当需要单独控制或查询某一细分护眼功能时选择对应对象。"
|
|
66
74
|
},
|
|
67
75
|
"timing": {
|
|
68
76
|
"type": "string",
|
|
69
|
-
"enum": [
|
|
77
|
+
"enum": [
|
|
78
|
+
"是",
|
|
79
|
+
"否"
|
|
80
|
+
],
|
|
70
81
|
"description": "是否为定时执行的护眼相关操作,用于标识指令是否涉及按时间计划自动开启或关闭功能。"
|
|
71
82
|
},
|
|
72
83
|
"app": {
|
|
@@ -77,7 +88,6 @@ eyecomfort
|
|
|
77
88
|
```
|
|
78
89
|
|
|
79
90
|
### 参数注意事项
|
|
80
|
-
|
|
81
91
|
1. 必填参数取值:`actionType` 与 `target` 均为必填参数,且 `actionType` 与 `target` 的取值必须在枚举列表中。`actionType` 与 `target` 必须同时出现,`target`的值用于限定`actionType`的作用范围。
|
|
82
92
|
2. 同义词/间接表述映射: 动词同义词与 `actionType` 映射为:"开启/打开/启用"→`打开`、"关闭/停用/禁用"→`关闭`、"设置/调整/改"→`设置`、"查询/查看/看一下"→`查询`。
|
|
83
93
|
3. 默认值或缺省行为: 未指定 `target` 时默认对 `护眼模式` 操作;未指定 `timing` 时默认为 `否`。
|
|
@@ -93,7 +103,6 @@ eyecomfort
|
|
|
93
103
|
**工具**: "eyecomfort"
|
|
94
104
|
|
|
95
105
|
**JSON 参数**:
|
|
96
|
-
|
|
97
106
|
```json
|
|
98
107
|
{
|
|
99
108
|
"actionType": "打开",
|
|
@@ -102,13 +111,11 @@ eyecomfort
|
|
|
102
111
|
```
|
|
103
112
|
|
|
104
113
|
**Windows (Cmd) 执行命令**:
|
|
105
|
-
|
|
106
114
|
```bash
|
|
107
115
|
cmd /c 'openclaw nodes invoke --node <ID> --command eyecomfort --params "{\"actionType\":\"打开\",\"target\":\"护眼模式\"}"'
|
|
108
116
|
```
|
|
109
117
|
|
|
110
118
|
**Linux (Bash) 执行命令**:
|
|
111
|
-
|
|
112
119
|
```bash
|
|
113
120
|
openclaw nodes invoke --node <ID> --command eyecomfort --params '{"actionType":"打开","target":"护眼模式"}'
|
|
114
121
|
```
|
|
@@ -122,7 +129,6 @@ openclaw nodes invoke --node <ID> --command eyecomfort --params '{"actionType":"
|
|
|
122
129
|
**工具**: "eyecomfort"
|
|
123
130
|
|
|
124
131
|
**JSON 参数**:
|
|
125
|
-
|
|
126
132
|
```json
|
|
127
133
|
{
|
|
128
134
|
"actionType": "关闭",
|
|
@@ -132,13 +138,11 @@ openclaw nodes invoke --node <ID> --command eyecomfort --params '{"actionType":"
|
|
|
132
138
|
```
|
|
133
139
|
|
|
134
140
|
**Windows (Cmd) 执行命令**:
|
|
135
|
-
|
|
136
141
|
```bash
|
|
137
142
|
cmd /c 'openclaw nodes invoke --node <ID> --command eyecomfort --params "{\"actionType\":\"关闭\",\"target\":\"护眼模式\",\"timing\":\"是\"}"'
|
|
138
143
|
```
|
|
139
144
|
|
|
140
145
|
**Linux (Bash) 执行命令**:
|
|
141
|
-
|
|
142
146
|
```bash
|
|
143
147
|
openclaw nodes invoke --node <ID> --command eyecomfort --params '{"actionType":"关闭","target":"护眼模式","timing":"是"}'
|
|
144
148
|
```
|
|
@@ -152,7 +156,6 @@ openclaw nodes invoke --node <ID> --command eyecomfort --params '{"actionType":"
|
|
|
152
156
|
**工具**: "eyecomfort"
|
|
153
157
|
|
|
154
158
|
**JSON 参数**:
|
|
155
|
-
|
|
156
159
|
```json
|
|
157
160
|
{
|
|
158
161
|
"actionType": "设置",
|
|
@@ -161,13 +164,11 @@ openclaw nodes invoke --node <ID> --command eyecomfort --params '{"actionType":"
|
|
|
161
164
|
```
|
|
162
165
|
|
|
163
166
|
**Windows (Cmd) 执行命令**:
|
|
164
|
-
|
|
165
167
|
```bash
|
|
166
168
|
cmd /c 'openclaw nodes invoke --node <ID> --command eyecomfort --params "{\"actionType\":\"设置\",\"target\":\"视力舒缓\"}"'
|
|
167
169
|
```
|
|
168
170
|
|
|
169
171
|
**Linux (Bash) 执行命令**:
|
|
170
|
-
|
|
171
172
|
```bash
|
|
172
173
|
openclaw nodes invoke --node <ID> --command eyecomfort --params '{"actionType":"设置","target":"视力舒缓"}'
|
|
173
174
|
```
|
|
@@ -181,7 +182,6 @@ openclaw nodes invoke --node <ID> --command eyecomfort --params '{"actionType":"
|
|
|
181
182
|
**工具**: "eyecomfort"
|
|
182
183
|
|
|
183
184
|
**JSON 参数**:
|
|
184
|
-
|
|
185
185
|
```json
|
|
186
186
|
{
|
|
187
187
|
"actionType": "打开",
|
|
@@ -190,13 +190,11 @@ openclaw nodes invoke --node <ID> --command eyecomfort --params '{"actionType":"
|
|
|
190
190
|
```
|
|
191
191
|
|
|
192
192
|
**Windows (Cmd) 执行命令**:
|
|
193
|
-
|
|
194
193
|
```bash
|
|
195
194
|
cmd /c 'openclaw nodes invoke --node <ID> --command eyecomfort --params "{\"actionType\":\"打开\",\"target\":\"自然色彩显示\"}"'
|
|
196
195
|
```
|
|
197
196
|
|
|
198
197
|
**Linux (Bash) 执行命令**:
|
|
199
|
-
|
|
200
198
|
```bash
|
|
201
199
|
openclaw nodes invoke --node <ID> --command eyecomfort --params '{"actionType":"打开","target":"自然色彩显示"}'
|
|
202
200
|
```
|
|
@@ -210,7 +208,6 @@ openclaw nodes invoke --node <ID> --command eyecomfort --params '{"actionType":"
|
|
|
210
208
|
**工具**: "eyecomfort"
|
|
211
209
|
|
|
212
210
|
**JSON 参数**:
|
|
213
|
-
|
|
214
211
|
```json
|
|
215
212
|
{
|
|
216
213
|
"actionType": "打开",
|
|
@@ -219,13 +216,11 @@ openclaw nodes invoke --node <ID> --command eyecomfort --params '{"actionType":"
|
|
|
219
216
|
```
|
|
220
217
|
|
|
221
218
|
**Windows (Cmd) 执行命令**:
|
|
222
|
-
|
|
223
219
|
```bash
|
|
224
220
|
cmd /c 'openclaw nodes invoke --node <ID> --command eyecomfort --params "{\"actionType\":\"打开\",\"target\":\"照明闪烁检测\"}"'
|
|
225
221
|
```
|
|
226
222
|
|
|
227
223
|
**Linux (Bash) 执行命令**:
|
|
228
|
-
|
|
229
224
|
```bash
|
|
230
225
|
openclaw nodes invoke --node <ID> --command eyecomfort --params '{"actionType":"打开","target":"照明闪烁检测"}'
|
|
231
|
-
```
|
|
226
|
+
```
|
|
@@ -7,7 +7,6 @@ description: >
|
|
|
7
7
|
# Location Service 定位服务
|
|
8
8
|
|
|
9
9
|
## Tool Command
|
|
10
|
-
|
|
11
10
|
```bash
|
|
12
11
|
location-service
|
|
13
12
|
```
|
|
@@ -15,7 +14,6 @@ location-service
|
|
|
15
14
|
## 集成工作流
|
|
16
15
|
|
|
17
16
|
### Step 1: 意图解析与参数组装
|
|
18
|
-
|
|
19
17
|
```
|
|
20
18
|
┌─────────────────────────────────────────────────────────────┐
|
|
21
19
|
│ 意图识别与参数提取 │
|
|
@@ -45,13 +43,11 @@ location-service
|
|
|
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": {
|
|
@@ -67,7 +63,6 @@ location-service
|
|
|
67
63
|
```
|
|
68
64
|
|
|
69
65
|
### 参数注意事项
|
|
70
|
-
|
|
71
66
|
1. **必填参数**:`actionType`是必填参数,其取值必须满足枚举值范围,必须是`"设置"`、`"查询"`、`"打开"`、`"关闭"`之一。
|
|
72
67
|
2. **同义词映射**: 用户口语化表述需映射到`actionType`枚举值,例如`"开启/打开/启动"→"打开"`、`"关闭/关掉/停用/禁止"→"关闭"`、`"进入设置/配置/设置页"→"设置"`、`"查看/查询/看看/状态"→"查询"`;`"定位服务/位置服务/GPS/地理位置"`统一识别为定位服务。
|
|
73
68
|
3. **默认行为**: 未指定`app`时,默认对系统全局定位服务进行操作,不区分具体应用。
|
|
@@ -82,19 +77,16 @@ location-service
|
|
|
82
77
|
**工具**: "location-service"
|
|
83
78
|
|
|
84
79
|
**JSON 参数**:
|
|
85
|
-
|
|
86
80
|
```json
|
|
87
|
-
{
|
|
81
|
+
{"actionType":"打开"}
|
|
88
82
|
```
|
|
89
83
|
|
|
90
84
|
**Windows (Cmd) 执行命令**:
|
|
91
|
-
|
|
92
85
|
```bash
|
|
93
86
|
cmd /c 'openclaw nodes invoke --node <ID> --command location-service --params "{\"actionType\":\"打开\"}"'
|
|
94
87
|
```
|
|
95
88
|
|
|
96
89
|
**Linux (Bash) 执行命令**:
|
|
97
|
-
|
|
98
90
|
```bash
|
|
99
91
|
openclaw nodes invoke --node <ID> --command location-service --params '{"actionType":"打开"}'
|
|
100
92
|
```
|
|
@@ -108,19 +100,16 @@ openclaw nodes invoke --node <ID> --command location-service --params '{"actionT
|
|
|
108
100
|
**工具**: "location-service"
|
|
109
101
|
|
|
110
102
|
**JSON 参数**:
|
|
111
|
-
|
|
112
103
|
```json
|
|
113
|
-
{
|
|
104
|
+
{"actionType":"关闭"}
|
|
114
105
|
```
|
|
115
106
|
|
|
116
107
|
**Windows (Cmd) 执行命令**:
|
|
117
|
-
|
|
118
108
|
```bash
|
|
119
109
|
cmd /c 'openclaw nodes invoke --node <ID> --command location-service --params "{\"actionType\":\"关闭\"}"'
|
|
120
110
|
```
|
|
121
111
|
|
|
122
112
|
**Linux (Bash) 执行命令**:
|
|
123
|
-
|
|
124
113
|
```bash
|
|
125
114
|
openclaw nodes invoke --node <ID> --command location-service --params '{"actionType":"关闭"}'
|
|
126
115
|
```
|
|
@@ -134,19 +123,16 @@ openclaw nodes invoke --node <ID> --command location-service --params '{"actionT
|
|
|
134
123
|
**工具**: "location-service"
|
|
135
124
|
|
|
136
125
|
**JSON 参数**:
|
|
137
|
-
|
|
138
126
|
```json
|
|
139
|
-
{
|
|
127
|
+
{"actionType":"设置"}
|
|
140
128
|
```
|
|
141
129
|
|
|
142
130
|
**Windows (Cmd) 执行命令**:
|
|
143
|
-
|
|
144
131
|
```bash
|
|
145
132
|
cmd /c 'openclaw nodes invoke --node <ID> --command location-service --params "{\"actionType\":\"设置\"}"'
|
|
146
133
|
```
|
|
147
134
|
|
|
148
135
|
**Linux (Bash) 执行命令**:
|
|
149
|
-
|
|
150
136
|
```bash
|
|
151
137
|
openclaw nodes invoke --node <ID> --command location-service --params '{"actionType":"设置"}'
|
|
152
138
|
```
|
|
@@ -160,19 +146,16 @@ openclaw nodes invoke --node <ID> --command location-service --params '{"actionT
|
|
|
160
146
|
**工具**: "location-service"
|
|
161
147
|
|
|
162
148
|
**JSON 参数**:
|
|
163
|
-
|
|
164
149
|
```json
|
|
165
|
-
{
|
|
150
|
+
{"actionType":"关闭","app":"地图"}
|
|
166
151
|
```
|
|
167
152
|
|
|
168
153
|
**Windows (Cmd) 执行命令**:
|
|
169
|
-
|
|
170
154
|
```bash
|
|
171
155
|
cmd /c 'openclaw nodes invoke --node <ID> --command location-service --params "{\"actionType\":\"关闭\",\"app\":\"地图\"}"'
|
|
172
156
|
```
|
|
173
157
|
|
|
174
158
|
**Linux (Bash) 执行命令**:
|
|
175
|
-
|
|
176
159
|
```bash
|
|
177
160
|
openclaw nodes invoke --node <ID> --command location-service --params '{"actionType":"关闭","app":"地图"}'
|
|
178
161
|
```
|
|
@@ -186,19 +169,16 @@ openclaw nodes invoke --node <ID> --command location-service --params '{"actionT
|
|
|
186
169
|
**工具**: "location-service"
|
|
187
170
|
|
|
188
171
|
**JSON 参数**:
|
|
189
|
-
|
|
190
172
|
```json
|
|
191
|
-
{
|
|
173
|
+
{"actionType":"查询"}
|
|
192
174
|
```
|
|
193
175
|
|
|
194
176
|
**Windows (Cmd) 执行命令**:
|
|
195
|
-
|
|
196
177
|
```bash
|
|
197
178
|
cmd /c 'openclaw nodes invoke --node <ID> --command location-service --params "{\"actionType\":\"查询\"}"'
|
|
198
179
|
```
|
|
199
180
|
|
|
200
181
|
**Linux (Bash) 执行命令**:
|
|
201
|
-
|
|
202
182
|
```bash
|
|
203
183
|
openclaw nodes invoke --node <ID> --command location-service --params '{"actionType":"查询"}'
|
|
204
|
-
```
|
|
184
|
+
```
|
|
@@ -7,7 +7,6 @@ description: >
|
|
|
7
7
|
# Nfc NFC 管理与控制
|
|
8
8
|
|
|
9
9
|
## Tool Command
|
|
10
|
-
|
|
11
10
|
```bash
|
|
12
11
|
nfc
|
|
13
12
|
```
|
|
@@ -15,7 +14,6 @@ nfc
|
|
|
15
14
|
## 集成工作流
|
|
16
15
|
|
|
17
16
|
### Step 1: 意图解析与参数组装
|
|
18
|
-
|
|
19
17
|
```
|
|
20
18
|
┌─────────────────────────────────────────────────────────────┐
|
|
21
19
|
│ 意图识别与参数提取 │
|
|
@@ -45,13 +43,11 @@ nfc
|
|
|
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": {
|
|
@@ -67,7 +63,6 @@ nfc
|
|
|
67
63
|
```
|
|
68
64
|
|
|
69
65
|
### 参数注意事项
|
|
70
|
-
|
|
71
66
|
1. 必填参数:`actionType`是必填参数,其取值必须满足枚举值范围,必须是`"设置"`、`"查询"`、`"打开"`、`"关闭"`、`"刷卡"`之一。
|
|
72
67
|
2. 同义词/间接表述映射: "打开/开启/启用"→`打开`;"关闭/停用"→`关闭`;"查看/查一下/看下状态"→`查询`;"设置/调整/配置"统一识别为`设置`;"刷卡/感应/靠一下/贴一下"统一识别为`刷卡`。
|
|
73
68
|
3. 默认值或缺省行为: 未明确`actionType`时不能默认推断,需追问用户以确认具体操作意图。
|
|
@@ -83,7 +78,6 @@ nfc
|
|
|
83
78
|
**工具**: "nfc"
|
|
84
79
|
|
|
85
80
|
**JSON 参数**:
|
|
86
|
-
|
|
87
81
|
```json
|
|
88
82
|
{
|
|
89
83
|
"actionType": "打开"
|
|
@@ -91,13 +85,11 @@ nfc
|
|
|
91
85
|
```
|
|
92
86
|
|
|
93
87
|
**Windows (Cmd) 执行命令**:
|
|
94
|
-
|
|
95
88
|
```bash
|
|
96
89
|
cmd /c 'openclaw nodes invoke --node <ID> --command nfc --params "{\"actionType\":\"打开\"}"'
|
|
97
90
|
```
|
|
98
91
|
|
|
99
92
|
**Linux (Bash) 执行命令**:
|
|
100
|
-
|
|
101
93
|
```bash
|
|
102
94
|
openclaw nodes invoke --node <ID> --command nfc --params '{"actionType":"打开"}'
|
|
103
95
|
```
|
|
@@ -111,7 +103,6 @@ openclaw nodes invoke --node <ID> --command nfc --params '{"actionType":"打开"
|
|
|
111
103
|
**工具**: "nfc"
|
|
112
104
|
|
|
113
105
|
**JSON 参数**:
|
|
114
|
-
|
|
115
106
|
```json
|
|
116
107
|
{
|
|
117
108
|
"actionType": "关闭"
|
|
@@ -119,13 +110,11 @@ openclaw nodes invoke --node <ID> --command nfc --params '{"actionType":"打开"
|
|
|
119
110
|
```
|
|
120
111
|
|
|
121
112
|
**Windows (Cmd) 执行命令**:
|
|
122
|
-
|
|
123
113
|
```bash
|
|
124
114
|
cmd /c 'openclaw nodes invoke --node <ID> --command nfc --params "{\"actionType\":\"关闭\"}"'
|
|
125
115
|
```
|
|
126
116
|
|
|
127
117
|
**Linux (Bash) 执行命令**:
|
|
128
|
-
|
|
129
118
|
```bash
|
|
130
119
|
openclaw nodes invoke --node <ID> --command nfc --params '{"actionType":"关闭"}'
|
|
131
120
|
```
|
|
@@ -139,7 +128,6 @@ openclaw nodes invoke --node <ID> --command nfc --params '{"actionType":"关闭"
|
|
|
139
128
|
**工具**: "nfc"
|
|
140
129
|
|
|
141
130
|
**JSON 参数**:
|
|
142
|
-
|
|
143
131
|
```json
|
|
144
132
|
{
|
|
145
133
|
"actionType": "设置"
|
|
@@ -147,13 +135,11 @@ openclaw nodes invoke --node <ID> --command nfc --params '{"actionType":"关闭"
|
|
|
147
135
|
```
|
|
148
136
|
|
|
149
137
|
**Windows (Cmd) 执行命令**:
|
|
150
|
-
|
|
151
138
|
```bash
|
|
152
139
|
cmd /c 'openclaw nodes invoke --node <ID> --command nfc --params "{\"actionType\":\"设置\"}"'
|
|
153
140
|
```
|
|
154
141
|
|
|
155
142
|
**Linux (Bash) 执行命令**:
|
|
156
|
-
|
|
157
143
|
```bash
|
|
158
144
|
openclaw nodes invoke --node <ID> --command nfc --params '{"actionType":"设置"}'
|
|
159
145
|
```
|
|
@@ -167,7 +153,6 @@ openclaw nodes invoke --node <ID> --command nfc --params '{"actionType":"设置"
|
|
|
167
153
|
**工具**: "nfc"
|
|
168
154
|
|
|
169
155
|
**JSON 参数**:
|
|
170
|
-
|
|
171
156
|
```json
|
|
172
157
|
{
|
|
173
158
|
"actionType": "刷卡"
|
|
@@ -175,13 +160,11 @@ openclaw nodes invoke --node <ID> --command nfc --params '{"actionType":"设置"
|
|
|
175
160
|
```
|
|
176
161
|
|
|
177
162
|
**Windows (Cmd) 执行命令**:
|
|
178
|
-
|
|
179
163
|
```bash
|
|
180
164
|
cmd /c 'openclaw nodes invoke --node <ID> --command nfc --params "{\"actionType\":\"刷卡\"}"'
|
|
181
165
|
```
|
|
182
166
|
|
|
183
167
|
**Linux (Bash) 执行命令**:
|
|
184
|
-
|
|
185
168
|
```bash
|
|
186
169
|
openclaw nodes invoke --node <ID> --command nfc --params '{"actionType":"刷卡"}'
|
|
187
170
|
```
|
|
@@ -195,7 +178,6 @@ openclaw nodes invoke --node <ID> --command nfc --params '{"actionType":"刷卡"
|
|
|
195
178
|
**工具**: "nfc"
|
|
196
179
|
|
|
197
180
|
**JSON 参数**:
|
|
198
|
-
|
|
199
181
|
```json
|
|
200
182
|
{
|
|
201
183
|
"actionType": "刷卡",
|
|
@@ -204,13 +186,11 @@ openclaw nodes invoke --node <ID> --command nfc --params '{"actionType":"刷卡"
|
|
|
204
186
|
```
|
|
205
187
|
|
|
206
188
|
**Windows (Cmd) 执行命令**:
|
|
207
|
-
|
|
208
189
|
```bash
|
|
209
190
|
cmd /c 'openclaw nodes invoke --node <ID> --command nfc --params "{\"actionType\":\"刷卡\",\"app\":\"支付宝\"}"'
|
|
210
191
|
```
|
|
211
192
|
|
|
212
193
|
**Linux (Bash) 执行命令**:
|
|
213
|
-
|
|
214
194
|
```bash
|
|
215
195
|
openclaw nodes invoke --node <ID> --command nfc --params '{"actionType":"刷卡","app":"支付宝"}'
|
|
216
|
-
```
|
|
196
|
+
```
|
|
@@ -7,7 +7,6 @@ description: >
|
|
|
7
7
|
# Status Bar Show 状态栏显示管理
|
|
8
8
|
|
|
9
9
|
## Tool Command
|
|
10
|
-
|
|
11
10
|
```bash
|
|
12
11
|
status-bar-show
|
|
13
12
|
```
|
|
@@ -15,7 +14,6 @@ status-bar-show
|
|
|
15
14
|
## 集成工作流
|
|
16
15
|
|
|
17
16
|
### Step 1: 意图解析与参数组装
|
|
18
|
-
|
|
19
17
|
```
|
|
20
18
|
┌─────────────────────────────────────────────────────────────┐
|
|
21
19
|
│ 意图识别与参数提取 │
|
|
@@ -45,23 +43,32 @@ status-bar-show
|
|
|
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
|
"target": {
|
|
63
64
|
"type": "string",
|
|
64
|
-
"enum": [
|
|
65
|
+
"enum": [
|
|
66
|
+
"运营商名称",
|
|
67
|
+
"实时网速",
|
|
68
|
+
"流量",
|
|
69
|
+
"通知",
|
|
70
|
+
"纯净模式"
|
|
71
|
+
],
|
|
65
72
|
"description": "必填参数,状态栏中可操作的具体显示内容,用于限定 action_type 的作用范围。当需要管理对应状态信息的显示状态时选择相应内容;当希望简化状态栏显示并隐藏多项内容时选择纯净模式。"
|
|
66
73
|
},
|
|
67
74
|
"app": {
|
|
@@ -72,7 +79,6 @@ status-bar-show
|
|
|
72
79
|
```
|
|
73
80
|
|
|
74
81
|
### 参数注意事项
|
|
75
|
-
|
|
76
82
|
1. 必填参数取值:`actionType` 与 `target` 均为必填参数,且 `actionType` 与 `target` 的取值必须在枚举列表中。`actionType` 与 `target` 必须同时出现,`target`的值用于限定`actionType`的作用范围。
|
|
77
83
|
2. 同义词/间接表述映射: 动作动词映射为 `actionType` 值:"开启/启用/显示"→`打开`;"隐藏/关闭/关掉/禁用"→`关闭`;"设置/调整/自定义/配置"→`设置`;"看一下/看看/查看/查询"→`查询`。目标同义词映射为 `target` 值:"网络连接速度/网速/网络速度/网速显示"→`实时网速`;"数据流量/套餐流量"→`流量`;"通知提示/通知栏提醒"→`通知`;"运营商/运营商信息/运营商标识"→`运营商名称`;"纯净状态栏模式/清爽模式/简洁模式/极简模式"→`纯净模式`。
|
|
78
84
|
3. 默认值或缺省行为: 未指定 `app` 时,默认对系统全局状态栏进行操作;当 `actionType` 为 `查询` 且未指定 `target` 时,默认查询所有可管理项的当前状态。
|
|
@@ -82,13 +88,11 @@ status-bar-show
|
|
|
82
88
|
## Query 示例及输出
|
|
83
89
|
|
|
84
90
|
### 示例 1: 打开状态栏实时网速显示
|
|
85
|
-
|
|
86
91
|
**用户输入**: "打开状态栏实时显示网速"
|
|
87
92
|
|
|
88
93
|
**工具**: "status-bar-show"
|
|
89
94
|
|
|
90
95
|
**JSON 参数**:
|
|
91
|
-
|
|
92
96
|
```json
|
|
93
97
|
{
|
|
94
98
|
"actionType": "打开",
|
|
@@ -97,13 +101,11 @@ status-bar-show
|
|
|
97
101
|
```
|
|
98
102
|
|
|
99
103
|
**Windows (Cmd) 执行命令**:
|
|
100
|
-
|
|
101
104
|
```bash
|
|
102
105
|
cmd /c 'openclaw nodes invoke --node <ID> --command status-bar-show --params "{\\"actionType\\":\\"打开\\",\\"target\\":\\"实时网速\\"}"'
|
|
103
106
|
```
|
|
104
107
|
|
|
105
108
|
**Linux (Bash) 执行命令**:
|
|
106
|
-
|
|
107
109
|
```bash
|
|
108
110
|
openclaw nodes invoke --node <ID> --command status-bar-show --params '{"actionType":"打开","target":"实时网速"}'
|
|
109
111
|
```
|
|
@@ -111,13 +113,11 @@ openclaw nodes invoke --node <ID> --command status-bar-show --params '{"actionTy
|
|
|
111
113
|
---
|
|
112
114
|
|
|
113
115
|
### 示例 2: 设置状态栏显示运营商名称
|
|
114
|
-
|
|
115
116
|
**用户输入**: "设置状态栏显示运营商名称"
|
|
116
117
|
|
|
117
118
|
**工具**: "status-bar-show"
|
|
118
119
|
|
|
119
120
|
**JSON 参数**:
|
|
120
|
-
|
|
121
121
|
```json
|
|
122
122
|
{
|
|
123
123
|
"actionType": "设置",
|
|
@@ -126,13 +126,11 @@ openclaw nodes invoke --node <ID> --command status-bar-show --params '{"actionTy
|
|
|
126
126
|
```
|
|
127
127
|
|
|
128
128
|
**Windows (Cmd) 执行命令**:
|
|
129
|
-
|
|
130
129
|
```bash
|
|
131
130
|
cmd /c 'openclaw nodes invoke --node <ID> --command status-bar-show --params "{\\"actionType\\":\\"设置\\",\\"target\\":\\"运营商名称\\"}"'
|
|
132
131
|
```
|
|
133
132
|
|
|
134
133
|
**Linux (Bash) 执行命令**:
|
|
135
|
-
|
|
136
134
|
```bash
|
|
137
135
|
openclaw nodes invoke --node <ID> --command status-bar-show --params '{"actionType":"设置","target":"运营商名称"}'
|
|
138
136
|
```
|
|
@@ -140,13 +138,11 @@ openclaw nodes invoke --node <ID> --command status-bar-show --params '{"actionTy
|
|
|
140
138
|
---
|
|
141
139
|
|
|
142
140
|
### 示例 3: 关闭状态栏显示流量
|
|
143
|
-
|
|
144
141
|
**用户输入**: "关闭状态栏显示流量"
|
|
145
142
|
|
|
146
143
|
**工具**: "status-bar-show"
|
|
147
144
|
|
|
148
145
|
**JSON 参数**:
|
|
149
|
-
|
|
150
146
|
```json
|
|
151
147
|
{
|
|
152
148
|
"actionType": "关闭",
|
|
@@ -155,13 +151,11 @@ openclaw nodes invoke --node <ID> --command status-bar-show --params '{"actionTy
|
|
|
155
151
|
```
|
|
156
152
|
|
|
157
153
|
**Windows (Cmd) 执行命令**:
|
|
158
|
-
|
|
159
154
|
```bash
|
|
160
155
|
cmd /c 'openclaw nodes invoke --node <ID> --command status-bar-show --params "{\\"actionType\\":\\"关闭\\",\\"target\\":\\"流量\\"}"'
|
|
161
156
|
```
|
|
162
157
|
|
|
163
158
|
**Linux (Bash) 执行命令**:
|
|
164
|
-
|
|
165
159
|
```bash
|
|
166
160
|
openclaw nodes invoke --node <ID> --command status-bar-show --params '{"actionType":"关闭","target":"流量"}'
|
|
167
161
|
```
|
|
@@ -169,13 +163,11 @@ openclaw nodes invoke --node <ID> --command status-bar-show --params '{"actionTy
|
|
|
169
163
|
---
|
|
170
164
|
|
|
171
165
|
### 示例 4: 开启纯净状态栏模式
|
|
172
|
-
|
|
173
166
|
**用户输入**: "开启纯净状态栏模式"
|
|
174
167
|
|
|
175
168
|
**工具**: "status-bar-show"
|
|
176
169
|
|
|
177
170
|
**JSON 参数**:
|
|
178
|
-
|
|
179
171
|
```json
|
|
180
172
|
{
|
|
181
173
|
"actionType": "打开",
|
|
@@ -184,13 +176,11 @@ openclaw nodes invoke --node <ID> --command status-bar-show --params '{"actionTy
|
|
|
184
176
|
```
|
|
185
177
|
|
|
186
178
|
**Windows (Cmd) 执行命令**:
|
|
187
|
-
|
|
188
179
|
```bash
|
|
189
180
|
cmd /c 'openclaw nodes invoke --node <ID> --command status-bar-show --params "{\\"actionType\\":\\"打开\\",\\"target\\":\\"纯净模式\\"}"'
|
|
190
181
|
```
|
|
191
182
|
|
|
192
183
|
**Linux (Bash) 执行命令**:
|
|
193
|
-
|
|
194
184
|
```bash
|
|
195
185
|
openclaw nodes invoke --node <ID> --command status-bar-show --params '{"actionType":"打开","target":"纯净模式"}'
|
|
196
186
|
```
|
|
@@ -198,13 +188,11 @@ openclaw nodes invoke --node <ID> --command status-bar-show --params '{"actionTy
|
|
|
198
188
|
---
|
|
199
189
|
|
|
200
190
|
### 示例 5: 查询网络连接速度状态
|
|
201
|
-
|
|
202
191
|
**用户输入**: "看看网络连接速度"
|
|
203
192
|
|
|
204
193
|
**工具**: "status-bar-show"
|
|
205
194
|
|
|
206
195
|
**JSON 参数**:
|
|
207
|
-
|
|
208
196
|
```json
|
|
209
197
|
{
|
|
210
198
|
"actionType": "查询",
|
|
@@ -213,13 +201,11 @@ openclaw nodes invoke --node <ID> --command status-bar-show --params '{"actionTy
|
|
|
213
201
|
```
|
|
214
202
|
|
|
215
203
|
**Windows (Cmd) 执行命令**:
|
|
216
|
-
|
|
217
204
|
```bash
|
|
218
205
|
cmd /c 'openclaw nodes invoke --node <ID> --command status-bar-show --params "{\\"actionType\\":\\"查询\\",\\"target\\":\\"实时网速\\"}"'
|
|
219
206
|
```
|
|
220
207
|
|
|
221
208
|
**Linux (Bash) 执行命令**:
|
|
222
|
-
|
|
223
209
|
```bash
|
|
224
210
|
openclaw nodes invoke --node <ID> --command status-bar-show --params '{"actionType":"查询","target":"实时网速"}'
|
|
225
|
-
```
|
|
211
|
+
```
|