-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtool-schema.json
More file actions
409 lines (409 loc) · 11 KB
/
Copy pathtool-schema.json
File metadata and controls
409 lines (409 loc) · 11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
{
"name": "feihong-code",
"version": "8.5.0",
"description": "Terminal AI Coding Agent — 终端 AI 编程智能体(由 scripts/gen-tool-schema.ts 从运行时工具注册表自动生成)",
"generatedAt": "2026-10-01",
"toolCount": 21,
"tools": [
{
"name": "read_file",
"description": "读取工作区内指定文件的文本内容",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "文件相对工作区的路径"
}
},
"required": [
"path"
]
}
},
{
"name": "write_file",
"description": "在工作区内写入/覆盖文件(自动创建父目录)",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "文件相对路径"
},
"content": {
"type": "string",
"description": "要写入的完整内容"
}
},
"required": [
"path",
"content"
]
}
},
{
"name": "edit_file",
"description": "在文件中将 oldText 首次精确替换为 newText",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "文件相对路径"
},
"oldText": {
"type": "string",
"description": "待替换的原文本"
},
"newText": {
"type": "string",
"description": "替换后的新文本"
}
},
"required": [
"path",
"oldText",
"newText"
]
}
},
{
"name": "list_dir",
"description": "列出工作区内目录内容(d=目录,-=文件)",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "目录相对路径,默认工作区根"
}
}
}
},
{
"name": "grep",
"description": "在工作区内递归搜索匹配文本(忽略 node_modules/.git 等),返回 file:line:content",
"parameters": {
"type": "object",
"properties": {
"pattern": {
"type": "string",
"description": "正则模式"
},
"path": {
"type": "string",
"description": "搜索起始目录,默认工作区根"
}
},
"required": [
"pattern"
]
}
},
{
"name": "run_shell",
"description": "执行 shell 命令(受白名单约束,需审批时会被拦截)",
"parameters": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "要执行的完整命令"
}
},
"required": [
"command"
]
}
},
{
"name": "run_tests",
"description": "运行项目测试套件(默认 npm test)",
"parameters": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "测试命令,默认 npm test"
}
}
}
},
{
"name": "build_check",
"description": "执行构建检查(默认 npm run build)",
"parameters": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "构建命令,默认 npm run build"
}
}
}
},
{
"name": "load_skill",
"description": "加载指定技能的完整指令(技能名见 system prompt 中的技能索引)",
"parameters": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "技能名,如 plan / grill / goal"
}
},
"required": [
"name"
]
}
},
{
"name": "web_fetch",
"description": "抓取指定 URL 的文本内容(HTML 转纯文本,最多 6KB;目标域名受网络白名单/黑名单约束)",
"parameters": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "要抓取的 http(s) URL"
}
},
"required": [
"url"
]
}
},
{
"name": "web_search",
"description": "实时关键词搜索(默认 DuckDuckGo;FH_SEARCH_ENDPOINT 可指定端点),返回标题与链接",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "搜索关键词"
},
"maxResults": {
"type": "number",
"description": "返回条数,默认 5,最多 10"
}
},
"required": [
"query"
]
}
},
{
"name": "browser_navigate",
"description": "在浏览器中导航到指定 URL。如果输入的是搜索关键词(含空格或无域名),自动用 Bing 搜索。返回页面标题和 pageId。",
"parameters": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "目标 URL 或搜索关键词"
},
"pageId": {
"type": "string",
"description": "可选,复用已有页面 ID;不填则新建页面"
}
},
"required": [
"url"
]
}
},
{
"name": "browser_click",
"description": "点击页面中匹配 CSS 选择器的元素。需要先调用 browser_navigate 获取 pageId。",
"parameters": {
"type": "object",
"properties": {
"selector": {
"type": "string",
"description": "CSS 选择器,如 button.submit、a.login、#search-button"
},
"pageId": {
"type": "string",
"description": "页面 ID(从 browser_navigate 返回)"
}
},
"required": [
"selector",
"pageId"
]
}
},
{
"name": "browser_type",
"description": "在页面输入框中输入文本(先清空再输入)。需要先调用 browser_navigate。",
"parameters": {
"type": "object",
"properties": {
"selector": {
"type": "string",
"description": "输入框的 CSS 选择器,如 input[name=q]、textarea#comment"
},
"text": {
"type": "string",
"description": "要输入的文本"
},
"pageId": {
"type": "string",
"description": "页面 ID"
}
},
"required": [
"selector",
"text",
"pageId"
]
}
},
{
"name": "browser_press",
"description": "按下键盘按键,如 Enter、Escape、ArrowDown、Control+a。",
"parameters": {
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "按键名称,如 Enter、Escape、Tab、ArrowDown、Control+c"
},
"pageId": {
"type": "string",
"description": "页面 ID"
}
},
"required": [
"key",
"pageId"
]
}
},
{
"name": "browser_extract",
"description": "提取页面文本内容。不指定 selector 时提取整个 body 文本(最多 10000 字符)。",
"parameters": {
"type": "object",
"properties": {
"selector": {
"type": "string",
"description": "可选,只提取指定元素的文本,如 div.article、#content"
},
"pageId": {
"type": "string",
"description": "页面 ID"
}
},
"required": [
"pageId"
]
}
},
{
"name": "browser_screenshot",
"description": "对当前页面截图,返回 base64 编码的 PNG 图片(可用于多模态分析)。",
"parameters": {
"type": "object",
"properties": {
"pageId": {
"type": "string",
"description": "页面 ID"
},
"fullPage": {
"type": "boolean",
"description": "是否截取整页(默认 false,只截视口)"
}
},
"required": [
"pageId"
]
}
},
{
"name": "browser_evaluate",
"description": "在页面上下文中执行 JavaScript 代码,返回执行结果。可用于提取数据、操作 DOM、调试。",
"parameters": {
"type": "object",
"properties": {
"script": {
"type": "string",
"description": "要执行的 JavaScript 代码,如 document.title、JSON.stringify({url: location.href})"
},
"pageId": {
"type": "string",
"description": "页面 ID"
}
},
"required": [
"script",
"pageId"
]
}
},
{
"name": "browser_close",
"description": "关闭指定浏览器页面,释放资源。任务完成后应调用此工具。",
"parameters": {
"type": "object",
"properties": {
"pageId": {
"type": "string",
"description": "页面 ID"
}
},
"required": [
"pageId"
]
}
},
{
"name": "feihong_agents_list",
"description": "查询 AI 员工军团:员工清单(17 个 AI 员工,按 L1-L5 分层)或任务统计。只读,不改状态。",
"parameters": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"agents",
"stats"
],
"description": "agents=员工清单(默认)| stats=任务统计"
}
}
}
},
{
"name": "feihong_agents_submit",
"description": "向 AI 员工军团提交任务(需审批):指定员工编号(1-17)与 JSON 入参。提交后自动执行一轮(LLM 用飞虹模型路由,未配置时 mock)。",
"parameters": {
"type": "object",
"properties": {
"agentId": {
"type": [
"number",
"string"
],
"description": "员工编号 1-17"
},
"input": {
"type": "string",
"description": "任务入参 JSON 字符串(字段见对应技能 SKILL.md)"
},
"executeNow": {
"type": "boolean",
"description": "是否立即执行(默认 true)"
}
},
"required": [
"agentId",
"input"
]
}
}
]
}