@tcb-sandbox/cli 0.3.7
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/CHANGELOG.md +19 -0
- package/README.md +67 -0
- package/dist/bundled-docs.d.ts +769 -0
- package/dist/bundled-docs.js +528 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +1234 -0
- package/dist/sdk-client.js +50 -0
- package/dist/serve.d.ts +13 -0
- package/dist/serve.js +197 -0
- package/dist/trw-embedded.js +2719 -0
- package/dist/trw-version.json +1 -0
- package/docs/README.md +13 -0
- package/docs/local-mode.md +76 -0
- package/docs/quick-start.md +82 -0
- package/docs/thin-client.md +100 -0
- package/package.json +49 -0
|
@@ -0,0 +1,769 @@
|
|
|
1
|
+
export declare const BUNDLED_API_DOCS: {
|
|
2
|
+
readonly service: "remote-workspace";
|
|
3
|
+
readonly protocol: "HTTP REST";
|
|
4
|
+
readonly auth: {
|
|
5
|
+
readonly required_header: "X-Cloudbase-Session-Id";
|
|
6
|
+
};
|
|
7
|
+
readonly endpoints: {
|
|
8
|
+
readonly health: "GET /health";
|
|
9
|
+
readonly docs: "GET /api/docs";
|
|
10
|
+
readonly tools: "POST /api/tools/{tool}";
|
|
11
|
+
};
|
|
12
|
+
readonly tools: readonly [{
|
|
13
|
+
readonly name: "read";
|
|
14
|
+
readonly description: "Read file contents (line-numbered). Also lists directory contents.";
|
|
15
|
+
readonly endpoint: "POST /api/tools/read";
|
|
16
|
+
readonly input_schema: {
|
|
17
|
+
readonly type: "object";
|
|
18
|
+
readonly required: readonly ["path"];
|
|
19
|
+
readonly properties: {
|
|
20
|
+
readonly path: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
};
|
|
23
|
+
readonly offset: {
|
|
24
|
+
readonly type: "integer";
|
|
25
|
+
readonly minimum: 1;
|
|
26
|
+
};
|
|
27
|
+
readonly limit: {
|
|
28
|
+
readonly type: "integer";
|
|
29
|
+
readonly minimum: 1;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
readonly limits: {
|
|
34
|
+
readonly default_limit: 2000;
|
|
35
|
+
};
|
|
36
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "write";
|
|
39
|
+
readonly description: "Create or overwrite a file atomically. Returns a unified diff of changes.";
|
|
40
|
+
readonly endpoint: "POST /api/tools/write";
|
|
41
|
+
readonly input_schema: {
|
|
42
|
+
readonly type: "object";
|
|
43
|
+
readonly required: readonly ["path", "content"];
|
|
44
|
+
readonly properties: {
|
|
45
|
+
readonly path: {
|
|
46
|
+
readonly type: "string";
|
|
47
|
+
};
|
|
48
|
+
readonly content: {
|
|
49
|
+
readonly type: "string";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly limits: {};
|
|
54
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "edit";
|
|
57
|
+
readonly description: "Replace a specific string in a file with fuzzy matching fallbacks.";
|
|
58
|
+
readonly endpoint: "POST /api/tools/edit";
|
|
59
|
+
readonly input_schema: {
|
|
60
|
+
readonly type: "object";
|
|
61
|
+
readonly required: readonly ["path", "oldString", "newString"];
|
|
62
|
+
readonly properties: {
|
|
63
|
+
readonly path: {
|
|
64
|
+
readonly type: "string";
|
|
65
|
+
};
|
|
66
|
+
readonly oldString: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
};
|
|
69
|
+
readonly newString: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
};
|
|
72
|
+
readonly replaceAll: {
|
|
73
|
+
readonly type: "boolean";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
readonly limits: {};
|
|
78
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "add_mcp_servers";
|
|
81
|
+
readonly description: "Merge stdio MCP servers into session .mcporter/mcporter.json (idempotent by name). Returns available_mcp_servers.";
|
|
82
|
+
readonly endpoint: "POST /api/tools/add_mcp_servers";
|
|
83
|
+
readonly input_schema: {
|
|
84
|
+
readonly type: "object";
|
|
85
|
+
readonly additionalProperties: true;
|
|
86
|
+
readonly properties: {
|
|
87
|
+
readonly mcpServers: {
|
|
88
|
+
readonly oneOf: readonly [{
|
|
89
|
+
readonly type: "object";
|
|
90
|
+
readonly additionalProperties: true;
|
|
91
|
+
}, {
|
|
92
|
+
readonly type: "string";
|
|
93
|
+
}];
|
|
94
|
+
};
|
|
95
|
+
readonly serverName: {
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
};
|
|
98
|
+
readonly name: {
|
|
99
|
+
readonly type: "string";
|
|
100
|
+
};
|
|
101
|
+
readonly server: {
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
};
|
|
104
|
+
readonly command: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
};
|
|
107
|
+
readonly args: {
|
|
108
|
+
readonly type: "array";
|
|
109
|
+
readonly items: {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
readonly env: {
|
|
114
|
+
readonly type: "object";
|
|
115
|
+
};
|
|
116
|
+
readonly capabilityIds: {
|
|
117
|
+
readonly type: "object";
|
|
118
|
+
readonly additionalProperties: {
|
|
119
|
+
readonly type: "string";
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
readonly limits: {};
|
|
125
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "remove_mcp_servers";
|
|
128
|
+
readonly description: "Remove MCP server(s) from session mcporter by name(s); returns updated available_mcp_servers (pairs with add_mcp_servers).";
|
|
129
|
+
readonly endpoint: "POST /api/tools/remove_mcp_servers";
|
|
130
|
+
readonly input_schema: {
|
|
131
|
+
readonly type: "object";
|
|
132
|
+
readonly additionalProperties: false;
|
|
133
|
+
readonly properties: {
|
|
134
|
+
readonly serverNames: {
|
|
135
|
+
readonly oneOf: readonly [{
|
|
136
|
+
readonly type: "array";
|
|
137
|
+
readonly items: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
};
|
|
140
|
+
}, {
|
|
141
|
+
readonly type: "string";
|
|
142
|
+
}];
|
|
143
|
+
};
|
|
144
|
+
readonly serverName: {
|
|
145
|
+
readonly type: "string";
|
|
146
|
+
};
|
|
147
|
+
readonly name: {
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
};
|
|
150
|
+
readonly server: {
|
|
151
|
+
readonly type: "string";
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
readonly limits: {};
|
|
156
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
157
|
+
}, {
|
|
158
|
+
readonly name: "bash";
|
|
159
|
+
readonly description: "Execute a shell command in the workspace (default execute, explicit dry_run supported with riskSummary/decision/changeSet).";
|
|
160
|
+
readonly endpoint: "POST /api/tools/bash";
|
|
161
|
+
readonly input_schema: {
|
|
162
|
+
readonly type: "object";
|
|
163
|
+
readonly required: readonly ["command"];
|
|
164
|
+
readonly properties: {
|
|
165
|
+
readonly command: {
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
};
|
|
168
|
+
readonly timeout: {
|
|
169
|
+
readonly type: "integer";
|
|
170
|
+
readonly minimum: 1;
|
|
171
|
+
};
|
|
172
|
+
readonly mode: {
|
|
173
|
+
readonly type: "string";
|
|
174
|
+
readonly enum: readonly ["execute", "dry_run"];
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
readonly limits: {
|
|
179
|
+
readonly timeout_default_ms: 300000;
|
|
180
|
+
readonly timeout_max_ms: 600000;
|
|
181
|
+
};
|
|
182
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
183
|
+
}, {
|
|
184
|
+
readonly name: "grep";
|
|
185
|
+
readonly description: "Search file contents by regex pattern. Returns matching lines with paths.";
|
|
186
|
+
readonly endpoint: "POST /api/tools/grep";
|
|
187
|
+
readonly input_schema: {
|
|
188
|
+
readonly type: "object";
|
|
189
|
+
readonly required: readonly ["pattern"];
|
|
190
|
+
readonly properties: {
|
|
191
|
+
readonly pattern: {
|
|
192
|
+
readonly type: "string";
|
|
193
|
+
};
|
|
194
|
+
readonly path: {
|
|
195
|
+
readonly type: "string";
|
|
196
|
+
};
|
|
197
|
+
readonly include: {
|
|
198
|
+
readonly type: "string";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
readonly limits: {
|
|
203
|
+
readonly result_limit: 100;
|
|
204
|
+
};
|
|
205
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
206
|
+
}, {
|
|
207
|
+
readonly name: "glob";
|
|
208
|
+
readonly description: "Find files by glob pattern (e.g. '**/*.ts').";
|
|
209
|
+
readonly endpoint: "POST /api/tools/glob";
|
|
210
|
+
readonly input_schema: {
|
|
211
|
+
readonly type: "object";
|
|
212
|
+
readonly required: readonly ["pattern"];
|
|
213
|
+
readonly properties: {
|
|
214
|
+
readonly pattern: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
};
|
|
217
|
+
readonly path: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
readonly limits: {
|
|
223
|
+
readonly result_limit: 100;
|
|
224
|
+
};
|
|
225
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
226
|
+
}, {
|
|
227
|
+
readonly name: "list_mcp_servers";
|
|
228
|
+
readonly description: "List MCP server names from session mcporter config (available_mcp_servers). Read-only.";
|
|
229
|
+
readonly endpoint: "POST /api/tools/list_mcp_servers";
|
|
230
|
+
readonly input_schema: {
|
|
231
|
+
readonly type: "object";
|
|
232
|
+
readonly properties: {};
|
|
233
|
+
};
|
|
234
|
+
readonly limits: {};
|
|
235
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
236
|
+
}, {
|
|
237
|
+
readonly name: "mcporter_cli";
|
|
238
|
+
readonly description: string;
|
|
239
|
+
readonly endpoint: "POST /api/tools/mcporter_cli";
|
|
240
|
+
readonly input_schema: {
|
|
241
|
+
readonly type: "object";
|
|
242
|
+
readonly required: readonly ["command"];
|
|
243
|
+
readonly properties: {
|
|
244
|
+
readonly command: {
|
|
245
|
+
readonly type: "string";
|
|
246
|
+
readonly description: "Mcporter subcommand (without 'mcporter' prefix)";
|
|
247
|
+
};
|
|
248
|
+
readonly timeout: {
|
|
249
|
+
readonly type: "integer";
|
|
250
|
+
readonly description: "Timeout in ms (default 300000)";
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
readonly limits: {
|
|
255
|
+
readonly default_timeout_ms: 300000;
|
|
256
|
+
readonly allowed_subcommands: readonly ["help", "list", "call", "config"];
|
|
257
|
+
};
|
|
258
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
259
|
+
}, {
|
|
260
|
+
readonly name: "ls";
|
|
261
|
+
readonly description: "List directory tree with common noise dirs excluded.";
|
|
262
|
+
readonly endpoint: "POST /api/tools/ls";
|
|
263
|
+
readonly input_schema: {
|
|
264
|
+
readonly type: "object";
|
|
265
|
+
readonly properties: {
|
|
266
|
+
readonly path: {
|
|
267
|
+
readonly type: "string";
|
|
268
|
+
};
|
|
269
|
+
readonly ignore: {
|
|
270
|
+
readonly type: "array";
|
|
271
|
+
readonly items: {
|
|
272
|
+
readonly type: "string";
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
readonly limits: {
|
|
278
|
+
readonly result_limit: 100;
|
|
279
|
+
};
|
|
280
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
281
|
+
}, {
|
|
282
|
+
readonly name: "pty_create";
|
|
283
|
+
readonly description: "Create a session-scoped PTY process.";
|
|
284
|
+
readonly endpoint: "POST /api/tools/pty_create";
|
|
285
|
+
readonly input_schema: {
|
|
286
|
+
readonly type: "object";
|
|
287
|
+
readonly properties: {
|
|
288
|
+
readonly cmd: {
|
|
289
|
+
readonly type: "string";
|
|
290
|
+
};
|
|
291
|
+
readonly args: {
|
|
292
|
+
readonly type: "array";
|
|
293
|
+
readonly items: {
|
|
294
|
+
readonly type: "string";
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
readonly cwd: {
|
|
298
|
+
readonly type: "string";
|
|
299
|
+
};
|
|
300
|
+
readonly envs: {
|
|
301
|
+
readonly type: "object";
|
|
302
|
+
};
|
|
303
|
+
readonly cols: {
|
|
304
|
+
readonly type: "integer";
|
|
305
|
+
};
|
|
306
|
+
readonly rows: {
|
|
307
|
+
readonly type: "integer";
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
readonly limits: {};
|
|
312
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
313
|
+
}, {
|
|
314
|
+
readonly name: "pty_send_input";
|
|
315
|
+
readonly description: "Send base64 input bytes to PTY by pid.";
|
|
316
|
+
readonly endpoint: "POST /api/tools/pty_send_input";
|
|
317
|
+
readonly input_schema: {
|
|
318
|
+
readonly type: "object";
|
|
319
|
+
readonly required: readonly ["pid", "inputBase64"];
|
|
320
|
+
readonly properties: {
|
|
321
|
+
readonly pid: {
|
|
322
|
+
readonly type: "integer";
|
|
323
|
+
};
|
|
324
|
+
readonly inputBase64: {
|
|
325
|
+
readonly type: "string";
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
readonly limits: {};
|
|
330
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
331
|
+
}, {
|
|
332
|
+
readonly name: "pty_resize";
|
|
333
|
+
readonly description: "Resize PTY by pid.";
|
|
334
|
+
readonly endpoint: "POST /api/tools/pty_resize";
|
|
335
|
+
readonly input_schema: {
|
|
336
|
+
readonly type: "object";
|
|
337
|
+
readonly required: readonly ["pid", "cols", "rows"];
|
|
338
|
+
readonly properties: {
|
|
339
|
+
readonly pid: {
|
|
340
|
+
readonly type: "integer";
|
|
341
|
+
};
|
|
342
|
+
readonly cols: {
|
|
343
|
+
readonly type: "integer";
|
|
344
|
+
readonly minimum: 1;
|
|
345
|
+
};
|
|
346
|
+
readonly rows: {
|
|
347
|
+
readonly type: "integer";
|
|
348
|
+
readonly minimum: 1;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly limits: {};
|
|
353
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
354
|
+
}, {
|
|
355
|
+
readonly name: "pty_read_output";
|
|
356
|
+
readonly description: "Read buffered PTY output events by pid.";
|
|
357
|
+
readonly endpoint: "POST /api/tools/pty_read_output";
|
|
358
|
+
readonly input_schema: {
|
|
359
|
+
readonly type: "object";
|
|
360
|
+
readonly required: readonly ["pid"];
|
|
361
|
+
readonly properties: {
|
|
362
|
+
readonly pid: {
|
|
363
|
+
readonly type: "integer";
|
|
364
|
+
};
|
|
365
|
+
readonly afterSeq: {
|
|
366
|
+
readonly type: "integer";
|
|
367
|
+
readonly minimum: 0;
|
|
368
|
+
};
|
|
369
|
+
readonly limit: {
|
|
370
|
+
readonly type: "integer";
|
|
371
|
+
readonly minimum: 1;
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
readonly limits: {
|
|
376
|
+
readonly default_limit: 128;
|
|
377
|
+
readonly max_limit: 512;
|
|
378
|
+
readonly buffer_size_events: 512;
|
|
379
|
+
};
|
|
380
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
381
|
+
}, {
|
|
382
|
+
readonly name: "pty_kill";
|
|
383
|
+
readonly description: "Kill PTY by pid.";
|
|
384
|
+
readonly endpoint: "POST /api/tools/pty_kill";
|
|
385
|
+
readonly input_schema: {
|
|
386
|
+
readonly type: "object";
|
|
387
|
+
readonly required: readonly ["pid"];
|
|
388
|
+
readonly properties: {
|
|
389
|
+
readonly pid: {
|
|
390
|
+
readonly type: "integer";
|
|
391
|
+
};
|
|
392
|
+
readonly signal: {
|
|
393
|
+
readonly type: "string";
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
readonly limits: {};
|
|
398
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
399
|
+
}, {
|
|
400
|
+
readonly name: "secrets_set";
|
|
401
|
+
readonly description: "Set or overwrite a session secret.";
|
|
402
|
+
readonly endpoint: "POST /api/tools/secrets_set";
|
|
403
|
+
readonly input_schema: {
|
|
404
|
+
readonly type: "object";
|
|
405
|
+
readonly required: readonly ["key", "value"];
|
|
406
|
+
readonly properties: {
|
|
407
|
+
readonly key: {
|
|
408
|
+
readonly type: "string";
|
|
409
|
+
};
|
|
410
|
+
readonly value: {
|
|
411
|
+
readonly type: "string";
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
readonly limits: {};
|
|
416
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
417
|
+
}, {
|
|
418
|
+
readonly name: "secrets_get";
|
|
419
|
+
readonly description: "Get plaintext session secret.";
|
|
420
|
+
readonly endpoint: "POST /api/tools/secrets_get";
|
|
421
|
+
readonly input_schema: {
|
|
422
|
+
readonly type: "object";
|
|
423
|
+
readonly required: readonly ["key"];
|
|
424
|
+
readonly properties: {
|
|
425
|
+
readonly key: {
|
|
426
|
+
readonly type: "string";
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
readonly limits: {};
|
|
431
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
432
|
+
}, {
|
|
433
|
+
readonly name: "secrets_list";
|
|
434
|
+
readonly description: "List session secret keys.";
|
|
435
|
+
readonly endpoint: "POST /api/tools/secrets_list";
|
|
436
|
+
readonly input_schema: {
|
|
437
|
+
readonly type: "object";
|
|
438
|
+
readonly properties: {};
|
|
439
|
+
};
|
|
440
|
+
readonly limits: {};
|
|
441
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
442
|
+
}, {
|
|
443
|
+
readonly name: "secrets_delete";
|
|
444
|
+
readonly description: "Delete a session secret.";
|
|
445
|
+
readonly endpoint: "POST /api/tools/secrets_delete";
|
|
446
|
+
readonly input_schema: {
|
|
447
|
+
readonly type: "object";
|
|
448
|
+
readonly required: readonly ["key"];
|
|
449
|
+
readonly properties: {
|
|
450
|
+
readonly key: {
|
|
451
|
+
readonly type: "string";
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
readonly limits: {};
|
|
456
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
457
|
+
}, {
|
|
458
|
+
readonly name: "preview_ports";
|
|
459
|
+
readonly description: "List previewable ports for session.";
|
|
460
|
+
readonly endpoint: "POST /api/tools/preview_ports";
|
|
461
|
+
readonly input_schema: {
|
|
462
|
+
readonly type: "object";
|
|
463
|
+
readonly properties: {
|
|
464
|
+
readonly endpoint: {
|
|
465
|
+
readonly type: "string";
|
|
466
|
+
};
|
|
467
|
+
readonly includeSessionQuery: {
|
|
468
|
+
readonly type: "boolean";
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
readonly limits: {};
|
|
473
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
474
|
+
}, {
|
|
475
|
+
readonly name: "preview_url";
|
|
476
|
+
readonly description: "Build preview URL for a port.";
|
|
477
|
+
readonly endpoint: "POST /api/tools/preview_url";
|
|
478
|
+
readonly input_schema: {
|
|
479
|
+
readonly type: "object";
|
|
480
|
+
readonly required: readonly ["port"];
|
|
481
|
+
readonly properties: {
|
|
482
|
+
readonly port: {
|
|
483
|
+
readonly type: "integer";
|
|
484
|
+
};
|
|
485
|
+
readonly endpoint: {
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
};
|
|
488
|
+
readonly includeSessionQuery: {
|
|
489
|
+
readonly type: "boolean";
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
readonly limits: {};
|
|
494
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
495
|
+
}, {
|
|
496
|
+
readonly name: "files_upload";
|
|
497
|
+
readonly description: "Upload file bytes as base64 payload.";
|
|
498
|
+
readonly endpoint: "POST /api/tools/files_upload";
|
|
499
|
+
readonly input_schema: {
|
|
500
|
+
readonly type: "object";
|
|
501
|
+
readonly required: readonly ["path", "contentBase64"];
|
|
502
|
+
readonly properties: {
|
|
503
|
+
readonly path: {
|
|
504
|
+
readonly type: "string";
|
|
505
|
+
};
|
|
506
|
+
readonly contentBase64: {
|
|
507
|
+
readonly type: "string";
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
readonly limits: {
|
|
512
|
+
readonly max_bytes_per_transfer: number;
|
|
513
|
+
};
|
|
514
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
515
|
+
}, {
|
|
516
|
+
readonly name: "files_download";
|
|
517
|
+
readonly description: "Download file bytes as base64 payload.";
|
|
518
|
+
readonly endpoint: "POST /api/tools/files_download";
|
|
519
|
+
readonly input_schema: {
|
|
520
|
+
readonly type: "object";
|
|
521
|
+
readonly required: readonly ["path"];
|
|
522
|
+
readonly properties: {
|
|
523
|
+
readonly path: {
|
|
524
|
+
readonly type: "string";
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
readonly limits: {
|
|
529
|
+
readonly max_bytes_per_transfer: number;
|
|
530
|
+
};
|
|
531
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
532
|
+
}, {
|
|
533
|
+
readonly name: "batch";
|
|
534
|
+
readonly description: "Execute multiple tool calls in parallel chunks.";
|
|
535
|
+
readonly endpoint: "POST /api/tools/batch";
|
|
536
|
+
readonly input_schema: {
|
|
537
|
+
readonly type: "object";
|
|
538
|
+
readonly required: readonly ["tool_calls"];
|
|
539
|
+
readonly properties: {
|
|
540
|
+
readonly tool_calls: {
|
|
541
|
+
readonly type: "array";
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
readonly limits: {
|
|
546
|
+
readonly max_tool_calls: 25;
|
|
547
|
+
readonly max_parallel_per_chunk: 5;
|
|
548
|
+
};
|
|
549
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
550
|
+
}, {
|
|
551
|
+
readonly name: "capability_list";
|
|
552
|
+
readonly description: "List available capabilities (built-in + registered).";
|
|
553
|
+
readonly endpoint: "POST /api/tools/capability_list";
|
|
554
|
+
readonly input_schema: {
|
|
555
|
+
readonly type: "object";
|
|
556
|
+
readonly properties: {
|
|
557
|
+
readonly includeBuiltins: {
|
|
558
|
+
readonly type: "boolean";
|
|
559
|
+
};
|
|
560
|
+
readonly revealPaths: {
|
|
561
|
+
readonly type: "boolean";
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
readonly limits: {};
|
|
566
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
567
|
+
}, {
|
|
568
|
+
readonly name: "capability_install";
|
|
569
|
+
readonly description: "Return install guidance only. Caller executes installation/configuration and then registers metadata.";
|
|
570
|
+
readonly endpoint: "POST /api/tools/capability_install";
|
|
571
|
+
readonly input_schema: {
|
|
572
|
+
readonly type: "object";
|
|
573
|
+
readonly required: readonly ["id"];
|
|
574
|
+
readonly properties: {
|
|
575
|
+
readonly id: {
|
|
576
|
+
readonly type: "string";
|
|
577
|
+
};
|
|
578
|
+
readonly kind: {
|
|
579
|
+
readonly type: "string";
|
|
580
|
+
readonly enum: readonly ["cli", "mcp", "skill"];
|
|
581
|
+
};
|
|
582
|
+
readonly package: {
|
|
583
|
+
readonly type: "string";
|
|
584
|
+
};
|
|
585
|
+
readonly version: {
|
|
586
|
+
readonly type: "string";
|
|
587
|
+
};
|
|
588
|
+
readonly bin: {
|
|
589
|
+
readonly type: "string";
|
|
590
|
+
};
|
|
591
|
+
readonly serverName: {
|
|
592
|
+
readonly type: "string";
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
readonly limits: {};
|
|
597
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
598
|
+
}, {
|
|
599
|
+
readonly name: "capability_register";
|
|
600
|
+
readonly description: "Register externally prepared capability runtime metadata.";
|
|
601
|
+
readonly endpoint: "POST /api/tools/capability_register";
|
|
602
|
+
readonly input_schema: {
|
|
603
|
+
readonly type: "object";
|
|
604
|
+
readonly required: readonly ["id", "kind"];
|
|
605
|
+
readonly properties: {
|
|
606
|
+
readonly id: {
|
|
607
|
+
readonly type: "string";
|
|
608
|
+
};
|
|
609
|
+
readonly kind: {
|
|
610
|
+
readonly type: "string";
|
|
611
|
+
readonly enum: readonly ["cli", "mcp", "skill"];
|
|
612
|
+
};
|
|
613
|
+
readonly source: {
|
|
614
|
+
readonly type: "string";
|
|
615
|
+
readonly enum: readonly ["managed", "external"];
|
|
616
|
+
};
|
|
617
|
+
readonly description: {
|
|
618
|
+
readonly type: "string";
|
|
619
|
+
};
|
|
620
|
+
readonly command: {
|
|
621
|
+
readonly type: "string";
|
|
622
|
+
};
|
|
623
|
+
readonly args: {
|
|
624
|
+
readonly type: "array";
|
|
625
|
+
readonly items: {
|
|
626
|
+
readonly type: "string";
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
readonly env: {
|
|
630
|
+
readonly type: "object";
|
|
631
|
+
};
|
|
632
|
+
readonly serverName: {
|
|
633
|
+
readonly type: "string";
|
|
634
|
+
};
|
|
635
|
+
readonly packagePath: {
|
|
636
|
+
readonly type: "string";
|
|
637
|
+
};
|
|
638
|
+
readonly entryFile: {
|
|
639
|
+
readonly type: "string";
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
readonly limits: {};
|
|
644
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
645
|
+
}, {
|
|
646
|
+
readonly name: "capability_remove";
|
|
647
|
+
readonly description: "Remove a registered capability.";
|
|
648
|
+
readonly endpoint: "POST /api/tools/capability_remove";
|
|
649
|
+
readonly input_schema: {
|
|
650
|
+
readonly type: "object";
|
|
651
|
+
readonly required: readonly ["id"];
|
|
652
|
+
readonly properties: {
|
|
653
|
+
readonly id: {
|
|
654
|
+
readonly type: "string";
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
readonly limits: {};
|
|
659
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
660
|
+
}, {
|
|
661
|
+
readonly name: "capability_describe";
|
|
662
|
+
readonly description: "Describe capability actions and schemas.";
|
|
663
|
+
readonly endpoint: "POST /api/tools/capability_describe";
|
|
664
|
+
readonly input_schema: {
|
|
665
|
+
readonly type: "object";
|
|
666
|
+
readonly required: readonly ["id"];
|
|
667
|
+
readonly properties: {
|
|
668
|
+
readonly id: {
|
|
669
|
+
readonly type: "string";
|
|
670
|
+
};
|
|
671
|
+
readonly revealPaths: {
|
|
672
|
+
readonly type: "boolean";
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
readonly limits: {};
|
|
677
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
678
|
+
}, {
|
|
679
|
+
readonly name: "capability_invoke";
|
|
680
|
+
readonly description: "Invoke capability action only for capabilities that execute directly in capability layer.";
|
|
681
|
+
readonly endpoint: "POST /api/tools/capability_invoke";
|
|
682
|
+
readonly input_schema: {
|
|
683
|
+
readonly type: "object";
|
|
684
|
+
readonly required: readonly ["id", "action"];
|
|
685
|
+
readonly properties: {
|
|
686
|
+
readonly id: {
|
|
687
|
+
readonly type: "string";
|
|
688
|
+
};
|
|
689
|
+
readonly action: {
|
|
690
|
+
readonly type: "string";
|
|
691
|
+
};
|
|
692
|
+
readonly parameters: {
|
|
693
|
+
readonly type: "object";
|
|
694
|
+
};
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
readonly limits: {};
|
|
698
|
+
readonly notes: readonly ["Only native data-plane capabilities execute here (for example secrets-store/files-transfer/preview-service/pty-service/git-archive)."];
|
|
699
|
+
}, {
|
|
700
|
+
readonly name: "git_push";
|
|
701
|
+
readonly description: "Commit all workspace changes and push to archive repository.";
|
|
702
|
+
readonly endpoint: "POST /api/tools/git_push";
|
|
703
|
+
readonly input_schema: {
|
|
704
|
+
readonly type: "object";
|
|
705
|
+
readonly properties: {
|
|
706
|
+
readonly message: {
|
|
707
|
+
readonly type: "string";
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
readonly limits: {};
|
|
712
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
713
|
+
}, {
|
|
714
|
+
readonly name: "workspace_snapshot";
|
|
715
|
+
readonly description: "Create async workspace snapshot uploaded to S3. Returns snapshot_id immediately.";
|
|
716
|
+
readonly endpoint: "POST /api/tools/workspace_snapshot";
|
|
717
|
+
readonly input_schema: {
|
|
718
|
+
readonly type: "object";
|
|
719
|
+
readonly properties: {
|
|
720
|
+
readonly exclude: {
|
|
721
|
+
readonly type: "array";
|
|
722
|
+
readonly items: {
|
|
723
|
+
readonly type: "string";
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
readonly include_all: {
|
|
727
|
+
readonly type: "boolean";
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
readonly limits: {
|
|
732
|
+
readonly max_concurrent: 2;
|
|
733
|
+
};
|
|
734
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
735
|
+
}, {
|
|
736
|
+
readonly name: "workspace_snapshot_status";
|
|
737
|
+
readonly description: "Check snapshot task status by snapshot_id or list all session tasks.";
|
|
738
|
+
readonly endpoint: "POST /api/tools/workspace_snapshot_status";
|
|
739
|
+
readonly input_schema: {
|
|
740
|
+
readonly type: "object";
|
|
741
|
+
readonly properties: {
|
|
742
|
+
readonly snapshot_id: {
|
|
743
|
+
readonly type: "string";
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
};
|
|
747
|
+
readonly limits: {};
|
|
748
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
749
|
+
}, {
|
|
750
|
+
readonly name: "workspace_restore";
|
|
751
|
+
readonly description: "Restore workspace from snapshot. mode=\"merge\" overlays, mode=\"replace\" cleans first.";
|
|
752
|
+
readonly endpoint: "POST /api/tools/workspace_restore";
|
|
753
|
+
readonly input_schema: {
|
|
754
|
+
readonly type: "object";
|
|
755
|
+
readonly required: readonly ["snapshot_id"];
|
|
756
|
+
readonly properties: {
|
|
757
|
+
readonly snapshot_id: {
|
|
758
|
+
readonly type: "string";
|
|
759
|
+
};
|
|
760
|
+
readonly mode: {
|
|
761
|
+
readonly type: "string";
|
|
762
|
+
readonly enum: readonly ["merge", "replace"];
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
readonly limits: {};
|
|
767
|
+
readonly notes: readonly ["Bundled fallback docs snapshot."];
|
|
768
|
+
}];
|
|
769
|
+
};
|