@kingsoftcloud/agentkit-harness-node 0.0.31 → 0.0.33
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/dist/engine-view.html +1 -1
- package/dist/index.mjs +43 -20
- package/dist/rpc-entry.mjs +43 -20
- package/dist/studio-tool-catalog.json +998 -0
- package/package.json +3 -2
- package/src/native/context-counter.mjs +5 -0
- package/src/native/context-profile.mjs +5 -3
- package/src/native/e2b-background-supervisor.mjs +8 -3
- package/src/native/engine-client.mjs +26 -4
- package/src/native/engine-runtime.mjs +7 -4
- package/src/native/engine-server.mjs +20 -7
- package/src/native/local-background-supervisor.mjs +3 -2
- package/src/native/local-process.mjs +6 -2
- package/src/native/local-resource-profile.mjs +9 -0
- package/src/native/model-anthropic.mjs +8 -12
- package/src/native/model-openai-chat.mjs +6 -3
- package/src/native/model-provider-compat.mjs +14 -5
- package/src/native/model-responses.mjs +6 -3
- package/src/native/model-tool-view.mjs +24 -0
- package/src/native/workspace-search-worker.mjs +121 -0
- package/src/native/workspace-search.mjs +37 -0
- package/src/native/workspace-tools.mjs +7 -84
|
@@ -0,0 +1,998 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "agentkit.engine-tool-catalog/v1",
|
|
3
|
+
"version": "0.0.33",
|
|
4
|
+
"defaultTools": [
|
|
5
|
+
"workspace_status",
|
|
6
|
+
"list_workspace_files",
|
|
7
|
+
"read_workspace_file",
|
|
8
|
+
"search_workspace_files",
|
|
9
|
+
"write_workspace_file",
|
|
10
|
+
"write_workspace_files",
|
|
11
|
+
"edit_workspace_file",
|
|
12
|
+
"multi_edit_workspace_file",
|
|
13
|
+
"apply_workspace_patch",
|
|
14
|
+
"lint_workspace_file",
|
|
15
|
+
"web_fetch",
|
|
16
|
+
"web_search",
|
|
17
|
+
"sandbox_status",
|
|
18
|
+
"run_command",
|
|
19
|
+
"read_command_output",
|
|
20
|
+
"stop_command",
|
|
21
|
+
"browser_inspect_workspace"
|
|
22
|
+
],
|
|
23
|
+
"childWorkspaceTools": [
|
|
24
|
+
"workspace_status",
|
|
25
|
+
"list_workspace_files",
|
|
26
|
+
"read_workspace_file",
|
|
27
|
+
"lint_workspace_file",
|
|
28
|
+
"search_workspace_files",
|
|
29
|
+
"write_workspace_file",
|
|
30
|
+
"write_workspace_files",
|
|
31
|
+
"edit_workspace_file",
|
|
32
|
+
"multi_edit_workspace_file",
|
|
33
|
+
"delete_workspace_file",
|
|
34
|
+
"apply_workspace_patch",
|
|
35
|
+
"list_workspace_checkpoints",
|
|
36
|
+
"preview_workspace_rewind",
|
|
37
|
+
"rewind_workspace_files"
|
|
38
|
+
],
|
|
39
|
+
"supportedCommandPlatforms": [
|
|
40
|
+
"darwin-arm64",
|
|
41
|
+
"darwin-x64",
|
|
42
|
+
"linux-arm64",
|
|
43
|
+
"linux-x64"
|
|
44
|
+
],
|
|
45
|
+
"tools": [
|
|
46
|
+
{
|
|
47
|
+
"name": "apply_workspace_patch",
|
|
48
|
+
"description": "Apply a structured patch to workspace files. Use *** Begin Patch / *** End Patch, Add File, Delete File, Update File and optional Move to headers. Hunks use @@ with space/context, -/removed and +/added lines. All hunks are verified before writing. Existing move destinations and overlapping paths are refused. A multi-file publication is not atomic; an uncertain result requires reconciliation, never blind replay.",
|
|
49
|
+
"parameters": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": [
|
|
53
|
+
"patch_text"
|
|
54
|
+
],
|
|
55
|
+
"properties": {
|
|
56
|
+
"patch_text": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"maxLength": 262144
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"readOnly": false,
|
|
63
|
+
"timeoutMs": 30000,
|
|
64
|
+
"permissions": [
|
|
65
|
+
"workspace:write",
|
|
66
|
+
"workspace:delete"
|
|
67
|
+
],
|
|
68
|
+
"availability": "always"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "list_workspace_checkpoints",
|
|
72
|
+
"description": "List this Native Session's durable file checkpoints. Prepared/unknown or already rewound records are not permission to replay effects. Checkpoint contents are private and are not returned.",
|
|
73
|
+
"parameters": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"additionalProperties": false,
|
|
76
|
+
"properties": {}
|
|
77
|
+
},
|
|
78
|
+
"readOnly": true,
|
|
79
|
+
"timeoutMs": 30000,
|
|
80
|
+
"permissions": [
|
|
81
|
+
"workspace:read"
|
|
82
|
+
],
|
|
83
|
+
"availability": "always"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "preview_workspace_rewind",
|
|
87
|
+
"description": "Preview file-only rewind from a checkpoint, including later committed changes in this Session. Refuses external modifications and uncommitted effects. Does not rewind conversation or execute files. Use the returned preview_token for an approved rewind.",
|
|
88
|
+
"parameters": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"required": [
|
|
92
|
+
"checkpoint_id"
|
|
93
|
+
],
|
|
94
|
+
"properties": {
|
|
95
|
+
"checkpoint_id": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"pattern": "^[0-9a-f-]{36}$"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"readOnly": true,
|
|
102
|
+
"timeoutMs": 30000,
|
|
103
|
+
"permissions": [
|
|
104
|
+
"workspace:read"
|
|
105
|
+
],
|
|
106
|
+
"availability": "always"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "rewind_workspace_files",
|
|
110
|
+
"description": "Restore files from an exact successful preview. This changes workspace files, requires normal write/delete permission and is forbidden in Plan mode. It never reruns the original tools. A changed preview or unknown effect blocks the whole rewind; partial publication is uncertain and must be reconciled.",
|
|
111
|
+
"parameters": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"required": [
|
|
115
|
+
"checkpoint_id",
|
|
116
|
+
"preview_token"
|
|
117
|
+
],
|
|
118
|
+
"properties": {
|
|
119
|
+
"checkpoint_id": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"pattern": "^[0-9a-f-]{36}$"
|
|
122
|
+
},
|
|
123
|
+
"preview_token": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"readOnly": false,
|
|
130
|
+
"timeoutMs": 30000,
|
|
131
|
+
"permissions": [
|
|
132
|
+
"workspace:write",
|
|
133
|
+
"workspace:delete"
|
|
134
|
+
],
|
|
135
|
+
"availability": "always"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "workspace_status",
|
|
139
|
+
"description": "Return the current AgentEngine workspace status.",
|
|
140
|
+
"parameters": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"properties": {},
|
|
143
|
+
"additionalProperties": false
|
|
144
|
+
},
|
|
145
|
+
"readOnly": true,
|
|
146
|
+
"timeoutMs": 30000,
|
|
147
|
+
"permissions": [],
|
|
148
|
+
"availability": "always"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "list_workspace_files",
|
|
152
|
+
"description": "List files under the AgentEngine workspace.",
|
|
153
|
+
"parameters": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"properties": {
|
|
156
|
+
"path": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"default": "."
|
|
159
|
+
},
|
|
160
|
+
"glob": {
|
|
161
|
+
"type": [
|
|
162
|
+
"string",
|
|
163
|
+
"null"
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
"recursive": {
|
|
167
|
+
"type": "boolean",
|
|
168
|
+
"default": false
|
|
169
|
+
},
|
|
170
|
+
"include_dirs": {
|
|
171
|
+
"type": "boolean",
|
|
172
|
+
"default": true
|
|
173
|
+
},
|
|
174
|
+
"max_results": {
|
|
175
|
+
"type": "integer",
|
|
176
|
+
"default": 500,
|
|
177
|
+
"minimum": 1,
|
|
178
|
+
"maximum": 5000
|
|
179
|
+
},
|
|
180
|
+
"sort_by": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"default": "name",
|
|
183
|
+
"enum": [
|
|
184
|
+
"name",
|
|
185
|
+
"mtime",
|
|
186
|
+
"size"
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"additionalProperties": false
|
|
191
|
+
},
|
|
192
|
+
"readOnly": true,
|
|
193
|
+
"timeoutMs": 30000,
|
|
194
|
+
"permissions": [],
|
|
195
|
+
"availability": "always"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "read_workspace_file",
|
|
199
|
+
"description": "Read a UTF-8 workspace file. Inspect the result before editing it. Do not issue a dependent read and edit in the same parallel tool-call batch.",
|
|
200
|
+
"parameters": {
|
|
201
|
+
"type": "object",
|
|
202
|
+
"properties": {
|
|
203
|
+
"path": {
|
|
204
|
+
"type": "string"
|
|
205
|
+
},
|
|
206
|
+
"start_line": {
|
|
207
|
+
"type": [
|
|
208
|
+
"integer",
|
|
209
|
+
"null"
|
|
210
|
+
],
|
|
211
|
+
"minimum": 1
|
|
212
|
+
},
|
|
213
|
+
"end_line": {
|
|
214
|
+
"type": [
|
|
215
|
+
"integer",
|
|
216
|
+
"null"
|
|
217
|
+
],
|
|
218
|
+
"minimum": 1
|
|
219
|
+
},
|
|
220
|
+
"max_chars": {
|
|
221
|
+
"type": [
|
|
222
|
+
"integer",
|
|
223
|
+
"null"
|
|
224
|
+
],
|
|
225
|
+
"minimum": 1000,
|
|
226
|
+
"maximum": 100000
|
|
227
|
+
},
|
|
228
|
+
"include_line_numbers": {
|
|
229
|
+
"type": "boolean",
|
|
230
|
+
"default": true
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"required": [
|
|
234
|
+
"path"
|
|
235
|
+
],
|
|
236
|
+
"additionalProperties": false
|
|
237
|
+
},
|
|
238
|
+
"readOnly": true,
|
|
239
|
+
"timeoutMs": 30000,
|
|
240
|
+
"permissions": [],
|
|
241
|
+
"availability": "always"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "write_workspace_file",
|
|
245
|
+
"description": "Write a UTF-8 text file inside the AgentEngine workspace. Creating a new file needs no prior read; replacing an existing file requires a complete current read or a successful write in this session.",
|
|
246
|
+
"parameters": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": {
|
|
249
|
+
"path": {
|
|
250
|
+
"type": "string"
|
|
251
|
+
},
|
|
252
|
+
"content": {
|
|
253
|
+
"type": "string"
|
|
254
|
+
},
|
|
255
|
+
"overwrite": {
|
|
256
|
+
"type": "boolean",
|
|
257
|
+
"default": true
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"required": [
|
|
261
|
+
"path",
|
|
262
|
+
"content"
|
|
263
|
+
],
|
|
264
|
+
"additionalProperties": false
|
|
265
|
+
},
|
|
266
|
+
"readOnly": false,
|
|
267
|
+
"timeoutMs": 30000,
|
|
268
|
+
"permissions": [
|
|
269
|
+
"workspace:write"
|
|
270
|
+
],
|
|
271
|
+
"availability": "always"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "write_workspace_files",
|
|
275
|
+
"description": "Write multiple UTF-8 text files inside the AgentEngine workspace. Preconditions for the batch are checked before the first file is changed.",
|
|
276
|
+
"parameters": {
|
|
277
|
+
"type": "object",
|
|
278
|
+
"properties": {
|
|
279
|
+
"files": {
|
|
280
|
+
"type": "array",
|
|
281
|
+
"items": {
|
|
282
|
+
"type": "object",
|
|
283
|
+
"properties": {
|
|
284
|
+
"path": {
|
|
285
|
+
"type": "string"
|
|
286
|
+
},
|
|
287
|
+
"content": {
|
|
288
|
+
"type": "string"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"required": [
|
|
292
|
+
"path",
|
|
293
|
+
"content"
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"overwrite": {
|
|
298
|
+
"type": "boolean",
|
|
299
|
+
"default": true
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"required": [
|
|
303
|
+
"files"
|
|
304
|
+
],
|
|
305
|
+
"additionalProperties": false
|
|
306
|
+
},
|
|
307
|
+
"readOnly": false,
|
|
308
|
+
"timeoutMs": 60000,
|
|
309
|
+
"permissions": [
|
|
310
|
+
"workspace:write"
|
|
311
|
+
],
|
|
312
|
+
"availability": "always"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "edit_workspace_file",
|
|
316
|
+
"description": "Replace exact text after reading or successfully writing the file. The prior operation must complete; do not batch dependent reads/writes and edits.",
|
|
317
|
+
"parameters": {
|
|
318
|
+
"type": "object",
|
|
319
|
+
"properties": {
|
|
320
|
+
"path": {
|
|
321
|
+
"type": "string"
|
|
322
|
+
},
|
|
323
|
+
"old_text": {
|
|
324
|
+
"type": "string"
|
|
325
|
+
},
|
|
326
|
+
"new_text": {
|
|
327
|
+
"type": "string"
|
|
328
|
+
},
|
|
329
|
+
"expected_replacements": {
|
|
330
|
+
"type": "integer",
|
|
331
|
+
"default": 1,
|
|
332
|
+
"minimum": 1
|
|
333
|
+
},
|
|
334
|
+
"replace_all": {
|
|
335
|
+
"type": "boolean",
|
|
336
|
+
"default": false
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"required": [
|
|
340
|
+
"path",
|
|
341
|
+
"old_text",
|
|
342
|
+
"new_text"
|
|
343
|
+
],
|
|
344
|
+
"additionalProperties": false
|
|
345
|
+
},
|
|
346
|
+
"readOnly": false,
|
|
347
|
+
"timeoutMs": 30000,
|
|
348
|
+
"permissions": [
|
|
349
|
+
"workspace:write"
|
|
350
|
+
],
|
|
351
|
+
"availability": "always"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "multi_edit_workspace_file",
|
|
355
|
+
"description": "Apply atomic exact edits after reading or successfully writing the file. The prior operation must complete; do not batch dependent reads/writes and edits.",
|
|
356
|
+
"parameters": {
|
|
357
|
+
"type": "object",
|
|
358
|
+
"properties": {
|
|
359
|
+
"path": {
|
|
360
|
+
"type": "string"
|
|
361
|
+
},
|
|
362
|
+
"edits": {
|
|
363
|
+
"type": "array",
|
|
364
|
+
"items": {
|
|
365
|
+
"type": "object",
|
|
366
|
+
"properties": {
|
|
367
|
+
"old_text": {
|
|
368
|
+
"type": "string"
|
|
369
|
+
},
|
|
370
|
+
"new_text": {
|
|
371
|
+
"type": "string"
|
|
372
|
+
},
|
|
373
|
+
"expected_replacements": {
|
|
374
|
+
"type": "integer",
|
|
375
|
+
"default": 1,
|
|
376
|
+
"minimum": 1
|
|
377
|
+
},
|
|
378
|
+
"replace_all": {
|
|
379
|
+
"type": "boolean",
|
|
380
|
+
"default": false
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"required": [
|
|
384
|
+
"old_text",
|
|
385
|
+
"new_text"
|
|
386
|
+
]
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"replace_all": {
|
|
390
|
+
"type": "boolean",
|
|
391
|
+
"default": false
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"required": [
|
|
395
|
+
"path",
|
|
396
|
+
"edits"
|
|
397
|
+
],
|
|
398
|
+
"additionalProperties": false
|
|
399
|
+
},
|
|
400
|
+
"readOnly": false,
|
|
401
|
+
"timeoutMs": 30000,
|
|
402
|
+
"permissions": [
|
|
403
|
+
"workspace:write"
|
|
404
|
+
],
|
|
405
|
+
"availability": "always"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "lint_workspace_file",
|
|
409
|
+
"description": "Run lightweight built-in lint checks for a UTF-8 workspace text file.",
|
|
410
|
+
"parameters": {
|
|
411
|
+
"type": "object",
|
|
412
|
+
"properties": {
|
|
413
|
+
"path": {
|
|
414
|
+
"type": "string"
|
|
415
|
+
},
|
|
416
|
+
"language": {
|
|
417
|
+
"type": "string",
|
|
418
|
+
"default": "auto"
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"required": [
|
|
422
|
+
"path"
|
|
423
|
+
],
|
|
424
|
+
"additionalProperties": false
|
|
425
|
+
},
|
|
426
|
+
"readOnly": true,
|
|
427
|
+
"timeoutMs": 30000,
|
|
428
|
+
"permissions": [],
|
|
429
|
+
"availability": "always"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "search_workspace_files",
|
|
433
|
+
"description": "Search UTF-8 text files in the AgentEngine workspace.",
|
|
434
|
+
"parameters": {
|
|
435
|
+
"type": "object",
|
|
436
|
+
"properties": {
|
|
437
|
+
"query": {
|
|
438
|
+
"type": "string"
|
|
439
|
+
},
|
|
440
|
+
"path": {
|
|
441
|
+
"type": "string",
|
|
442
|
+
"default": "."
|
|
443
|
+
},
|
|
444
|
+
"is_regex": {
|
|
445
|
+
"type": "boolean",
|
|
446
|
+
"default": false
|
|
447
|
+
},
|
|
448
|
+
"glob": {
|
|
449
|
+
"type": [
|
|
450
|
+
"string",
|
|
451
|
+
"null"
|
|
452
|
+
]
|
|
453
|
+
},
|
|
454
|
+
"case_sensitive": {
|
|
455
|
+
"type": "boolean",
|
|
456
|
+
"default": false
|
|
457
|
+
},
|
|
458
|
+
"context_lines": {
|
|
459
|
+
"type": "integer",
|
|
460
|
+
"default": 0,
|
|
461
|
+
"minimum": 0,
|
|
462
|
+
"maximum": 20
|
|
463
|
+
},
|
|
464
|
+
"max_results": {
|
|
465
|
+
"type": "integer",
|
|
466
|
+
"default": 100,
|
|
467
|
+
"minimum": 1,
|
|
468
|
+
"maximum": 5000
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
"required": [
|
|
472
|
+
"query"
|
|
473
|
+
],
|
|
474
|
+
"additionalProperties": false
|
|
475
|
+
},
|
|
476
|
+
"readOnly": true,
|
|
477
|
+
"timeoutMs": 60000,
|
|
478
|
+
"permissions": [],
|
|
479
|
+
"availability": "always"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"name": "delete_workspace_file",
|
|
483
|
+
"description": "Delete a file or empty directory inside the AgentEngine workspace.",
|
|
484
|
+
"parameters": {
|
|
485
|
+
"type": "object",
|
|
486
|
+
"properties": {
|
|
487
|
+
"path": {
|
|
488
|
+
"type": "string"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"required": [
|
|
492
|
+
"path"
|
|
493
|
+
],
|
|
494
|
+
"additionalProperties": false
|
|
495
|
+
},
|
|
496
|
+
"readOnly": false,
|
|
497
|
+
"timeoutMs": 30000,
|
|
498
|
+
"permissions": [
|
|
499
|
+
"workspace:delete"
|
|
500
|
+
],
|
|
501
|
+
"availability": "always"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"name": "web_fetch",
|
|
505
|
+
"description": "Read a public HTTP(S) page. Long pages are paginated: use next_offset_chars to continue, or find to locate a literal section after offset_chars. URL fragments do not select sections. Returned paths/URIs are not workspace read grants.",
|
|
506
|
+
"parameters": {
|
|
507
|
+
"additionalProperties": false,
|
|
508
|
+
"properties": {
|
|
509
|
+
"find": {
|
|
510
|
+
"maxLength": 1024,
|
|
511
|
+
"minLength": 1,
|
|
512
|
+
"type": "string"
|
|
513
|
+
},
|
|
514
|
+
"max_chars": {
|
|
515
|
+
"anyOf": [
|
|
516
|
+
{
|
|
517
|
+
"minimum": 0,
|
|
518
|
+
"type": "integer"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"type": "null"
|
|
522
|
+
}
|
|
523
|
+
]
|
|
524
|
+
},
|
|
525
|
+
"offset_chars": {
|
|
526
|
+
"maximum": 9007199254740991,
|
|
527
|
+
"minimum": 0,
|
|
528
|
+
"type": "integer"
|
|
529
|
+
},
|
|
530
|
+
"timeout": {
|
|
531
|
+
"anyOf": [
|
|
532
|
+
{
|
|
533
|
+
"minimum": 1,
|
|
534
|
+
"type": "integer"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"type": "null"
|
|
538
|
+
}
|
|
539
|
+
]
|
|
540
|
+
},
|
|
541
|
+
"url": {
|
|
542
|
+
"type": "string"
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
"required": [
|
|
546
|
+
"url"
|
|
547
|
+
],
|
|
548
|
+
"type": "object"
|
|
549
|
+
},
|
|
550
|
+
"readOnly": true,
|
|
551
|
+
"timeoutMs": 60000,
|
|
552
|
+
"permissions": [],
|
|
553
|
+
"availability": "always"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"name": "web_search",
|
|
557
|
+
"description": "Search the web and return title/url/snippet results without fetching full pages.",
|
|
558
|
+
"parameters": {
|
|
559
|
+
"additionalProperties": false,
|
|
560
|
+
"properties": {
|
|
561
|
+
"max_results": {
|
|
562
|
+
"default": 5,
|
|
563
|
+
"minimum": 1,
|
|
564
|
+
"type": "integer"
|
|
565
|
+
},
|
|
566
|
+
"query": {
|
|
567
|
+
"type": "string"
|
|
568
|
+
},
|
|
569
|
+
"recency_days": {
|
|
570
|
+
"anyOf": [
|
|
571
|
+
{
|
|
572
|
+
"minimum": 1,
|
|
573
|
+
"type": "integer"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"type": "null"
|
|
577
|
+
}
|
|
578
|
+
]
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
"required": [
|
|
582
|
+
"query"
|
|
583
|
+
],
|
|
584
|
+
"type": "object"
|
|
585
|
+
},
|
|
586
|
+
"readOnly": true,
|
|
587
|
+
"timeoutMs": 60000,
|
|
588
|
+
"permissions": [],
|
|
589
|
+
"availability": "search"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"name": "browser_inspect_workspace",
|
|
593
|
+
"description": "Inspect and interact with a local HTML workspace page in a run-owned browser.",
|
|
594
|
+
"parameters": {
|
|
595
|
+
"type": "object",
|
|
596
|
+
"properties": {
|
|
597
|
+
"path": {
|
|
598
|
+
"type": "string",
|
|
599
|
+
"minLength": 1
|
|
600
|
+
},
|
|
601
|
+
"screenshot_path": {
|
|
602
|
+
"type": "string",
|
|
603
|
+
"minLength": 1
|
|
604
|
+
},
|
|
605
|
+
"wait_ms": {
|
|
606
|
+
"type": "integer",
|
|
607
|
+
"minimum": 0,
|
|
608
|
+
"maximum": 30000
|
|
609
|
+
},
|
|
610
|
+
"actions": {
|
|
611
|
+
"type": "array",
|
|
612
|
+
"maxItems": 20,
|
|
613
|
+
"items": {
|
|
614
|
+
"oneOf": [
|
|
615
|
+
{
|
|
616
|
+
"type": "object",
|
|
617
|
+
"properties": {
|
|
618
|
+
"type": {
|
|
619
|
+
"const": "click"
|
|
620
|
+
},
|
|
621
|
+
"selector": {
|
|
622
|
+
"type": "string",
|
|
623
|
+
"minLength": 1
|
|
624
|
+
},
|
|
625
|
+
"element_ref": {
|
|
626
|
+
"type": "string",
|
|
627
|
+
"minLength": 1,
|
|
628
|
+
"maxLength": 64
|
|
629
|
+
},
|
|
630
|
+
"button": {
|
|
631
|
+
"enum": [
|
|
632
|
+
"left",
|
|
633
|
+
"right",
|
|
634
|
+
"middle"
|
|
635
|
+
]
|
|
636
|
+
},
|
|
637
|
+
"duration_ms": {
|
|
638
|
+
"type": "integer",
|
|
639
|
+
"minimum": 0,
|
|
640
|
+
"maximum": 5000
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
"required": [
|
|
644
|
+
"type"
|
|
645
|
+
],
|
|
646
|
+
"additionalProperties": false,
|
|
647
|
+
"oneOf": [
|
|
648
|
+
{
|
|
649
|
+
"required": [
|
|
650
|
+
"selector"
|
|
651
|
+
]
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"required": [
|
|
655
|
+
"element_ref"
|
|
656
|
+
]
|
|
657
|
+
}
|
|
658
|
+
]
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"type": "object",
|
|
662
|
+
"properties": {
|
|
663
|
+
"type": {
|
|
664
|
+
"const": "fill"
|
|
665
|
+
},
|
|
666
|
+
"value": {
|
|
667
|
+
"type": "string"
|
|
668
|
+
},
|
|
669
|
+
"selector": {
|
|
670
|
+
"type": "string",
|
|
671
|
+
"minLength": 1
|
|
672
|
+
},
|
|
673
|
+
"element_ref": {
|
|
674
|
+
"type": "string",
|
|
675
|
+
"minLength": 1,
|
|
676
|
+
"maxLength": 64
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
"required": [
|
|
680
|
+
"type",
|
|
681
|
+
"value"
|
|
682
|
+
],
|
|
683
|
+
"additionalProperties": false,
|
|
684
|
+
"oneOf": [
|
|
685
|
+
{
|
|
686
|
+
"required": [
|
|
687
|
+
"selector"
|
|
688
|
+
]
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"required": [
|
|
692
|
+
"element_ref"
|
|
693
|
+
]
|
|
694
|
+
}
|
|
695
|
+
]
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"type": "object",
|
|
699
|
+
"properties": {
|
|
700
|
+
"type": {
|
|
701
|
+
"const": "press"
|
|
702
|
+
},
|
|
703
|
+
"key": {
|
|
704
|
+
"type": "string",
|
|
705
|
+
"minLength": 1
|
|
706
|
+
},
|
|
707
|
+
"selector": {
|
|
708
|
+
"type": "string",
|
|
709
|
+
"minLength": 1
|
|
710
|
+
},
|
|
711
|
+
"element_ref": {
|
|
712
|
+
"type": "string",
|
|
713
|
+
"minLength": 1,
|
|
714
|
+
"maxLength": 64
|
|
715
|
+
},
|
|
716
|
+
"duration_ms": {
|
|
717
|
+
"type": "integer",
|
|
718
|
+
"minimum": 0,
|
|
719
|
+
"maximum": 5000
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
"required": [
|
|
723
|
+
"type",
|
|
724
|
+
"key"
|
|
725
|
+
],
|
|
726
|
+
"additionalProperties": false,
|
|
727
|
+
"not": {
|
|
728
|
+
"required": [
|
|
729
|
+
"selector",
|
|
730
|
+
"element_ref"
|
|
731
|
+
]
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"type": "object",
|
|
736
|
+
"properties": {
|
|
737
|
+
"type": {
|
|
738
|
+
"const": "move"
|
|
739
|
+
},
|
|
740
|
+
"x": {
|
|
741
|
+
"type": "integer",
|
|
742
|
+
"minimum": 0,
|
|
743
|
+
"maximum": 1279
|
|
744
|
+
},
|
|
745
|
+
"y": {
|
|
746
|
+
"type": "integer",
|
|
747
|
+
"minimum": 0,
|
|
748
|
+
"maximum": 719
|
|
749
|
+
},
|
|
750
|
+
"steps": {
|
|
751
|
+
"type": "integer",
|
|
752
|
+
"minimum": 1,
|
|
753
|
+
"maximum": 30
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
"required": [
|
|
757
|
+
"type",
|
|
758
|
+
"x",
|
|
759
|
+
"y"
|
|
760
|
+
],
|
|
761
|
+
"additionalProperties": false
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"type": "object",
|
|
765
|
+
"properties": {
|
|
766
|
+
"type": {
|
|
767
|
+
"const": "scroll"
|
|
768
|
+
},
|
|
769
|
+
"delta_x": {
|
|
770
|
+
"type": "integer",
|
|
771
|
+
"minimum": -10000,
|
|
772
|
+
"maximum": 10000
|
|
773
|
+
},
|
|
774
|
+
"delta_y": {
|
|
775
|
+
"type": "integer",
|
|
776
|
+
"minimum": -10000,
|
|
777
|
+
"maximum": 10000
|
|
778
|
+
},
|
|
779
|
+
"x": {
|
|
780
|
+
"type": "integer",
|
|
781
|
+
"minimum": 0,
|
|
782
|
+
"maximum": 1279
|
|
783
|
+
},
|
|
784
|
+
"y": {
|
|
785
|
+
"type": "integer",
|
|
786
|
+
"minimum": 0,
|
|
787
|
+
"maximum": 719
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
"required": [
|
|
791
|
+
"type",
|
|
792
|
+
"delta_x",
|
|
793
|
+
"delta_y"
|
|
794
|
+
],
|
|
795
|
+
"additionalProperties": false,
|
|
796
|
+
"dependentRequired": {
|
|
797
|
+
"x": [
|
|
798
|
+
"y"
|
|
799
|
+
],
|
|
800
|
+
"y": [
|
|
801
|
+
"x"
|
|
802
|
+
]
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"type": "object",
|
|
807
|
+
"properties": {
|
|
808
|
+
"type": {
|
|
809
|
+
"const": "reload"
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
"required": [
|
|
813
|
+
"type"
|
|
814
|
+
],
|
|
815
|
+
"additionalProperties": false
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"type": "object",
|
|
819
|
+
"properties": {
|
|
820
|
+
"type": {
|
|
821
|
+
"const": "wait"
|
|
822
|
+
},
|
|
823
|
+
"ms": {
|
|
824
|
+
"type": "integer",
|
|
825
|
+
"minimum": 0,
|
|
826
|
+
"maximum": 10000
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
"required": [
|
|
830
|
+
"type"
|
|
831
|
+
],
|
|
832
|
+
"additionalProperties": false
|
|
833
|
+
}
|
|
834
|
+
]
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
"required": [
|
|
839
|
+
"path"
|
|
840
|
+
],
|
|
841
|
+
"additionalProperties": false
|
|
842
|
+
},
|
|
843
|
+
"readOnly": false,
|
|
844
|
+
"timeoutMs": 110000,
|
|
845
|
+
"permissions": [],
|
|
846
|
+
"availability": "browser"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"name": "sandbox_status",
|
|
850
|
+
"description": "Report the bound command backend and its execution boundary.",
|
|
851
|
+
"parameters": {
|
|
852
|
+
"type": "object",
|
|
853
|
+
"properties": {},
|
|
854
|
+
"required": [],
|
|
855
|
+
"additionalProperties": false
|
|
856
|
+
},
|
|
857
|
+
"readOnly": true,
|
|
858
|
+
"timeoutMs": 10000,
|
|
859
|
+
"permissions": [],
|
|
860
|
+
"availability": "local-command"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"name": "run_command",
|
|
864
|
+
"description": "Run a governed Bash command inside the bound local workspace. background=true returns an owned task_id; read_command_output observes it and stop_command requests cancellation. This shares the Host filesystem and network; it is not an isolated OS sandbox.",
|
|
865
|
+
"parameters": {
|
|
866
|
+
"type": "object",
|
|
867
|
+
"properties": {
|
|
868
|
+
"command": {
|
|
869
|
+
"type": "string",
|
|
870
|
+
"minLength": 1
|
|
871
|
+
},
|
|
872
|
+
"cwd": {
|
|
873
|
+
"anyOf": [
|
|
874
|
+
{
|
|
875
|
+
"type": "string"
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"type": "null"
|
|
879
|
+
}
|
|
880
|
+
]
|
|
881
|
+
},
|
|
882
|
+
"timeout": {
|
|
883
|
+
"anyOf": [
|
|
884
|
+
{
|
|
885
|
+
"type": "integer",
|
|
886
|
+
"minimum": 1
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"type": "null"
|
|
890
|
+
}
|
|
891
|
+
]
|
|
892
|
+
},
|
|
893
|
+
"env": {
|
|
894
|
+
"anyOf": [
|
|
895
|
+
{
|
|
896
|
+
"type": "object",
|
|
897
|
+
"additionalProperties": {
|
|
898
|
+
"type": "string"
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"type": "null"
|
|
903
|
+
}
|
|
904
|
+
]
|
|
905
|
+
},
|
|
906
|
+
"background": {
|
|
907
|
+
"type": "boolean"
|
|
908
|
+
},
|
|
909
|
+
"background_timeout": {
|
|
910
|
+
"anyOf": [
|
|
911
|
+
{
|
|
912
|
+
"type": "integer",
|
|
913
|
+
"minimum": 1
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"type": "null"
|
|
917
|
+
}
|
|
918
|
+
]
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
"required": [
|
|
922
|
+
"command"
|
|
923
|
+
],
|
|
924
|
+
"additionalProperties": false
|
|
925
|
+
},
|
|
926
|
+
"readOnly": false,
|
|
927
|
+
"timeoutMs": 915000,
|
|
928
|
+
"permissions": [
|
|
929
|
+
"sandbox:execute"
|
|
930
|
+
],
|
|
931
|
+
"availability": "local-command"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"name": "read_command_output",
|
|
935
|
+
"description": "Read an owned command status and UTF-8 byte cursors. Reusing a cursor is read-only. Waiting never changes the command deadline.",
|
|
936
|
+
"parameters": {
|
|
937
|
+
"type": "object",
|
|
938
|
+
"properties": {
|
|
939
|
+
"task_id": {
|
|
940
|
+
"type": "string",
|
|
941
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
942
|
+
},
|
|
943
|
+
"stdout_cursor": {
|
|
944
|
+
"type": "integer",
|
|
945
|
+
"minimum": 0,
|
|
946
|
+
"maximum": 9007199254740991
|
|
947
|
+
},
|
|
948
|
+
"stderr_cursor": {
|
|
949
|
+
"type": "integer",
|
|
950
|
+
"minimum": 0,
|
|
951
|
+
"maximum": 9007199254740991
|
|
952
|
+
},
|
|
953
|
+
"max_bytes": {
|
|
954
|
+
"type": "integer",
|
|
955
|
+
"minimum": 4,
|
|
956
|
+
"maximum": 65536
|
|
957
|
+
},
|
|
958
|
+
"wait_seconds": {
|
|
959
|
+
"type": "integer",
|
|
960
|
+
"minimum": 0,
|
|
961
|
+
"maximum": 600
|
|
962
|
+
}
|
|
963
|
+
},
|
|
964
|
+
"required": [
|
|
965
|
+
"task_id"
|
|
966
|
+
],
|
|
967
|
+
"additionalProperties": false
|
|
968
|
+
},
|
|
969
|
+
"readOnly": true,
|
|
970
|
+
"timeoutMs": 610000,
|
|
971
|
+
"permissions": [],
|
|
972
|
+
"availability": "local-command"
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
"name": "stop_command",
|
|
976
|
+
"description": "Request cancellation of one command launched by this Session. Read its output to confirm the final status; a cancel request is not proof of completion.",
|
|
977
|
+
"parameters": {
|
|
978
|
+
"type": "object",
|
|
979
|
+
"properties": {
|
|
980
|
+
"task_id": {
|
|
981
|
+
"type": "string",
|
|
982
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
983
|
+
}
|
|
984
|
+
},
|
|
985
|
+
"required": [
|
|
986
|
+
"task_id"
|
|
987
|
+
],
|
|
988
|
+
"additionalProperties": false
|
|
989
|
+
},
|
|
990
|
+
"readOnly": false,
|
|
991
|
+
"timeoutMs": 10000,
|
|
992
|
+
"permissions": [
|
|
993
|
+
"sandbox:cancel"
|
|
994
|
+
],
|
|
995
|
+
"availability": "local-command"
|
|
996
|
+
}
|
|
997
|
+
]
|
|
998
|
+
}
|