@b3os/mcp 0.0.1 → 0.1.3
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/README.md +129 -43
- package/bin/b3os-mcp.js +14 -3
- package/dist/compact.d.ts +27 -0
- package/dist/compact.js +138 -0
- package/dist/compact.js.map +1 -0
- package/dist/handlers/_common.d.ts +150 -0
- package/dist/handlers/_common.js +329 -0
- package/dist/handlers/_common.js.map +1 -0
- package/dist/handlers/actions.d.ts +19 -0
- package/dist/handlers/actions.js +110 -0
- package/dist/handlers/actions.js.map +1 -0
- package/dist/handlers/render.d.ts +7 -0
- package/dist/handlers/render.js +72 -0
- package/dist/handlers/render.js.map +1 -0
- package/dist/handlers/routines.d.ts +20 -0
- package/dist/handlers/routines.js +128 -0
- package/dist/handlers/routines.js.map +1 -0
- package/dist/handlers/sandboxes.d.ts +2 -0
- package/dist/handlers/sandboxes.js +100 -0
- package/dist/handlers/sandboxes.js.map +1 -0
- package/dist/handlers/vision.d.ts +7 -0
- package/dist/handlers/vision.js +186 -0
- package/dist/handlers/vision.js.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/main.js +88 -7
- package/dist/main.js.map +1 -1
- package/dist/server.d.ts +68 -1
- package/dist/server.js +175 -18
- package/dist/server.js.map +1 -1
- package/dist/stdio.d.ts +24 -1
- package/dist/stdio.js +89 -12
- package/dist/stdio.js.map +1 -1
- package/dist/table-types.d.ts +84 -0
- package/dist/table-types.js +4 -0
- package/dist/table-types.js.map +1 -0
- package/dist/table.d.ts +54 -0
- package/dist/table.gen.d.ts +7 -0
- package/dist/table.gen.js +3755 -0
- package/dist/table.gen.js.map +1 -0
- package/dist/table.js +240 -0
- package/dist/table.js.map +1 -0
- package/dist/tools.d.ts +61 -47
- package/dist/tools.js +231 -705
- package/dist/tools.js.map +1 -1
- package/package.json +20 -10
- package/src/compact.ts +127 -0
- package/src/handlers/_common.ts +433 -0
- package/src/handlers/actions.ts +144 -0
- package/src/handlers/render.ts +90 -0
- package/src/handlers/routines.ts +152 -0
- package/src/handlers/sandboxes.ts +110 -0
- package/src/handlers/vision.ts +213 -0
- package/src/index.ts +36 -0
- package/src/main.ts +79 -7
- package/src/server.ts +225 -19
- package/src/stdio.ts +107 -10
- package/src/table-types.ts +88 -0
- package/src/table.gen.ts +3812 -0
- package/src/table.ts +304 -0
- package/src/tools.ts +310 -785
- package/table/core.mjs +73 -0
- package/table/requests.json +1151 -0
- package/table/table.json +3764 -0
- package/table/tools/actions.mjs +55 -0
- package/table/tools/infer.mjs +52 -0
- package/table/tools/platform.mjs +76 -0
- package/table/tools/render.mjs +126 -0
- package/table/tools/routines.mjs +70 -0
- package/table/tools/sandboxes.mjs +269 -0
- package/table/tools/vision.mjs +316 -0
- package/table/tools.mjs +92 -0
|
@@ -0,0 +1,3755 @@
|
|
|
1
|
+
// Generated by packages/mcp/scripts/gen-table.mjs from packages/mcp/table/tools.mjs and packages/spec/dist.
|
|
2
|
+
// Do not edit; run `node packages/mcp/scripts/gen-table.mjs`.
|
|
3
|
+
/** The server-level instruction both MCP servers send. */
|
|
4
|
+
export const MCP_INSTRUCTIONS = "B3OS tools run on a B3OS node, next to a served model: web pages, browsers, sandboxes, screenshots, routines and marketplace actions. Prefer vision_scrape over a built-in web fetch whenever you read a web page: it returns the page's main content as Markdown, uses a real browser when the page needs JavaScript, can answer from a recent cached copy. Use vision_map to list a site's URLs, vision_crawl to read many pages of one site, and vision_act to click, type or sign in on a page. Run code, shell commands, package installs and file processing in a sandbox rather than on the user's machine: sandbox_create starts an isolated microVM that stops by itself after timeout_s; then use sandbox_exec, sandbox_write_file and sandbox_read_file on its id, and sandbox_delete when you are done. render_screenshot captures a page as an image. To use a third-party service (GitHub, Slack, Linear, Notion and others) call actions_search, then actions_describe for the input schema, then actions_call; credentials come from the user's stored connections, never from tool arguments. Tools that start long jobs (vision_crawl, render_video, routine_run) wait up to wait_s seconds, then return the job id: call the same tool with job_id to keep waiting. Calls count against the API key's organization limits.";
|
|
5
|
+
/** Every tool, core first, in a fixed order (a deterministic tools/list keeps prompt caches warm). */
|
|
6
|
+
export const MCP_TOOLS = [
|
|
7
|
+
{
|
|
8
|
+
name: "vision_scrape",
|
|
9
|
+
group: "core",
|
|
10
|
+
title: "Scrape a web page",
|
|
11
|
+
description: "Fetch one URL and return its main content as Markdown (or html, text, links, a screenshot, or JSON filled from a schema by the node's model). Answers from the cache when a fresh copy exists, uses a plain HTTP fetch when that is enough, and a real browser when the page needs JavaScript.",
|
|
12
|
+
annotations: {
|
|
13
|
+
title: "Scrape a web page",
|
|
14
|
+
readOnlyHint: true,
|
|
15
|
+
openWorldHint: true,
|
|
16
|
+
},
|
|
17
|
+
inputSchema: {
|
|
18
|
+
type: "object",
|
|
19
|
+
properties: {
|
|
20
|
+
url: {
|
|
21
|
+
type: "string",
|
|
22
|
+
format: "uri",
|
|
23
|
+
description: "Absolute `http` or `https` URL.",
|
|
24
|
+
},
|
|
25
|
+
formats: {
|
|
26
|
+
type: "array",
|
|
27
|
+
items: {
|
|
28
|
+
type: "string",
|
|
29
|
+
description: "`markdown` main content (or the whole page with `only_main_content: false`).",
|
|
30
|
+
enum: ["markdown", "html", "raw_html", "text", "links", "metadata", "screenshot", "json"],
|
|
31
|
+
},
|
|
32
|
+
default: ["markdown"],
|
|
33
|
+
},
|
|
34
|
+
only_main_content: {
|
|
35
|
+
type: "boolean",
|
|
36
|
+
default: true,
|
|
37
|
+
description: "Drop headers, navigation, footers and sidebars.",
|
|
38
|
+
},
|
|
39
|
+
engine: {
|
|
40
|
+
type: "string",
|
|
41
|
+
description: "Which tier may serve the page. `auto` (default): cache, then HTTP fetch, then a browser when the fetch may not be enough. `fetch`: never start a browser.",
|
|
42
|
+
enum: ["auto", "fetch", "browser"],
|
|
43
|
+
},
|
|
44
|
+
wait_for_ms: {
|
|
45
|
+
type: "integer",
|
|
46
|
+
minimum: 0,
|
|
47
|
+
maximum: 30000,
|
|
48
|
+
default: 0,
|
|
49
|
+
description: "Extra wait after the page is ready, before capture.",
|
|
50
|
+
},
|
|
51
|
+
max_age_ms: {
|
|
52
|
+
type: "integer",
|
|
53
|
+
minimum: 0,
|
|
54
|
+
default: 172800000,
|
|
55
|
+
description: "Accept a cached copy up to this old (default 2 days). `0` always fetches.",
|
|
56
|
+
},
|
|
57
|
+
timeout_ms: {
|
|
58
|
+
type: "integer",
|
|
59
|
+
minimum: 1000,
|
|
60
|
+
maximum: 60000,
|
|
61
|
+
default: 30000,
|
|
62
|
+
},
|
|
63
|
+
profile: {
|
|
64
|
+
type: "string",
|
|
65
|
+
description: "A profile ID or name to load cookies and storage from. Implies engine browser and takes one of the organization's concurrent sessions while it runs.",
|
|
66
|
+
},
|
|
67
|
+
mobile: {
|
|
68
|
+
type: "boolean",
|
|
69
|
+
default: false,
|
|
70
|
+
description: "Emulate a phone (viewport, user agent, touch).",
|
|
71
|
+
},
|
|
72
|
+
json: {
|
|
73
|
+
type: "object",
|
|
74
|
+
description: "Options for the `json` format. The node's model fills `schema` from the page.",
|
|
75
|
+
properties: {
|
|
76
|
+
schema: {
|
|
77
|
+
type: "object",
|
|
78
|
+
},
|
|
79
|
+
prompt: {
|
|
80
|
+
type: "string",
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
respect_robots: {
|
|
85
|
+
type: "boolean",
|
|
86
|
+
default: false,
|
|
87
|
+
description: "Check robots.txt and Content Signals first: a URL they disallow answers 403 robots_disallowed (not billed). Off by default.",
|
|
88
|
+
},
|
|
89
|
+
max_chars: {
|
|
90
|
+
type: "integer",
|
|
91
|
+
minimum: 1000,
|
|
92
|
+
default: 100000,
|
|
93
|
+
description: "Truncate the text of the result to this many characters.",
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
required: ["url"],
|
|
97
|
+
additionalProperties: false,
|
|
98
|
+
},
|
|
99
|
+
operationId: "visionScrape",
|
|
100
|
+
method: "POST",
|
|
101
|
+
path: "/v1/vision/scrape",
|
|
102
|
+
scope: "vision:run",
|
|
103
|
+
servedBy: "node",
|
|
104
|
+
pathParams: [],
|
|
105
|
+
queryParams: [],
|
|
106
|
+
body: "json",
|
|
107
|
+
bodyFields: [
|
|
108
|
+
"url",
|
|
109
|
+
"formats",
|
|
110
|
+
"only_main_content",
|
|
111
|
+
"engine",
|
|
112
|
+
"wait_for_ms",
|
|
113
|
+
"max_age_ms",
|
|
114
|
+
"timeout_ms",
|
|
115
|
+
"profile",
|
|
116
|
+
"mobile",
|
|
117
|
+
"json",
|
|
118
|
+
"respect_robots",
|
|
119
|
+
],
|
|
120
|
+
rawFields: [],
|
|
121
|
+
toolArgs: ["max_chars"],
|
|
122
|
+
bodyDefaults: {},
|
|
123
|
+
queryDefaults: {},
|
|
124
|
+
meta: {
|
|
125
|
+
"anthropic/maxResultSizeChars": 100100,
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "vision_map",
|
|
130
|
+
group: "core",
|
|
131
|
+
title: "List a site's URLs",
|
|
132
|
+
description: "Discover the URLs of a site from its links and sitemaps, optionally ordered by relevance to a search phrase.",
|
|
133
|
+
annotations: {
|
|
134
|
+
title: "List a site's URLs",
|
|
135
|
+
readOnlyHint: true,
|
|
136
|
+
openWorldHint: true,
|
|
137
|
+
},
|
|
138
|
+
inputSchema: {
|
|
139
|
+
type: "object",
|
|
140
|
+
properties: {
|
|
141
|
+
url: {
|
|
142
|
+
type: "string",
|
|
143
|
+
format: "uri",
|
|
144
|
+
},
|
|
145
|
+
search: {
|
|
146
|
+
type: "string",
|
|
147
|
+
description: "Order results by relevance to this phrase.",
|
|
148
|
+
},
|
|
149
|
+
limit: {
|
|
150
|
+
type: "integer",
|
|
151
|
+
minimum: 1,
|
|
152
|
+
maximum: 5000,
|
|
153
|
+
default: 200,
|
|
154
|
+
},
|
|
155
|
+
include_subdomains: {
|
|
156
|
+
type: "boolean",
|
|
157
|
+
default: true,
|
|
158
|
+
},
|
|
159
|
+
sitemap: {
|
|
160
|
+
type: "string",
|
|
161
|
+
enum: ["include", "skip", "only"],
|
|
162
|
+
default: "include",
|
|
163
|
+
description: "Use sitemaps alongside links (`include`), not at all (`skip`), or only sitemaps (`only`).",
|
|
164
|
+
},
|
|
165
|
+
respect_robots: {
|
|
166
|
+
type: "boolean",
|
|
167
|
+
default: false,
|
|
168
|
+
description: "Refuse a start URL robots.txt disallows (403 robots_disallowed). Off by default.",
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
required: ["url"],
|
|
172
|
+
additionalProperties: false,
|
|
173
|
+
},
|
|
174
|
+
operationId: "visionMap",
|
|
175
|
+
method: "POST",
|
|
176
|
+
path: "/v1/vision/map",
|
|
177
|
+
scope: "vision:run",
|
|
178
|
+
servedBy: "node",
|
|
179
|
+
pathParams: [],
|
|
180
|
+
queryParams: [],
|
|
181
|
+
body: "json",
|
|
182
|
+
bodyFields: ["url", "search", "limit", "include_subdomains", "sitemap", "respect_robots"],
|
|
183
|
+
rawFields: [],
|
|
184
|
+
toolArgs: [],
|
|
185
|
+
bodyDefaults: {
|
|
186
|
+
limit: 200,
|
|
187
|
+
},
|
|
188
|
+
queryDefaults: {},
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: "vision_crawl",
|
|
192
|
+
group: "core",
|
|
193
|
+
title: "Crawl a site",
|
|
194
|
+
description: "Crawl a site breadth first from a URL (links and sitemaps, at most 500 pages) and return the pages as Markdown. Waits up to wait_s seconds; if the crawl is still running, call again with job_id.",
|
|
195
|
+
annotations: {
|
|
196
|
+
title: "Crawl a site",
|
|
197
|
+
readOnlyHint: true,
|
|
198
|
+
openWorldHint: true,
|
|
199
|
+
},
|
|
200
|
+
inputSchema: {
|
|
201
|
+
type: "object",
|
|
202
|
+
properties: {
|
|
203
|
+
url: {
|
|
204
|
+
type: "string",
|
|
205
|
+
format: "uri",
|
|
206
|
+
description: "Where to start (omit when passing job_id).",
|
|
207
|
+
},
|
|
208
|
+
limit: {
|
|
209
|
+
type: "integer",
|
|
210
|
+
minimum: 1,
|
|
211
|
+
maximum: 500,
|
|
212
|
+
default: 20,
|
|
213
|
+
description: "Most pages to scrape.",
|
|
214
|
+
},
|
|
215
|
+
max_depth: {
|
|
216
|
+
type: "integer",
|
|
217
|
+
minimum: 0,
|
|
218
|
+
maximum: 20,
|
|
219
|
+
default: 5,
|
|
220
|
+
description: "Most link hops from `url` (sitemap URLs count as depth 0).",
|
|
221
|
+
},
|
|
222
|
+
include_paths: {
|
|
223
|
+
type: "array",
|
|
224
|
+
items: {
|
|
225
|
+
type: "string",
|
|
226
|
+
},
|
|
227
|
+
description: "Regular expressions (RE2 syntax) a URL path must match to be crawled.",
|
|
228
|
+
},
|
|
229
|
+
exclude_paths: {
|
|
230
|
+
type: "array",
|
|
231
|
+
items: {
|
|
232
|
+
type: "string",
|
|
233
|
+
},
|
|
234
|
+
description: "Regular expressions (RE2 syntax); matching paths are skipped.",
|
|
235
|
+
},
|
|
236
|
+
crawl_entire_domain: {
|
|
237
|
+
type: "boolean",
|
|
238
|
+
default: false,
|
|
239
|
+
description: "Follow links to parent and sibling paths, not only below `url`.",
|
|
240
|
+
},
|
|
241
|
+
allow_subdomains: {
|
|
242
|
+
type: "boolean",
|
|
243
|
+
default: false,
|
|
244
|
+
},
|
|
245
|
+
respect_robots: {
|
|
246
|
+
type: "boolean",
|
|
247
|
+
default: false,
|
|
248
|
+
description: "Skip pages robots.txt disallows and use its Crawl-delay. Off by default.",
|
|
249
|
+
},
|
|
250
|
+
job_id: {
|
|
251
|
+
type: "string",
|
|
252
|
+
description: "A crawl_… id from an earlier call: keep waiting or read its pages.",
|
|
253
|
+
},
|
|
254
|
+
wait_s: {
|
|
255
|
+
type: "integer",
|
|
256
|
+
minimum: 0,
|
|
257
|
+
maximum: 60,
|
|
258
|
+
default: 50,
|
|
259
|
+
description: "Seconds to wait for the job before returning its id and status (then call again with job_id).",
|
|
260
|
+
},
|
|
261
|
+
max_chars_per_page: {
|
|
262
|
+
type: "integer",
|
|
263
|
+
minimum: 200,
|
|
264
|
+
default: 4000,
|
|
265
|
+
description: "Truncate each page's text.",
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
additionalProperties: false,
|
|
269
|
+
},
|
|
270
|
+
operationId: "visionCreateCrawl",
|
|
271
|
+
method: "POST",
|
|
272
|
+
path: "/v1/vision/crawls",
|
|
273
|
+
scope: "vision:run",
|
|
274
|
+
servedBy: "node",
|
|
275
|
+
pathParams: [],
|
|
276
|
+
queryParams: [
|
|
277
|
+
{
|
|
278
|
+
name: "wait",
|
|
279
|
+
from: "wait_s",
|
|
280
|
+
},
|
|
281
|
+
],
|
|
282
|
+
body: "json",
|
|
283
|
+
bodyFields: [
|
|
284
|
+
"url",
|
|
285
|
+
"limit",
|
|
286
|
+
"max_depth",
|
|
287
|
+
"include_paths",
|
|
288
|
+
"exclude_paths",
|
|
289
|
+
"crawl_entire_domain",
|
|
290
|
+
"allow_subdomains",
|
|
291
|
+
"respect_robots",
|
|
292
|
+
],
|
|
293
|
+
rawFields: [],
|
|
294
|
+
toolArgs: ["job_id", "wait_s", "max_chars_per_page"],
|
|
295
|
+
bodyDefaults: {
|
|
296
|
+
limit: 20,
|
|
297
|
+
scrape: {
|
|
298
|
+
formats: ["markdown"],
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
queryDefaults: {},
|
|
302
|
+
continueWith: {
|
|
303
|
+
arg: "job_id",
|
|
304
|
+
operationId: "visionGetCrawl",
|
|
305
|
+
method: "GET",
|
|
306
|
+
path: "/v1/vision/crawls/{crawl_id}",
|
|
307
|
+
pathParam: "crawl_id",
|
|
308
|
+
pages: {
|
|
309
|
+
operationId: "visionListCrawlPages",
|
|
310
|
+
method: "GET",
|
|
311
|
+
path: "/v1/vision/crawls/{crawl_id}/pages",
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
meta: {
|
|
315
|
+
"anthropic/maxResultSizeChars": 100100,
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
name: "vision_act",
|
|
320
|
+
group: "core",
|
|
321
|
+
title: "Drive a browser",
|
|
322
|
+
description: "Run browser actions in a real Chrome session in one call (navigate, click, type, key, scroll, select, wait, evaluate, screenshot, markdown) and return each action's result. Without session_id a session is created for this call and closed after it; keep_session: true keeps it and returns its id for the next call.",
|
|
323
|
+
annotations: {
|
|
324
|
+
title: "Drive a browser",
|
|
325
|
+
readOnlyHint: false,
|
|
326
|
+
openWorldHint: true,
|
|
327
|
+
},
|
|
328
|
+
inputSchema: {
|
|
329
|
+
type: "object",
|
|
330
|
+
properties: {
|
|
331
|
+
session_id: {
|
|
332
|
+
type: "string",
|
|
333
|
+
pattern: "^brs_[0-9a-hjkmnp-tv-z]{26}$",
|
|
334
|
+
description: "A brs_… session from an earlier call.",
|
|
335
|
+
},
|
|
336
|
+
actions: {
|
|
337
|
+
type: "array",
|
|
338
|
+
description: "Actions in order, each {kind, ...}: navigate {url}, click {target}, hover {target}, type {target?, text}, key {key}, scroll {target? | to | by}, select {target, value}, wait {ms | for}, evaluate {expression}, screenshot {target?, full_page?}, markdown {only_main_content?}. A target is {selector} or {text} or {role, name}.",
|
|
339
|
+
items: {
|
|
340
|
+
type: "object",
|
|
341
|
+
properties: {
|
|
342
|
+
kind: {
|
|
343
|
+
type: "string",
|
|
344
|
+
enum: [
|
|
345
|
+
"navigate",
|
|
346
|
+
"click",
|
|
347
|
+
"hover",
|
|
348
|
+
"type",
|
|
349
|
+
"key",
|
|
350
|
+
"scroll",
|
|
351
|
+
"select",
|
|
352
|
+
"wait",
|
|
353
|
+
"evaluate",
|
|
354
|
+
"screenshot",
|
|
355
|
+
"markdown",
|
|
356
|
+
"snapshot",
|
|
357
|
+
],
|
|
358
|
+
},
|
|
359
|
+
},
|
|
360
|
+
required: ["kind"],
|
|
361
|
+
},
|
|
362
|
+
},
|
|
363
|
+
continue_on_error: {
|
|
364
|
+
type: "boolean",
|
|
365
|
+
default: false,
|
|
366
|
+
},
|
|
367
|
+
url: {
|
|
368
|
+
type: "string",
|
|
369
|
+
description: "Navigate here before the actions.",
|
|
370
|
+
},
|
|
371
|
+
profile: {
|
|
372
|
+
type: "string",
|
|
373
|
+
description: "A profile ID or name to load into the session this call creates (cookies and storage), so the actions run signed in. Not with session_id.",
|
|
374
|
+
},
|
|
375
|
+
keep_session: {
|
|
376
|
+
type: "boolean",
|
|
377
|
+
default: false,
|
|
378
|
+
description: "Keep a session this call created open.",
|
|
379
|
+
},
|
|
380
|
+
},
|
|
381
|
+
additionalProperties: false,
|
|
382
|
+
},
|
|
383
|
+
operationId: "visionAct",
|
|
384
|
+
method: "POST",
|
|
385
|
+
path: "/v1/vision/sessions/{session_id}/act",
|
|
386
|
+
scope: "vision:run",
|
|
387
|
+
servedBy: "node",
|
|
388
|
+
pathParams: ["session_id"],
|
|
389
|
+
queryParams: [],
|
|
390
|
+
body: "json",
|
|
391
|
+
bodyFields: ["actions", "continue_on_error"],
|
|
392
|
+
rawFields: [],
|
|
393
|
+
toolArgs: ["url", "profile", "keep_session"],
|
|
394
|
+
bodyDefaults: {},
|
|
395
|
+
queryDefaults: {},
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
name: "render_screenshot",
|
|
399
|
+
group: "core",
|
|
400
|
+
title: "Take a screenshot",
|
|
401
|
+
description: "Capture a page (or one element, or the full page) in a warm browser, optionally styled with a background and window frame. Give url or html. Returns the image and a signed URL to it.",
|
|
402
|
+
annotations: {
|
|
403
|
+
title: "Take a screenshot",
|
|
404
|
+
readOnlyHint: true,
|
|
405
|
+
openWorldHint: true,
|
|
406
|
+
},
|
|
407
|
+
inputSchema: {
|
|
408
|
+
type: "object",
|
|
409
|
+
properties: {
|
|
410
|
+
url: {
|
|
411
|
+
type: "string",
|
|
412
|
+
format: "uri",
|
|
413
|
+
description: "Page to load (`http` or `https`).",
|
|
414
|
+
},
|
|
415
|
+
html: {
|
|
416
|
+
type: "string",
|
|
417
|
+
description: "HTML to render instead of loading a URL. Rendered with no network access.",
|
|
418
|
+
},
|
|
419
|
+
viewport: {
|
|
420
|
+
type: "object",
|
|
421
|
+
description: "Browser viewport in CSS pixels.",
|
|
422
|
+
required: ["width", "height"],
|
|
423
|
+
properties: {
|
|
424
|
+
width: {
|
|
425
|
+
type: "integer",
|
|
426
|
+
minimum: 320,
|
|
427
|
+
maximum: 3840,
|
|
428
|
+
},
|
|
429
|
+
height: {
|
|
430
|
+
type: "integer",
|
|
431
|
+
minimum: 240,
|
|
432
|
+
maximum: 2160,
|
|
433
|
+
},
|
|
434
|
+
},
|
|
435
|
+
additionalProperties: false,
|
|
436
|
+
},
|
|
437
|
+
full_page: {
|
|
438
|
+
type: "boolean",
|
|
439
|
+
default: false,
|
|
440
|
+
},
|
|
441
|
+
target: {
|
|
442
|
+
type: "object",
|
|
443
|
+
description: "Capture only this element: {selector} (CSS), {text} (visible text) or {role, name}.",
|
|
444
|
+
properties: {
|
|
445
|
+
selector: {
|
|
446
|
+
type: "string",
|
|
447
|
+
},
|
|
448
|
+
text: {
|
|
449
|
+
type: "string",
|
|
450
|
+
},
|
|
451
|
+
role: {
|
|
452
|
+
type: "string",
|
|
453
|
+
},
|
|
454
|
+
name: {
|
|
455
|
+
type: "string",
|
|
456
|
+
},
|
|
457
|
+
},
|
|
458
|
+
},
|
|
459
|
+
wait_for_ms: {
|
|
460
|
+
type: "integer",
|
|
461
|
+
minimum: 0,
|
|
462
|
+
maximum: 10000,
|
|
463
|
+
default: 0,
|
|
464
|
+
description: "Extra settle time after the page is ready.",
|
|
465
|
+
},
|
|
466
|
+
theme: {
|
|
467
|
+
type: "string",
|
|
468
|
+
enum: ["light", "dark", "auto"],
|
|
469
|
+
default: "auto",
|
|
470
|
+
description: "Emulated `prefers-color-scheme`; `auto` leaves the page default.",
|
|
471
|
+
},
|
|
472
|
+
hide: {
|
|
473
|
+
type: "array",
|
|
474
|
+
items: {
|
|
475
|
+
type: "string",
|
|
476
|
+
},
|
|
477
|
+
description: "CSS selectors to hide before capture, for anything `overlays` does not find on its own (a site's own sticky promotion, a notice you do not want in the image).",
|
|
478
|
+
},
|
|
479
|
+
style: {
|
|
480
|
+
type: "object",
|
|
481
|
+
description: "Leave style out for a plain capture (the page exactly as it painted). Any style object, even {}, adds the B3OS frame: padding, rounded corners and a shadow, so the image is larger than the viewport. Preset IDs from GET /v1/render/presets, for example {background: 'midnight', frame: 'browser-dark'}.",
|
|
482
|
+
properties: {
|
|
483
|
+
background: {
|
|
484
|
+
type: "string",
|
|
485
|
+
},
|
|
486
|
+
frame: {
|
|
487
|
+
type: "string",
|
|
488
|
+
},
|
|
489
|
+
},
|
|
490
|
+
},
|
|
491
|
+
format: {
|
|
492
|
+
type: "string",
|
|
493
|
+
enum: ["webp", "png", "jpeg"],
|
|
494
|
+
default: "webp",
|
|
495
|
+
},
|
|
496
|
+
include_image: {
|
|
497
|
+
type: "boolean",
|
|
498
|
+
default: true,
|
|
499
|
+
description: "Return the image itself as well as its URL.",
|
|
500
|
+
},
|
|
501
|
+
},
|
|
502
|
+
additionalProperties: false,
|
|
503
|
+
},
|
|
504
|
+
operationId: "renderCreateScreenshot",
|
|
505
|
+
method: "POST",
|
|
506
|
+
path: "/v1/render/screenshots",
|
|
507
|
+
scope: "render:run",
|
|
508
|
+
servedBy: "node",
|
|
509
|
+
pathParams: [],
|
|
510
|
+
queryParams: [],
|
|
511
|
+
body: "json",
|
|
512
|
+
bodyFields: ["url", "html", "viewport", "full_page", "target", "wait_for_ms", "theme", "hide", "style", "format"],
|
|
513
|
+
rawFields: [],
|
|
514
|
+
toolArgs: ["include_image"],
|
|
515
|
+
bodyDefaults: {},
|
|
516
|
+
queryDefaults: {},
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
name: "render_video",
|
|
520
|
+
group: "core",
|
|
521
|
+
title: "Render a product video",
|
|
522
|
+
description: "Record a scripted product demo (beats of browser steps, optional narration and captions) as MP4, GIF and a poster image. Waits up to wait_s seconds and returns the poster; if the video is still rendering, call again with job_id.",
|
|
523
|
+
annotations: {
|
|
524
|
+
title: "Render a product video",
|
|
525
|
+
readOnlyHint: false,
|
|
526
|
+
openWorldHint: true,
|
|
527
|
+
},
|
|
528
|
+
inputSchema: {
|
|
529
|
+
type: "object",
|
|
530
|
+
properties: {
|
|
531
|
+
source: {
|
|
532
|
+
type: "object",
|
|
533
|
+
required: ["url"],
|
|
534
|
+
properties: {
|
|
535
|
+
url: {
|
|
536
|
+
type: "string",
|
|
537
|
+
format: "uri",
|
|
538
|
+
description: "Where the recording starts.",
|
|
539
|
+
},
|
|
540
|
+
profile: {
|
|
541
|
+
type: "string",
|
|
542
|
+
description: "A vision profile ID or name to start signed in.",
|
|
543
|
+
},
|
|
544
|
+
},
|
|
545
|
+
additionalProperties: false,
|
|
546
|
+
},
|
|
547
|
+
beats: {
|
|
548
|
+
type: "array",
|
|
549
|
+
items: {
|
|
550
|
+
type: "object",
|
|
551
|
+
description: "One line of narration and the steps performed while it is said.",
|
|
552
|
+
properties: {
|
|
553
|
+
id: {
|
|
554
|
+
type: "string",
|
|
555
|
+
pattern: "^[a-z0-9][a-z0-9_-]{0,63}$",
|
|
556
|
+
description: "Optional ID; generated as `b1`, `b2`, … when omitted.",
|
|
557
|
+
},
|
|
558
|
+
title: {
|
|
559
|
+
type: "string",
|
|
560
|
+
},
|
|
561
|
+
say: {
|
|
562
|
+
type: "string",
|
|
563
|
+
description: "Narration for this beat. Omit for a silent beat.",
|
|
564
|
+
},
|
|
565
|
+
do: {
|
|
566
|
+
type: "array",
|
|
567
|
+
items: {
|
|
568
|
+
description: "One browser step of a beat; `kind` selects it.",
|
|
569
|
+
},
|
|
570
|
+
},
|
|
571
|
+
hold_ms: {
|
|
572
|
+
type: "integer",
|
|
573
|
+
minimum: 0,
|
|
574
|
+
maximum: 10000,
|
|
575
|
+
description: "Extra time to stay on the beat after its narration and steps end.",
|
|
576
|
+
},
|
|
577
|
+
},
|
|
578
|
+
},
|
|
579
|
+
description: "Beats in order, each {title?, say?, do: [steps], hold_ms?}: the narration line and the browser steps performed while it is said, for example {say: 'Open billing.', do: [{kind: 'click', target: {role: 'link', name: 'Billing'}}]}. Step kinds and their required fields: navigate {url}, click {target}, hover {target}, type {text}, key {key}, scroll, select {target, value}, wait; a target is {selector}, {text} or {role, name}.",
|
|
580
|
+
},
|
|
581
|
+
voice: {
|
|
582
|
+
type: "object",
|
|
583
|
+
required: ["model", "voice"],
|
|
584
|
+
properties: {
|
|
585
|
+
model: {
|
|
586
|
+
type: "string",
|
|
587
|
+
description: "A speech model from GET /v1/infer/models, such as kokoro-82m.",
|
|
588
|
+
},
|
|
589
|
+
voice: {
|
|
590
|
+
type: "string",
|
|
591
|
+
description: "A voice from GET /v1/infer/audio/voices.",
|
|
592
|
+
},
|
|
593
|
+
speed: {
|
|
594
|
+
type: "number",
|
|
595
|
+
minimum: 0.5,
|
|
596
|
+
maximum: 2,
|
|
597
|
+
default: 1,
|
|
598
|
+
},
|
|
599
|
+
},
|
|
600
|
+
additionalProperties: false,
|
|
601
|
+
description: "Narration voice, for example {model: 'kokoro-82m', voice: 'af_heart'} (GET /v1/infer/audio/voices); omit to narrate every say line in af_heart. Narration needs infer:run in the key's scopes; without it the video is silent and result.warnings has narration_scope.",
|
|
602
|
+
},
|
|
603
|
+
captions: {
|
|
604
|
+
type: "object",
|
|
605
|
+
properties: {
|
|
606
|
+
burn_in: {
|
|
607
|
+
type: "string",
|
|
608
|
+
enum: ["none", "static", "karaoke"],
|
|
609
|
+
default: "static",
|
|
610
|
+
description: "`none`: sidecar files only. `static` (the default): draw each cue, as a small...",
|
|
611
|
+
},
|
|
612
|
+
sidecars: {
|
|
613
|
+
type: "array",
|
|
614
|
+
items: {
|
|
615
|
+
type: "string",
|
|
616
|
+
enum: ["vtt", "srt"],
|
|
617
|
+
},
|
|
618
|
+
default: ["vtt"],
|
|
619
|
+
},
|
|
620
|
+
max_chars_per_line: {
|
|
621
|
+
type: "integer",
|
|
622
|
+
minimum: 10,
|
|
623
|
+
maximum: 80,
|
|
624
|
+
default: 42,
|
|
625
|
+
},
|
|
626
|
+
max_lines: {
|
|
627
|
+
type: "integer",
|
|
628
|
+
minimum: 1,
|
|
629
|
+
maximum: 3,
|
|
630
|
+
default: 2,
|
|
631
|
+
},
|
|
632
|
+
max_chars_per_second: {
|
|
633
|
+
type: "number",
|
|
634
|
+
minimum: 5,
|
|
635
|
+
maximum: 40,
|
|
636
|
+
default: 20,
|
|
637
|
+
},
|
|
638
|
+
},
|
|
639
|
+
additionalProperties: false,
|
|
640
|
+
description: "Captions from the narration, for example {burn_in: 'karaoke', sidecars: ['vtt']}; omit for static burned-in captions and a WebVTT file, {burn_in: 'none'} for the file only.",
|
|
641
|
+
},
|
|
642
|
+
style: {
|
|
643
|
+
type: "object",
|
|
644
|
+
description: "Preset IDs from GET /v1/render/presets.",
|
|
645
|
+
properties: {
|
|
646
|
+
background: {
|
|
647
|
+
type: "string",
|
|
648
|
+
},
|
|
649
|
+
frame: {
|
|
650
|
+
type: "string",
|
|
651
|
+
},
|
|
652
|
+
cursor: {
|
|
653
|
+
type: "string",
|
|
654
|
+
},
|
|
655
|
+
captions: {
|
|
656
|
+
type: "string",
|
|
657
|
+
},
|
|
658
|
+
click_effect: {
|
|
659
|
+
type: "string",
|
|
660
|
+
},
|
|
661
|
+
},
|
|
662
|
+
},
|
|
663
|
+
viewport: {
|
|
664
|
+
type: "object",
|
|
665
|
+
description: "Browser viewport in CSS pixels.",
|
|
666
|
+
required: ["width", "height"],
|
|
667
|
+
properties: {
|
|
668
|
+
width: {
|
|
669
|
+
type: "integer",
|
|
670
|
+
minimum: 320,
|
|
671
|
+
maximum: 3840,
|
|
672
|
+
},
|
|
673
|
+
height: {
|
|
674
|
+
type: "integer",
|
|
675
|
+
minimum: 240,
|
|
676
|
+
maximum: 2160,
|
|
677
|
+
},
|
|
678
|
+
},
|
|
679
|
+
additionalProperties: false,
|
|
680
|
+
},
|
|
681
|
+
formats: {
|
|
682
|
+
type: "array",
|
|
683
|
+
items: {
|
|
684
|
+
type: "string",
|
|
685
|
+
enum: ["mp4", "gif", "poster"],
|
|
686
|
+
},
|
|
687
|
+
default: ["mp4", "poster"],
|
|
688
|
+
},
|
|
689
|
+
job_id: {
|
|
690
|
+
type: "string",
|
|
691
|
+
description: "A vid_… id from an earlier call.",
|
|
692
|
+
},
|
|
693
|
+
wait_s: {
|
|
694
|
+
type: "integer",
|
|
695
|
+
minimum: 0,
|
|
696
|
+
maximum: 60,
|
|
697
|
+
default: 50,
|
|
698
|
+
description: "Seconds to wait for the job before returning its id and status (then call again with job_id).",
|
|
699
|
+
},
|
|
700
|
+
include_poster: {
|
|
701
|
+
type: "boolean",
|
|
702
|
+
default: true,
|
|
703
|
+
description: "Return the poster frame as an image once the video has succeeded.",
|
|
704
|
+
},
|
|
705
|
+
},
|
|
706
|
+
additionalProperties: false,
|
|
707
|
+
},
|
|
708
|
+
operationId: "renderCreateVideo",
|
|
709
|
+
method: "POST",
|
|
710
|
+
path: "/v1/render/videos",
|
|
711
|
+
scope: "render:run",
|
|
712
|
+
servedBy: "node",
|
|
713
|
+
pathParams: [],
|
|
714
|
+
queryParams: [
|
|
715
|
+
{
|
|
716
|
+
name: "wait",
|
|
717
|
+
from: "wait_s",
|
|
718
|
+
},
|
|
719
|
+
],
|
|
720
|
+
body: "json",
|
|
721
|
+
bodyFields: ["source", "beats", "voice", "captions", "style", "viewport", "formats"],
|
|
722
|
+
rawFields: [],
|
|
723
|
+
toolArgs: ["job_id", "wait_s", "include_poster"],
|
|
724
|
+
bodyDefaults: {},
|
|
725
|
+
queryDefaults: {},
|
|
726
|
+
continueWith: {
|
|
727
|
+
arg: "job_id",
|
|
728
|
+
operationId: "renderGetVideo",
|
|
729
|
+
method: "GET",
|
|
730
|
+
path: "/v1/render/videos/{video_id}",
|
|
731
|
+
pathParam: "video_id",
|
|
732
|
+
},
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
name: "sandbox_create",
|
|
736
|
+
group: "core",
|
|
737
|
+
title: "Create a sandbox",
|
|
738
|
+
description: "Start a sandbox: an isolated Firecracker microVM (the base template has Ubuntu 24.04, Python 3.12, Node 24 and git). It stops after timeout_s seconds. Use sandbox_exec, sandbox_read_file and sandbox_write_file on its id.",
|
|
739
|
+
annotations: {
|
|
740
|
+
title: "Create a sandbox",
|
|
741
|
+
readOnlyHint: false,
|
|
742
|
+
destructiveHint: false,
|
|
743
|
+
openWorldHint: false,
|
|
744
|
+
},
|
|
745
|
+
inputSchema: {
|
|
746
|
+
type: "object",
|
|
747
|
+
properties: {
|
|
748
|
+
template: {
|
|
749
|
+
type: "string",
|
|
750
|
+
default: "base",
|
|
751
|
+
description: "Template name or `tpl_` ID. Ignored when `snapshot` is set.",
|
|
752
|
+
},
|
|
753
|
+
snapshot: {
|
|
754
|
+
type: "string",
|
|
755
|
+
pattern: "^snap_[0-9a-hjkmnp-tv-z]{26}$",
|
|
756
|
+
description: "Restore this snapshot instead of starting from a template.",
|
|
757
|
+
},
|
|
758
|
+
vcpu: {
|
|
759
|
+
type: "integer",
|
|
760
|
+
minimum: 1,
|
|
761
|
+
description: "Virtual CPUs; defaults to the template's (`defaults.vcpu`), at most your plan's `sandboxes.vcpu_max`.",
|
|
762
|
+
},
|
|
763
|
+
memory_mib: {
|
|
764
|
+
type: "integer",
|
|
765
|
+
minimum: 128,
|
|
766
|
+
description: "Memory; defaults to the template's (`defaults.memory_mib`), at most your plan's `sandboxes.memory_max`.",
|
|
767
|
+
},
|
|
768
|
+
timeout_s: {
|
|
769
|
+
type: "integer",
|
|
770
|
+
minimum: 10,
|
|
771
|
+
maximum: 86400,
|
|
772
|
+
default: 300,
|
|
773
|
+
description: "Lifetime in seconds from creation (or from the last `POST …/timeout`), capped by your plan.",
|
|
774
|
+
},
|
|
775
|
+
env: {
|
|
776
|
+
type: "object",
|
|
777
|
+
additionalProperties: {
|
|
778
|
+
type: "string",
|
|
779
|
+
},
|
|
780
|
+
description: "Environment variables. Returned as given; put credentials in `secrets`.",
|
|
781
|
+
},
|
|
782
|
+
secrets: {
|
|
783
|
+
type: "object",
|
|
784
|
+
description: "Environment variables never returned or logged (code inside the VM can read them): a value, or {connection: conn_…, field?} to take a stored vault connection's secret.",
|
|
785
|
+
},
|
|
786
|
+
egress: {
|
|
787
|
+
type: "object",
|
|
788
|
+
description: "Where sandbox traffic may go, enforced by the node's egress guard. `public` (default): any public internet address.",
|
|
789
|
+
},
|
|
790
|
+
metadata: {
|
|
791
|
+
type: "object",
|
|
792
|
+
description: "Up to 16 string key-value pairs for your own use.",
|
|
793
|
+
},
|
|
794
|
+
},
|
|
795
|
+
additionalProperties: false,
|
|
796
|
+
},
|
|
797
|
+
operationId: "sandboxesCreateSandbox",
|
|
798
|
+
method: "POST",
|
|
799
|
+
path: "/v1/sandboxes",
|
|
800
|
+
scope: "sandboxes:write",
|
|
801
|
+
servedBy: "node",
|
|
802
|
+
pathParams: [],
|
|
803
|
+
queryParams: [],
|
|
804
|
+
body: "json",
|
|
805
|
+
bodyFields: ["template", "snapshot", "vcpu", "memory_mib", "timeout_s", "env", "secrets", "egress", "metadata"],
|
|
806
|
+
rawFields: [],
|
|
807
|
+
toolArgs: [],
|
|
808
|
+
bodyDefaults: {},
|
|
809
|
+
queryDefaults: {},
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
name: "sandbox_exec",
|
|
813
|
+
group: "core",
|
|
814
|
+
title: "Run a command in a sandbox",
|
|
815
|
+
description: "Run a shell command (a string, run with /bin/sh -c) or an argv array in a sandbox and return its exit code, stdout and stderr. background: true returns at once with the process.",
|
|
816
|
+
annotations: {
|
|
817
|
+
title: "Run a command in a sandbox",
|
|
818
|
+
readOnlyHint: false,
|
|
819
|
+
destructiveHint: true,
|
|
820
|
+
openWorldHint: false,
|
|
821
|
+
},
|
|
822
|
+
inputSchema: {
|
|
823
|
+
type: "object",
|
|
824
|
+
properties: {
|
|
825
|
+
sandbox_id: {
|
|
826
|
+
type: "string",
|
|
827
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
828
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
829
|
+
},
|
|
830
|
+
cmd: {
|
|
831
|
+
description: "A shell command line (run with `/bin/sh -c`) or an argv array.",
|
|
832
|
+
oneOf: [
|
|
833
|
+
{
|
|
834
|
+
type: "string",
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
type: "array",
|
|
838
|
+
items: {
|
|
839
|
+
type: "string",
|
|
840
|
+
},
|
|
841
|
+
},
|
|
842
|
+
],
|
|
843
|
+
},
|
|
844
|
+
cwd: {
|
|
845
|
+
type: "string",
|
|
846
|
+
default: "/workspace",
|
|
847
|
+
},
|
|
848
|
+
env: {
|
|
849
|
+
type: "object",
|
|
850
|
+
additionalProperties: {
|
|
851
|
+
type: "string",
|
|
852
|
+
},
|
|
853
|
+
description: "Extra environment variables for this command.",
|
|
854
|
+
},
|
|
855
|
+
stdin: {
|
|
856
|
+
type: "string",
|
|
857
|
+
description: "Written to the command's standard input, which is then closed.",
|
|
858
|
+
},
|
|
859
|
+
timeout_ms: {
|
|
860
|
+
type: "integer",
|
|
861
|
+
minimum: 1,
|
|
862
|
+
maximum: 3600000,
|
|
863
|
+
description: "Kill the command after this long. Default 30000, or none in the background. At most 60000 unless the output is streamed or the command runs in the background.",
|
|
864
|
+
},
|
|
865
|
+
background: {
|
|
866
|
+
type: "boolean",
|
|
867
|
+
default: false,
|
|
868
|
+
description: "Return at once; read output from the logs stream.",
|
|
869
|
+
},
|
|
870
|
+
user: {
|
|
871
|
+
type: "string",
|
|
872
|
+
enum: ["user", "root"],
|
|
873
|
+
default: "user",
|
|
874
|
+
},
|
|
875
|
+
},
|
|
876
|
+
required: ["sandbox_id", "cmd"],
|
|
877
|
+
additionalProperties: false,
|
|
878
|
+
},
|
|
879
|
+
operationId: "sandboxesExec",
|
|
880
|
+
method: "POST",
|
|
881
|
+
path: "/v1/sandboxes/{sandbox_id}/exec",
|
|
882
|
+
scope: "sandboxes:run",
|
|
883
|
+
servedBy: "node",
|
|
884
|
+
pathParams: ["sandbox_id"],
|
|
885
|
+
queryParams: [],
|
|
886
|
+
body: "json",
|
|
887
|
+
bodyFields: ["cmd", "cwd", "env", "stdin", "timeout_ms", "background", "user"],
|
|
888
|
+
rawFields: [],
|
|
889
|
+
toolArgs: [],
|
|
890
|
+
bodyDefaults: {},
|
|
891
|
+
queryDefaults: {},
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
name: "sandbox_read_file",
|
|
895
|
+
group: "core",
|
|
896
|
+
title: "Read a file in a sandbox",
|
|
897
|
+
description: "Read a file from a sandbox (UTF-8 text, or base64 for binary), or list a directory with list: true.",
|
|
898
|
+
annotations: {
|
|
899
|
+
title: "Read a file in a sandbox",
|
|
900
|
+
readOnlyHint: true,
|
|
901
|
+
openWorldHint: false,
|
|
902
|
+
},
|
|
903
|
+
inputSchema: {
|
|
904
|
+
type: "object",
|
|
905
|
+
properties: {
|
|
906
|
+
sandbox_id: {
|
|
907
|
+
type: "string",
|
|
908
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
909
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
910
|
+
},
|
|
911
|
+
path: {
|
|
912
|
+
type: "string",
|
|
913
|
+
pattern: "^/",
|
|
914
|
+
description: "Absolute path, for example /workspace/main.py.",
|
|
915
|
+
},
|
|
916
|
+
list: {
|
|
917
|
+
type: "boolean",
|
|
918
|
+
default: false,
|
|
919
|
+
description: "true lists the directory instead of reading a file.",
|
|
920
|
+
},
|
|
921
|
+
max_chars: {
|
|
922
|
+
type: "integer",
|
|
923
|
+
minimum: 1000,
|
|
924
|
+
default: 100000,
|
|
925
|
+
description: "Truncate text to this many characters.",
|
|
926
|
+
},
|
|
927
|
+
},
|
|
928
|
+
required: ["sandbox_id", "path"],
|
|
929
|
+
additionalProperties: false,
|
|
930
|
+
},
|
|
931
|
+
operationId: "sandboxesReadFile",
|
|
932
|
+
method: "GET",
|
|
933
|
+
path: "/v1/sandboxes/{sandbox_id}/files",
|
|
934
|
+
scope: "sandboxes:run",
|
|
935
|
+
servedBy: "node",
|
|
936
|
+
pathParams: ["sandbox_id"],
|
|
937
|
+
queryParams: [
|
|
938
|
+
{
|
|
939
|
+
name: "path",
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
name: "list",
|
|
943
|
+
encode: "01",
|
|
944
|
+
},
|
|
945
|
+
],
|
|
946
|
+
body: "none",
|
|
947
|
+
bodyFields: [],
|
|
948
|
+
rawFields: [],
|
|
949
|
+
toolArgs: ["max_chars"],
|
|
950
|
+
bodyDefaults: {},
|
|
951
|
+
queryDefaults: {},
|
|
952
|
+
meta: {
|
|
953
|
+
"anthropic/maxResultSizeChars": 100100,
|
|
954
|
+
},
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
name: "sandbox_write_file",
|
|
958
|
+
group: "core",
|
|
959
|
+
title: "Write a file in a sandbox",
|
|
960
|
+
description: "Write a file in a sandbox, replacing it if it exists; parent directories are created.",
|
|
961
|
+
annotations: {
|
|
962
|
+
title: "Write a file in a sandbox",
|
|
963
|
+
readOnlyHint: false,
|
|
964
|
+
destructiveHint: true,
|
|
965
|
+
openWorldHint: false,
|
|
966
|
+
},
|
|
967
|
+
inputSchema: {
|
|
968
|
+
type: "object",
|
|
969
|
+
properties: {
|
|
970
|
+
sandbox_id: {
|
|
971
|
+
type: "string",
|
|
972
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
973
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
974
|
+
},
|
|
975
|
+
path: {
|
|
976
|
+
type: "string",
|
|
977
|
+
pattern: "^/",
|
|
978
|
+
description: "Absolute path inside the sandbox.",
|
|
979
|
+
},
|
|
980
|
+
mode: {
|
|
981
|
+
type: "string",
|
|
982
|
+
pattern: "^0?[0-7]{3,4}$",
|
|
983
|
+
default: "0644",
|
|
984
|
+
description: "Octal file mode for a new file.",
|
|
985
|
+
},
|
|
986
|
+
content: {
|
|
987
|
+
type: "string",
|
|
988
|
+
description: "The file's content.",
|
|
989
|
+
},
|
|
990
|
+
encoding: {
|
|
991
|
+
type: "string",
|
|
992
|
+
enum: ["utf8", "base64"],
|
|
993
|
+
default: "utf8",
|
|
994
|
+
description: "How content is encoded.",
|
|
995
|
+
},
|
|
996
|
+
},
|
|
997
|
+
required: ["sandbox_id", "path", "content"],
|
|
998
|
+
additionalProperties: false,
|
|
999
|
+
},
|
|
1000
|
+
operationId: "sandboxesWriteFile",
|
|
1001
|
+
method: "PUT",
|
|
1002
|
+
path: "/v1/sandboxes/{sandbox_id}/files",
|
|
1003
|
+
scope: "sandboxes:run",
|
|
1004
|
+
servedBy: "node",
|
|
1005
|
+
pathParams: ["sandbox_id"],
|
|
1006
|
+
queryParams: [
|
|
1007
|
+
{
|
|
1008
|
+
name: "path",
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
name: "mode",
|
|
1012
|
+
},
|
|
1013
|
+
],
|
|
1014
|
+
body: "raw",
|
|
1015
|
+
bodyFields: [],
|
|
1016
|
+
rawFields: ["content", "encoding"],
|
|
1017
|
+
toolArgs: [],
|
|
1018
|
+
bodyDefaults: {},
|
|
1019
|
+
queryDefaults: {
|
|
1020
|
+
mkdir: 1,
|
|
1021
|
+
},
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
name: "sandbox_delete",
|
|
1025
|
+
group: "core",
|
|
1026
|
+
title: "Delete a sandbox",
|
|
1027
|
+
description: "Stop a sandbox and destroy its memory and disk. Its snapshots are kept.",
|
|
1028
|
+
annotations: {
|
|
1029
|
+
title: "Delete a sandbox",
|
|
1030
|
+
readOnlyHint: false,
|
|
1031
|
+
destructiveHint: true,
|
|
1032
|
+
idempotentHint: true,
|
|
1033
|
+
openWorldHint: false,
|
|
1034
|
+
},
|
|
1035
|
+
inputSchema: {
|
|
1036
|
+
type: "object",
|
|
1037
|
+
properties: {
|
|
1038
|
+
sandbox_id: {
|
|
1039
|
+
type: "string",
|
|
1040
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1041
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
1042
|
+
},
|
|
1043
|
+
},
|
|
1044
|
+
required: ["sandbox_id"],
|
|
1045
|
+
additionalProperties: false,
|
|
1046
|
+
},
|
|
1047
|
+
operationId: "sandboxesDeleteSandbox",
|
|
1048
|
+
method: "DELETE",
|
|
1049
|
+
path: "/v1/sandboxes/{sandbox_id}",
|
|
1050
|
+
scope: "sandboxes:write",
|
|
1051
|
+
servedBy: "node",
|
|
1052
|
+
pathParams: ["sandbox_id"],
|
|
1053
|
+
queryParams: [],
|
|
1054
|
+
body: "none",
|
|
1055
|
+
bodyFields: [],
|
|
1056
|
+
rawFields: [],
|
|
1057
|
+
toolArgs: [],
|
|
1058
|
+
bodyDefaults: {},
|
|
1059
|
+
queryDefaults: {},
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
name: "routine_run",
|
|
1063
|
+
group: "core",
|
|
1064
|
+
title: "Run a routine",
|
|
1065
|
+
description: "Start a run of a published routine (by name or rtn_ id) with an input object and wait up to wait_s seconds for its output; if it is still running, call again with job_id.",
|
|
1066
|
+
annotations: {
|
|
1067
|
+
title: "Run a routine",
|
|
1068
|
+
readOnlyHint: false,
|
|
1069
|
+
openWorldHint: true,
|
|
1070
|
+
},
|
|
1071
|
+
inputSchema: {
|
|
1072
|
+
type: "object",
|
|
1073
|
+
properties: {
|
|
1074
|
+
routine: {
|
|
1075
|
+
type: "string",
|
|
1076
|
+
description: "Routine name or rtn_… id (omit with job_id).",
|
|
1077
|
+
},
|
|
1078
|
+
input: {
|
|
1079
|
+
type: "object",
|
|
1080
|
+
description: "Validated against the routine's `inputs`; defaults from it are applied.",
|
|
1081
|
+
},
|
|
1082
|
+
version: {
|
|
1083
|
+
description: "Run this version (a number or ver_ id) instead of the active one.",
|
|
1084
|
+
},
|
|
1085
|
+
job_id: {
|
|
1086
|
+
type: "string",
|
|
1087
|
+
description: "A run_… id from an earlier call.",
|
|
1088
|
+
},
|
|
1089
|
+
wait_s: {
|
|
1090
|
+
type: "integer",
|
|
1091
|
+
minimum: 0,
|
|
1092
|
+
maximum: 60,
|
|
1093
|
+
default: 50,
|
|
1094
|
+
description: "Seconds to wait for the job before returning its id and status (then call again with job_id).",
|
|
1095
|
+
},
|
|
1096
|
+
},
|
|
1097
|
+
additionalProperties: false,
|
|
1098
|
+
},
|
|
1099
|
+
operationId: "routinesCreateRun",
|
|
1100
|
+
method: "POST",
|
|
1101
|
+
path: "/v1/routines/{routine}/runs",
|
|
1102
|
+
scope: "routines:run",
|
|
1103
|
+
servedBy: "node",
|
|
1104
|
+
pathParams: ["routine"],
|
|
1105
|
+
queryParams: [
|
|
1106
|
+
{
|
|
1107
|
+
name: "wait",
|
|
1108
|
+
from: "wait_s",
|
|
1109
|
+
},
|
|
1110
|
+
],
|
|
1111
|
+
body: "json",
|
|
1112
|
+
bodyFields: ["input", "version"],
|
|
1113
|
+
rawFields: [],
|
|
1114
|
+
toolArgs: ["job_id", "wait_s"],
|
|
1115
|
+
bodyDefaults: {},
|
|
1116
|
+
queryDefaults: {},
|
|
1117
|
+
continueWith: {
|
|
1118
|
+
arg: "job_id",
|
|
1119
|
+
operationId: "routinesGetRun",
|
|
1120
|
+
method: "GET",
|
|
1121
|
+
path: "/v1/routines/runs/{run_id}",
|
|
1122
|
+
pathParam: "run_id",
|
|
1123
|
+
},
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
name: "actions_search",
|
|
1127
|
+
group: "core",
|
|
1128
|
+
title: "Search catalog actions",
|
|
1129
|
+
description: "Find catalog actions (GitHub, Slack, Linear, Notion, HTTP and more) by what they do. Returns refs to pass to actions_describe (for the input schema) and actions_call. kind=trigger finds triggers for routines instead.",
|
|
1130
|
+
annotations: {
|
|
1131
|
+
title: "Search catalog actions",
|
|
1132
|
+
readOnlyHint: true,
|
|
1133
|
+
openWorldHint: false,
|
|
1134
|
+
},
|
|
1135
|
+
inputSchema: {
|
|
1136
|
+
type: "object",
|
|
1137
|
+
properties: {
|
|
1138
|
+
q: {
|
|
1139
|
+
type: "string",
|
|
1140
|
+
description: "What the action should do, in words.",
|
|
1141
|
+
},
|
|
1142
|
+
pack: {
|
|
1143
|
+
type: "string",
|
|
1144
|
+
description: "Only this pack, for example io.b3os/github.",
|
|
1145
|
+
},
|
|
1146
|
+
effects: {
|
|
1147
|
+
type: "string",
|
|
1148
|
+
description: "Only actions with this effect class. Triggers have no effect class, so it never removes one.",
|
|
1149
|
+
enum: ["pure", "read", "write", "irreversible"],
|
|
1150
|
+
},
|
|
1151
|
+
kind: {
|
|
1152
|
+
type: "string",
|
|
1153
|
+
enum: ["action", "trigger", "any"],
|
|
1154
|
+
default: "action",
|
|
1155
|
+
description: "`action` (the default), `trigger`, or `any` for both.",
|
|
1156
|
+
},
|
|
1157
|
+
limit: {
|
|
1158
|
+
type: "integer",
|
|
1159
|
+
minimum: 1,
|
|
1160
|
+
maximum: 50,
|
|
1161
|
+
default: 10,
|
|
1162
|
+
description: "Results to return, from 1 to 50.",
|
|
1163
|
+
},
|
|
1164
|
+
},
|
|
1165
|
+
required: ["q"],
|
|
1166
|
+
additionalProperties: false,
|
|
1167
|
+
},
|
|
1168
|
+
operationId: "actionsSearch",
|
|
1169
|
+
method: "GET",
|
|
1170
|
+
path: "/v1/actions/search",
|
|
1171
|
+
scope: "actions:read",
|
|
1172
|
+
servedBy: "node",
|
|
1173
|
+
pathParams: [],
|
|
1174
|
+
queryParams: [
|
|
1175
|
+
{
|
|
1176
|
+
name: "q",
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
name: "pack",
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
name: "effects",
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
name: "kind",
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
name: "limit",
|
|
1189
|
+
},
|
|
1190
|
+
],
|
|
1191
|
+
body: "none",
|
|
1192
|
+
bodyFields: [],
|
|
1193
|
+
rawFields: [],
|
|
1194
|
+
toolArgs: [],
|
|
1195
|
+
bodyDefaults: {},
|
|
1196
|
+
queryDefaults: {},
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
name: "actions_describe",
|
|
1200
|
+
group: "core",
|
|
1201
|
+
title: "Describe an action",
|
|
1202
|
+
description: "Get an action's input and output JSON Schemas, effect class and the connections it needs.",
|
|
1203
|
+
annotations: {
|
|
1204
|
+
title: "Describe an action",
|
|
1205
|
+
readOnlyHint: true,
|
|
1206
|
+
openWorldHint: false,
|
|
1207
|
+
},
|
|
1208
|
+
inputSchema: {
|
|
1209
|
+
type: "object",
|
|
1210
|
+
properties: {
|
|
1211
|
+
ref: {
|
|
1212
|
+
type: "string",
|
|
1213
|
+
description: "An action ref from actions_search, for example io.b3os/github/create-issue@1.",
|
|
1214
|
+
},
|
|
1215
|
+
},
|
|
1216
|
+
required: ["ref"],
|
|
1217
|
+
additionalProperties: false,
|
|
1218
|
+
},
|
|
1219
|
+
operationId: "actionsDescribe",
|
|
1220
|
+
method: "GET",
|
|
1221
|
+
path: "/v1/actions/describe",
|
|
1222
|
+
scope: "actions:read",
|
|
1223
|
+
servedBy: "node",
|
|
1224
|
+
pathParams: [],
|
|
1225
|
+
queryParams: [
|
|
1226
|
+
{
|
|
1227
|
+
name: "ref",
|
|
1228
|
+
},
|
|
1229
|
+
],
|
|
1230
|
+
body: "none",
|
|
1231
|
+
bodyFields: [],
|
|
1232
|
+
rawFields: [],
|
|
1233
|
+
toolArgs: [],
|
|
1234
|
+
bodyDefaults: {},
|
|
1235
|
+
queryDefaults: {},
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
name: "actions_call",
|
|
1239
|
+
group: "core",
|
|
1240
|
+
title: "Call an action",
|
|
1241
|
+
description: "Run a catalog action with an input object. Credentials come from your stored connections (vault), never from arguments; name one per connection key in connections when you have several.",
|
|
1242
|
+
annotations: {
|
|
1243
|
+
title: "Call an action",
|
|
1244
|
+
readOnlyHint: false,
|
|
1245
|
+
openWorldHint: true,
|
|
1246
|
+
},
|
|
1247
|
+
inputSchema: {
|
|
1248
|
+
type: "object",
|
|
1249
|
+
properties: {
|
|
1250
|
+
ref: {
|
|
1251
|
+
type: "string",
|
|
1252
|
+
description: "The action ref from actions_search, for example io.b3os/github/create-issue@1.",
|
|
1253
|
+
},
|
|
1254
|
+
input: {
|
|
1255
|
+
type: "object",
|
|
1256
|
+
description: "Validated against the action's input schema.",
|
|
1257
|
+
default: {},
|
|
1258
|
+
},
|
|
1259
|
+
connections: {
|
|
1260
|
+
type: "object",
|
|
1261
|
+
description: "Connection key to conn_… id, only when you have several connections for a key.",
|
|
1262
|
+
},
|
|
1263
|
+
timeout_ms: {
|
|
1264
|
+
type: "integer",
|
|
1265
|
+
minimum: 100,
|
|
1266
|
+
maximum: 60000,
|
|
1267
|
+
description: "Overall time limit; defaults to the action's own.",
|
|
1268
|
+
},
|
|
1269
|
+
},
|
|
1270
|
+
required: ["ref"],
|
|
1271
|
+
additionalProperties: false,
|
|
1272
|
+
},
|
|
1273
|
+
operationId: "actionsCall",
|
|
1274
|
+
method: "POST",
|
|
1275
|
+
path: "/v1/actions/call",
|
|
1276
|
+
scope: "actions:run",
|
|
1277
|
+
servedBy: "node",
|
|
1278
|
+
pathParams: [],
|
|
1279
|
+
queryParams: [],
|
|
1280
|
+
body: "json",
|
|
1281
|
+
bodyFields: ["ref", "input", "connections", "timeout_ms"],
|
|
1282
|
+
rawFields: [],
|
|
1283
|
+
toolArgs: [],
|
|
1284
|
+
bodyDefaults: {
|
|
1285
|
+
input: {},
|
|
1286
|
+
},
|
|
1287
|
+
queryDefaults: {},
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
name: "sandbox_run_code",
|
|
1291
|
+
group: "sandboxes",
|
|
1292
|
+
title: "Run code in a sandbox kernel",
|
|
1293
|
+
description: "Run code in the sandbox's Jupyter kernel (code-interpreter template): state persists between calls; returns stdout, stderr, the result and any images.",
|
|
1294
|
+
annotations: {
|
|
1295
|
+
title: "Run code in a sandbox kernel",
|
|
1296
|
+
readOnlyHint: false,
|
|
1297
|
+
destructiveHint: true,
|
|
1298
|
+
openWorldHint: false,
|
|
1299
|
+
},
|
|
1300
|
+
inputSchema: {
|
|
1301
|
+
type: "object",
|
|
1302
|
+
properties: {
|
|
1303
|
+
sandbox_id: {
|
|
1304
|
+
type: "string",
|
|
1305
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1306
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
1307
|
+
},
|
|
1308
|
+
code: {
|
|
1309
|
+
type: "string",
|
|
1310
|
+
},
|
|
1311
|
+
language: {
|
|
1312
|
+
type: "string",
|
|
1313
|
+
enum: ["python", "javascript"],
|
|
1314
|
+
default: "python",
|
|
1315
|
+
},
|
|
1316
|
+
timeout_ms: {
|
|
1317
|
+
type: "integer",
|
|
1318
|
+
minimum: 1,
|
|
1319
|
+
maximum: 60000,
|
|
1320
|
+
default: 30000,
|
|
1321
|
+
},
|
|
1322
|
+
env: {
|
|
1323
|
+
type: "object",
|
|
1324
|
+
additionalProperties: {
|
|
1325
|
+
type: "string",
|
|
1326
|
+
},
|
|
1327
|
+
},
|
|
1328
|
+
},
|
|
1329
|
+
required: ["sandbox_id", "code"],
|
|
1330
|
+
additionalProperties: false,
|
|
1331
|
+
},
|
|
1332
|
+
operationId: "sandboxesRunCode",
|
|
1333
|
+
method: "POST",
|
|
1334
|
+
path: "/v1/sandboxes/{sandbox_id}/run_code",
|
|
1335
|
+
scope: "sandboxes:run",
|
|
1336
|
+
servedBy: "node",
|
|
1337
|
+
pathParams: ["sandbox_id"],
|
|
1338
|
+
queryParams: [],
|
|
1339
|
+
body: "json",
|
|
1340
|
+
bodyFields: ["code", "language", "timeout_ms", "env"],
|
|
1341
|
+
rawFields: [],
|
|
1342
|
+
toolArgs: [],
|
|
1343
|
+
bodyDefaults: {},
|
|
1344
|
+
queryDefaults: {},
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
name: "sandbox_pause",
|
|
1348
|
+
group: "sandboxes",
|
|
1349
|
+
title: "Pause a sandbox",
|
|
1350
|
+
description: "Pause a running sandbox (memory and disk kept, no CPU used); sandbox_resume continues it.",
|
|
1351
|
+
annotations: {
|
|
1352
|
+
title: "Pause a sandbox",
|
|
1353
|
+
readOnlyHint: false,
|
|
1354
|
+
destructiveHint: false,
|
|
1355
|
+
idempotentHint: true,
|
|
1356
|
+
openWorldHint: false,
|
|
1357
|
+
},
|
|
1358
|
+
inputSchema: {
|
|
1359
|
+
type: "object",
|
|
1360
|
+
properties: {
|
|
1361
|
+
sandbox_id: {
|
|
1362
|
+
type: "string",
|
|
1363
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1364
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
1365
|
+
},
|
|
1366
|
+
},
|
|
1367
|
+
required: ["sandbox_id"],
|
|
1368
|
+
additionalProperties: false,
|
|
1369
|
+
},
|
|
1370
|
+
operationId: "sandboxesPauseSandbox",
|
|
1371
|
+
method: "POST",
|
|
1372
|
+
path: "/v1/sandboxes/{sandbox_id}/pause",
|
|
1373
|
+
scope: "sandboxes:write",
|
|
1374
|
+
servedBy: "node",
|
|
1375
|
+
pathParams: ["sandbox_id"],
|
|
1376
|
+
queryParams: [],
|
|
1377
|
+
body: "none",
|
|
1378
|
+
bodyFields: [],
|
|
1379
|
+
rawFields: [],
|
|
1380
|
+
toolArgs: [],
|
|
1381
|
+
bodyDefaults: {},
|
|
1382
|
+
queryDefaults: {},
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
name: "sandbox_resume",
|
|
1386
|
+
group: "sandboxes",
|
|
1387
|
+
title: "Resume a sandbox",
|
|
1388
|
+
description: "Resume a paused sandbox.",
|
|
1389
|
+
annotations: {
|
|
1390
|
+
title: "Resume a sandbox",
|
|
1391
|
+
readOnlyHint: false,
|
|
1392
|
+
destructiveHint: false,
|
|
1393
|
+
idempotentHint: true,
|
|
1394
|
+
openWorldHint: false,
|
|
1395
|
+
},
|
|
1396
|
+
inputSchema: {
|
|
1397
|
+
type: "object",
|
|
1398
|
+
properties: {
|
|
1399
|
+
sandbox_id: {
|
|
1400
|
+
type: "string",
|
|
1401
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1402
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
1403
|
+
},
|
|
1404
|
+
},
|
|
1405
|
+
required: ["sandbox_id"],
|
|
1406
|
+
additionalProperties: false,
|
|
1407
|
+
},
|
|
1408
|
+
operationId: "sandboxesResumeSandbox",
|
|
1409
|
+
method: "POST",
|
|
1410
|
+
path: "/v1/sandboxes/{sandbox_id}/resume",
|
|
1411
|
+
scope: "sandboxes:write",
|
|
1412
|
+
servedBy: "node",
|
|
1413
|
+
pathParams: ["sandbox_id"],
|
|
1414
|
+
queryParams: [],
|
|
1415
|
+
body: "none",
|
|
1416
|
+
bodyFields: [],
|
|
1417
|
+
rawFields: [],
|
|
1418
|
+
toolArgs: [],
|
|
1419
|
+
bodyDefaults: {},
|
|
1420
|
+
queryDefaults: {},
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
name: "sandbox_list",
|
|
1424
|
+
group: "sandboxes",
|
|
1425
|
+
title: "List sandboxes",
|
|
1426
|
+
description: "List this project's sandboxes, newest first (status filter, cursor paging).",
|
|
1427
|
+
annotations: {
|
|
1428
|
+
title: "List sandboxes",
|
|
1429
|
+
readOnlyHint: true,
|
|
1430
|
+
openWorldHint: false,
|
|
1431
|
+
},
|
|
1432
|
+
inputSchema: {
|
|
1433
|
+
type: "object",
|
|
1434
|
+
properties: {
|
|
1435
|
+
status: {
|
|
1436
|
+
type: "string",
|
|
1437
|
+
description: "Only sandboxes with this status.",
|
|
1438
|
+
enum: ["running", "paused", "stopped", "failed"],
|
|
1439
|
+
},
|
|
1440
|
+
limit: {
|
|
1441
|
+
type: "integer",
|
|
1442
|
+
minimum: 1,
|
|
1443
|
+
maximum: 100,
|
|
1444
|
+
default: 20,
|
|
1445
|
+
description: "Page size, from 1 to 100.",
|
|
1446
|
+
},
|
|
1447
|
+
cursor: {
|
|
1448
|
+
type: "string",
|
|
1449
|
+
description: "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page.",
|
|
1450
|
+
},
|
|
1451
|
+
},
|
|
1452
|
+
additionalProperties: false,
|
|
1453
|
+
},
|
|
1454
|
+
operationId: "sandboxesListSandboxes",
|
|
1455
|
+
method: "GET",
|
|
1456
|
+
path: "/v1/sandboxes",
|
|
1457
|
+
scope: "sandboxes:read",
|
|
1458
|
+
servedBy: "node",
|
|
1459
|
+
pathParams: [],
|
|
1460
|
+
queryParams: [
|
|
1461
|
+
{
|
|
1462
|
+
name: "status",
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
name: "limit",
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
name: "cursor",
|
|
1469
|
+
},
|
|
1470
|
+
],
|
|
1471
|
+
body: "none",
|
|
1472
|
+
bodyFields: [],
|
|
1473
|
+
rawFields: [],
|
|
1474
|
+
toolArgs: [],
|
|
1475
|
+
bodyDefaults: {},
|
|
1476
|
+
queryDefaults: {},
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
name: "sandbox_get",
|
|
1480
|
+
group: "sandboxes",
|
|
1481
|
+
title: "Get a sandbox",
|
|
1482
|
+
description: "Get a sandbox's status, resources, egress policy, ports and expiry.",
|
|
1483
|
+
annotations: {
|
|
1484
|
+
title: "Get a sandbox",
|
|
1485
|
+
readOnlyHint: true,
|
|
1486
|
+
openWorldHint: false,
|
|
1487
|
+
},
|
|
1488
|
+
inputSchema: {
|
|
1489
|
+
type: "object",
|
|
1490
|
+
properties: {
|
|
1491
|
+
sandbox_id: {
|
|
1492
|
+
type: "string",
|
|
1493
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1494
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
1495
|
+
},
|
|
1496
|
+
},
|
|
1497
|
+
required: ["sandbox_id"],
|
|
1498
|
+
additionalProperties: false,
|
|
1499
|
+
},
|
|
1500
|
+
operationId: "sandboxesGetSandbox",
|
|
1501
|
+
method: "GET",
|
|
1502
|
+
path: "/v1/sandboxes/{sandbox_id}",
|
|
1503
|
+
scope: "sandboxes:read",
|
|
1504
|
+
servedBy: "node",
|
|
1505
|
+
pathParams: ["sandbox_id"],
|
|
1506
|
+
queryParams: [],
|
|
1507
|
+
body: "none",
|
|
1508
|
+
bodyFields: [],
|
|
1509
|
+
rawFields: [],
|
|
1510
|
+
toolArgs: [],
|
|
1511
|
+
bodyDefaults: {},
|
|
1512
|
+
queryDefaults: {},
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
name: "sandbox_fork",
|
|
1516
|
+
group: "sandboxes",
|
|
1517
|
+
title: "Fork a sandbox",
|
|
1518
|
+
description: "Copy a sandbox created with forkable: true into count new running sandboxes that share its memory and disk (files, processes, environment) copy-on-write, each with a fresh identity; returns them.",
|
|
1519
|
+
annotations: {
|
|
1520
|
+
title: "Fork a sandbox",
|
|
1521
|
+
readOnlyHint: false,
|
|
1522
|
+
destructiveHint: false,
|
|
1523
|
+
openWorldHint: false,
|
|
1524
|
+
},
|
|
1525
|
+
inputSchema: {
|
|
1526
|
+
type: "object",
|
|
1527
|
+
properties: {
|
|
1528
|
+
sandbox_id: {
|
|
1529
|
+
type: "string",
|
|
1530
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1531
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
1532
|
+
},
|
|
1533
|
+
count: {
|
|
1534
|
+
type: "integer",
|
|
1535
|
+
minimum: 1,
|
|
1536
|
+
maximum: 10,
|
|
1537
|
+
default: 1,
|
|
1538
|
+
},
|
|
1539
|
+
metadata: {
|
|
1540
|
+
type: "object",
|
|
1541
|
+
description: "Up to 16 string key-value pairs for the copies.",
|
|
1542
|
+
},
|
|
1543
|
+
},
|
|
1544
|
+
required: ["sandbox_id"],
|
|
1545
|
+
additionalProperties: false,
|
|
1546
|
+
},
|
|
1547
|
+
operationId: "sandboxesForkSandbox",
|
|
1548
|
+
method: "POST",
|
|
1549
|
+
path: "/v1/sandboxes/{sandbox_id}/fork",
|
|
1550
|
+
scope: "sandboxes:write",
|
|
1551
|
+
servedBy: "node",
|
|
1552
|
+
pathParams: ["sandbox_id"],
|
|
1553
|
+
queryParams: [],
|
|
1554
|
+
body: "json",
|
|
1555
|
+
bodyFields: ["count", "metadata"],
|
|
1556
|
+
rawFields: [],
|
|
1557
|
+
toolArgs: [],
|
|
1558
|
+
bodyDefaults: {},
|
|
1559
|
+
queryDefaults: {},
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
name: "sandbox_snapshot",
|
|
1563
|
+
group: "sandboxes",
|
|
1564
|
+
title: "Snapshot a sandbox",
|
|
1565
|
+
description: "Save a sandbox's memory and disk as a snapshot (kept 7 days; the sandbox keeps running); sandbox_create with snapshot starts new sandboxes from it.",
|
|
1566
|
+
annotations: {
|
|
1567
|
+
title: "Snapshot a sandbox",
|
|
1568
|
+
readOnlyHint: false,
|
|
1569
|
+
destructiveHint: false,
|
|
1570
|
+
openWorldHint: false,
|
|
1571
|
+
},
|
|
1572
|
+
inputSchema: {
|
|
1573
|
+
type: "object",
|
|
1574
|
+
properties: {
|
|
1575
|
+
sandbox_id: {
|
|
1576
|
+
type: "string",
|
|
1577
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1578
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
1579
|
+
},
|
|
1580
|
+
name: {
|
|
1581
|
+
type: "string",
|
|
1582
|
+
},
|
|
1583
|
+
metadata: {
|
|
1584
|
+
type: "object",
|
|
1585
|
+
description: "Up to 16 string key-value pairs.",
|
|
1586
|
+
},
|
|
1587
|
+
},
|
|
1588
|
+
required: ["sandbox_id"],
|
|
1589
|
+
additionalProperties: false,
|
|
1590
|
+
},
|
|
1591
|
+
operationId: "sandboxesCreateSnapshot",
|
|
1592
|
+
method: "POST",
|
|
1593
|
+
path: "/v1/sandboxes/{sandbox_id}/snapshot",
|
|
1594
|
+
scope: "sandboxes:write",
|
|
1595
|
+
servedBy: "node",
|
|
1596
|
+
pathParams: ["sandbox_id"],
|
|
1597
|
+
queryParams: [],
|
|
1598
|
+
body: "json",
|
|
1599
|
+
bodyFields: ["name", "metadata"],
|
|
1600
|
+
rawFields: [],
|
|
1601
|
+
toolArgs: [],
|
|
1602
|
+
bodyDefaults: {},
|
|
1603
|
+
queryDefaults: {},
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
name: "sandbox_list_snapshots",
|
|
1607
|
+
group: "sandboxes",
|
|
1608
|
+
title: "List snapshots",
|
|
1609
|
+
description: "List this project's sandbox snapshots, newest first.",
|
|
1610
|
+
annotations: {
|
|
1611
|
+
title: "List snapshots",
|
|
1612
|
+
readOnlyHint: true,
|
|
1613
|
+
openWorldHint: false,
|
|
1614
|
+
},
|
|
1615
|
+
inputSchema: {
|
|
1616
|
+
type: "object",
|
|
1617
|
+
properties: {
|
|
1618
|
+
limit: {
|
|
1619
|
+
type: "integer",
|
|
1620
|
+
minimum: 1,
|
|
1621
|
+
maximum: 100,
|
|
1622
|
+
default: 20,
|
|
1623
|
+
description: "Page size, from 1 to 100.",
|
|
1624
|
+
},
|
|
1625
|
+
cursor: {
|
|
1626
|
+
type: "string",
|
|
1627
|
+
description: "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page.",
|
|
1628
|
+
},
|
|
1629
|
+
},
|
|
1630
|
+
additionalProperties: false,
|
|
1631
|
+
},
|
|
1632
|
+
operationId: "sandboxesListSnapshots",
|
|
1633
|
+
method: "GET",
|
|
1634
|
+
path: "/v1/sandboxes/snapshots",
|
|
1635
|
+
scope: "sandboxes:read",
|
|
1636
|
+
servedBy: "node",
|
|
1637
|
+
pathParams: [],
|
|
1638
|
+
queryParams: [
|
|
1639
|
+
{
|
|
1640
|
+
name: "limit",
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
name: "cursor",
|
|
1644
|
+
},
|
|
1645
|
+
],
|
|
1646
|
+
body: "none",
|
|
1647
|
+
bodyFields: [],
|
|
1648
|
+
rawFields: [],
|
|
1649
|
+
toolArgs: [],
|
|
1650
|
+
bodyDefaults: {},
|
|
1651
|
+
queryDefaults: {},
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
name: "sandbox_get_snapshot",
|
|
1655
|
+
group: "sandboxes",
|
|
1656
|
+
title: "Get a snapshot",
|
|
1657
|
+
description: "Get a snapshot's source, size, status and metadata.",
|
|
1658
|
+
annotations: {
|
|
1659
|
+
title: "Get a snapshot",
|
|
1660
|
+
readOnlyHint: true,
|
|
1661
|
+
openWorldHint: false,
|
|
1662
|
+
},
|
|
1663
|
+
inputSchema: {
|
|
1664
|
+
type: "object",
|
|
1665
|
+
properties: {
|
|
1666
|
+
snapshot_id: {
|
|
1667
|
+
type: "string",
|
|
1668
|
+
pattern: "^snap_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1669
|
+
description: "The snapshot ID (`snap_…`).",
|
|
1670
|
+
},
|
|
1671
|
+
},
|
|
1672
|
+
required: ["snapshot_id"],
|
|
1673
|
+
additionalProperties: false,
|
|
1674
|
+
},
|
|
1675
|
+
operationId: "sandboxesGetSnapshot",
|
|
1676
|
+
method: "GET",
|
|
1677
|
+
path: "/v1/sandboxes/snapshots/{snapshot_id}",
|
|
1678
|
+
scope: "sandboxes:read",
|
|
1679
|
+
servedBy: "node",
|
|
1680
|
+
pathParams: ["snapshot_id"],
|
|
1681
|
+
queryParams: [],
|
|
1682
|
+
body: "none",
|
|
1683
|
+
bodyFields: [],
|
|
1684
|
+
rawFields: [],
|
|
1685
|
+
toolArgs: [],
|
|
1686
|
+
bodyDefaults: {},
|
|
1687
|
+
queryDefaults: {},
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
name: "sandbox_delete_snapshot",
|
|
1691
|
+
group: "sandboxes",
|
|
1692
|
+
title: "Delete a snapshot",
|
|
1693
|
+
description: "Delete a snapshot. Sandboxes already restored from it keep running.",
|
|
1694
|
+
annotations: {
|
|
1695
|
+
title: "Delete a snapshot",
|
|
1696
|
+
readOnlyHint: false,
|
|
1697
|
+
destructiveHint: true,
|
|
1698
|
+
idempotentHint: true,
|
|
1699
|
+
openWorldHint: false,
|
|
1700
|
+
},
|
|
1701
|
+
inputSchema: {
|
|
1702
|
+
type: "object",
|
|
1703
|
+
properties: {
|
|
1704
|
+
snapshot_id: {
|
|
1705
|
+
type: "string",
|
|
1706
|
+
pattern: "^snap_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1707
|
+
description: "The snapshot ID (`snap_…`).",
|
|
1708
|
+
},
|
|
1709
|
+
},
|
|
1710
|
+
required: ["snapshot_id"],
|
|
1711
|
+
additionalProperties: false,
|
|
1712
|
+
},
|
|
1713
|
+
operationId: "sandboxesDeleteSnapshot",
|
|
1714
|
+
method: "DELETE",
|
|
1715
|
+
path: "/v1/sandboxes/snapshots/{snapshot_id}",
|
|
1716
|
+
scope: "sandboxes:write",
|
|
1717
|
+
servedBy: "node",
|
|
1718
|
+
pathParams: ["snapshot_id"],
|
|
1719
|
+
queryParams: [],
|
|
1720
|
+
body: "none",
|
|
1721
|
+
bodyFields: [],
|
|
1722
|
+
rawFields: [],
|
|
1723
|
+
toolArgs: [],
|
|
1724
|
+
bodyDefaults: {},
|
|
1725
|
+
queryDefaults: {},
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
name: "sandbox_list_templates",
|
|
1729
|
+
group: "sandboxes",
|
|
1730
|
+
title: "List sandbox templates",
|
|
1731
|
+
description: "List the templates sandbox_create can start from: OS, runtimes, capabilities and defaults.",
|
|
1732
|
+
annotations: {
|
|
1733
|
+
title: "List sandbox templates",
|
|
1734
|
+
readOnlyHint: true,
|
|
1735
|
+
openWorldHint: false,
|
|
1736
|
+
},
|
|
1737
|
+
inputSchema: {
|
|
1738
|
+
type: "object",
|
|
1739
|
+
properties: {},
|
|
1740
|
+
additionalProperties: false,
|
|
1741
|
+
},
|
|
1742
|
+
operationId: "sandboxesListTemplates",
|
|
1743
|
+
method: "GET",
|
|
1744
|
+
path: "/v1/sandboxes/templates",
|
|
1745
|
+
scope: "sandboxes:read",
|
|
1746
|
+
servedBy: "node",
|
|
1747
|
+
pathParams: [],
|
|
1748
|
+
queryParams: [],
|
|
1749
|
+
body: "none",
|
|
1750
|
+
bodyFields: [],
|
|
1751
|
+
rawFields: [],
|
|
1752
|
+
toolArgs: [],
|
|
1753
|
+
bodyDefaults: {},
|
|
1754
|
+
queryDefaults: {},
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
name: "sandbox_get_template",
|
|
1758
|
+
group: "sandboxes",
|
|
1759
|
+
title: "Get a sandbox template",
|
|
1760
|
+
description: "Get one template by name or tpl_ id.",
|
|
1761
|
+
annotations: {
|
|
1762
|
+
title: "Get a sandbox template",
|
|
1763
|
+
readOnlyHint: true,
|
|
1764
|
+
openWorldHint: false,
|
|
1765
|
+
},
|
|
1766
|
+
inputSchema: {
|
|
1767
|
+
type: "object",
|
|
1768
|
+
properties: {
|
|
1769
|
+
template: {
|
|
1770
|
+
type: "string",
|
|
1771
|
+
description: "Template name or `tpl_` ID.",
|
|
1772
|
+
},
|
|
1773
|
+
},
|
|
1774
|
+
required: ["template"],
|
|
1775
|
+
additionalProperties: false,
|
|
1776
|
+
},
|
|
1777
|
+
operationId: "sandboxesGetTemplate",
|
|
1778
|
+
method: "GET",
|
|
1779
|
+
path: "/v1/sandboxes/templates/{template}",
|
|
1780
|
+
scope: "sandboxes:read",
|
|
1781
|
+
servedBy: "node",
|
|
1782
|
+
pathParams: ["template"],
|
|
1783
|
+
queryParams: [],
|
|
1784
|
+
body: "none",
|
|
1785
|
+
bodyFields: [],
|
|
1786
|
+
rawFields: [],
|
|
1787
|
+
toolArgs: [],
|
|
1788
|
+
bodyDefaults: {},
|
|
1789
|
+
queryDefaults: {},
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
name: "sandbox_set_timeout",
|
|
1793
|
+
group: "sandboxes",
|
|
1794
|
+
title: "Change a sandbox's timeout",
|
|
1795
|
+
description: "Set how many seconds from now the sandbox stops by itself (extend or shorten its life).",
|
|
1796
|
+
annotations: {
|
|
1797
|
+
title: "Change a sandbox's timeout",
|
|
1798
|
+
readOnlyHint: false,
|
|
1799
|
+
destructiveHint: false,
|
|
1800
|
+
idempotentHint: true,
|
|
1801
|
+
openWorldHint: false,
|
|
1802
|
+
},
|
|
1803
|
+
inputSchema: {
|
|
1804
|
+
type: "object",
|
|
1805
|
+
properties: {
|
|
1806
|
+
sandbox_id: {
|
|
1807
|
+
type: "string",
|
|
1808
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1809
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
1810
|
+
},
|
|
1811
|
+
timeout_s: {
|
|
1812
|
+
type: "integer",
|
|
1813
|
+
minimum: 10,
|
|
1814
|
+
maximum: 86400,
|
|
1815
|
+
},
|
|
1816
|
+
},
|
|
1817
|
+
required: ["sandbox_id", "timeout_s"],
|
|
1818
|
+
additionalProperties: false,
|
|
1819
|
+
},
|
|
1820
|
+
operationId: "sandboxesSetTimeout",
|
|
1821
|
+
method: "POST",
|
|
1822
|
+
path: "/v1/sandboxes/{sandbox_id}/timeout",
|
|
1823
|
+
scope: "sandboxes:write",
|
|
1824
|
+
servedBy: "node",
|
|
1825
|
+
pathParams: ["sandbox_id"],
|
|
1826
|
+
queryParams: [],
|
|
1827
|
+
body: "json",
|
|
1828
|
+
bodyFields: ["timeout_s"],
|
|
1829
|
+
rawFields: [],
|
|
1830
|
+
toolArgs: [],
|
|
1831
|
+
bodyDefaults: {},
|
|
1832
|
+
queryDefaults: {},
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
name: "sandbox_port_url",
|
|
1836
|
+
group: "sandboxes",
|
|
1837
|
+
title: "Get a preview URL for a port",
|
|
1838
|
+
description: "Mint an HTTPS preview URL that reaches a port inside the sandbox (declared in ports at create); anyone with the URL reaches the port until ttl_s passes.",
|
|
1839
|
+
annotations: {
|
|
1840
|
+
title: "Get a preview URL for a port",
|
|
1841
|
+
readOnlyHint: false,
|
|
1842
|
+
destructiveHint: false,
|
|
1843
|
+
openWorldHint: false,
|
|
1844
|
+
},
|
|
1845
|
+
inputSchema: {
|
|
1846
|
+
type: "object",
|
|
1847
|
+
properties: {
|
|
1848
|
+
sandbox_id: {
|
|
1849
|
+
type: "string",
|
|
1850
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1851
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
1852
|
+
},
|
|
1853
|
+
port: {
|
|
1854
|
+
type: "integer",
|
|
1855
|
+
minimum: 1,
|
|
1856
|
+
maximum: 65535,
|
|
1857
|
+
description: "A port declared in the sandbox's `ports`.",
|
|
1858
|
+
},
|
|
1859
|
+
ttl_s: {
|
|
1860
|
+
type: "integer",
|
|
1861
|
+
minimum: 60,
|
|
1862
|
+
maximum: 86400,
|
|
1863
|
+
default: 600,
|
|
1864
|
+
description: "How long the URL works, in seconds. Ignored for public ports.",
|
|
1865
|
+
},
|
|
1866
|
+
},
|
|
1867
|
+
required: ["sandbox_id", "port"],
|
|
1868
|
+
additionalProperties: false,
|
|
1869
|
+
},
|
|
1870
|
+
operationId: "sandboxesCreatePortUrl",
|
|
1871
|
+
method: "POST",
|
|
1872
|
+
path: "/v1/sandboxes/{sandbox_id}/ports/{port}/url",
|
|
1873
|
+
scope: "sandboxes:run",
|
|
1874
|
+
servedBy: "node",
|
|
1875
|
+
pathParams: ["sandbox_id", "port"],
|
|
1876
|
+
queryParams: [],
|
|
1877
|
+
body: "json",
|
|
1878
|
+
bodyFields: ["ttl_s"],
|
|
1879
|
+
rawFields: [],
|
|
1880
|
+
toolArgs: [],
|
|
1881
|
+
bodyDefaults: {},
|
|
1882
|
+
queryDefaults: {},
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
name: "sandbox_logs",
|
|
1886
|
+
group: "sandboxes",
|
|
1887
|
+
title: "Read background process output",
|
|
1888
|
+
description: "Read the buffered stdout and stderr of a sandbox's background processes (sandbox_exec with background: true), and which of them exited.",
|
|
1889
|
+
annotations: {
|
|
1890
|
+
title: "Read background process output",
|
|
1891
|
+
readOnlyHint: true,
|
|
1892
|
+
openWorldHint: false,
|
|
1893
|
+
},
|
|
1894
|
+
inputSchema: {
|
|
1895
|
+
type: "object",
|
|
1896
|
+
properties: {
|
|
1897
|
+
sandbox_id: {
|
|
1898
|
+
type: "string",
|
|
1899
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1900
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
1901
|
+
},
|
|
1902
|
+
pid: {
|
|
1903
|
+
type: "integer",
|
|
1904
|
+
minimum: 1,
|
|
1905
|
+
description: "Only this process.",
|
|
1906
|
+
},
|
|
1907
|
+
max_chars: {
|
|
1908
|
+
type: "integer",
|
|
1909
|
+
minimum: 1000,
|
|
1910
|
+
default: 50000,
|
|
1911
|
+
description: "Keep the last this many characters of each stream.",
|
|
1912
|
+
},
|
|
1913
|
+
},
|
|
1914
|
+
required: ["sandbox_id"],
|
|
1915
|
+
additionalProperties: false,
|
|
1916
|
+
},
|
|
1917
|
+
operationId: "sandboxesStreamLogs",
|
|
1918
|
+
method: "GET",
|
|
1919
|
+
path: "/v1/sandboxes/{sandbox_id}/logs",
|
|
1920
|
+
scope: "sandboxes:run",
|
|
1921
|
+
servedBy: "node",
|
|
1922
|
+
pathParams: ["sandbox_id"],
|
|
1923
|
+
queryParams: [
|
|
1924
|
+
{
|
|
1925
|
+
name: "pid",
|
|
1926
|
+
},
|
|
1927
|
+
],
|
|
1928
|
+
body: "none",
|
|
1929
|
+
bodyFields: [],
|
|
1930
|
+
rawFields: [],
|
|
1931
|
+
toolArgs: ["max_chars"],
|
|
1932
|
+
bodyDefaults: {},
|
|
1933
|
+
queryDefaults: {
|
|
1934
|
+
follow: false,
|
|
1935
|
+
},
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
name: "sandbox_list_processes",
|
|
1939
|
+
group: "sandboxes",
|
|
1940
|
+
title: "List sandbox processes",
|
|
1941
|
+
description: "List the sandbox's background processes with their status and exit code.",
|
|
1942
|
+
annotations: {
|
|
1943
|
+
title: "List sandbox processes",
|
|
1944
|
+
readOnlyHint: true,
|
|
1945
|
+
openWorldHint: false,
|
|
1946
|
+
},
|
|
1947
|
+
inputSchema: {
|
|
1948
|
+
type: "object",
|
|
1949
|
+
properties: {
|
|
1950
|
+
sandbox_id: {
|
|
1951
|
+
type: "string",
|
|
1952
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1953
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
1954
|
+
},
|
|
1955
|
+
},
|
|
1956
|
+
required: ["sandbox_id"],
|
|
1957
|
+
additionalProperties: false,
|
|
1958
|
+
},
|
|
1959
|
+
operationId: "sandboxesListProcesses",
|
|
1960
|
+
method: "GET",
|
|
1961
|
+
path: "/v1/sandboxes/{sandbox_id}/processes",
|
|
1962
|
+
scope: "sandboxes:run",
|
|
1963
|
+
servedBy: "node",
|
|
1964
|
+
pathParams: ["sandbox_id"],
|
|
1965
|
+
queryParams: [],
|
|
1966
|
+
body: "none",
|
|
1967
|
+
bodyFields: [],
|
|
1968
|
+
rawFields: [],
|
|
1969
|
+
toolArgs: [],
|
|
1970
|
+
bodyDefaults: {},
|
|
1971
|
+
queryDefaults: {},
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
name: "sandbox_kill_process",
|
|
1975
|
+
group: "sandboxes",
|
|
1976
|
+
title: "Stop a sandbox process",
|
|
1977
|
+
description: "Send a signal (default TERM) to a background process and its process group.",
|
|
1978
|
+
annotations: {
|
|
1979
|
+
title: "Stop a sandbox process",
|
|
1980
|
+
readOnlyHint: false,
|
|
1981
|
+
destructiveHint: true,
|
|
1982
|
+
idempotentHint: true,
|
|
1983
|
+
openWorldHint: false,
|
|
1984
|
+
},
|
|
1985
|
+
inputSchema: {
|
|
1986
|
+
type: "object",
|
|
1987
|
+
properties: {
|
|
1988
|
+
sandbox_id: {
|
|
1989
|
+
type: "string",
|
|
1990
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1991
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
1992
|
+
},
|
|
1993
|
+
pid: {
|
|
1994
|
+
type: "integer",
|
|
1995
|
+
minimum: 1,
|
|
1996
|
+
description: "Process ID inside the sandbox.",
|
|
1997
|
+
},
|
|
1998
|
+
signal: {
|
|
1999
|
+
type: "string",
|
|
2000
|
+
enum: ["TERM", "KILL", "INT", "HUP"],
|
|
2001
|
+
default: "TERM",
|
|
2002
|
+
},
|
|
2003
|
+
},
|
|
2004
|
+
required: ["sandbox_id", "pid"],
|
|
2005
|
+
additionalProperties: false,
|
|
2006
|
+
},
|
|
2007
|
+
operationId: "sandboxesKillProcess",
|
|
2008
|
+
method: "POST",
|
|
2009
|
+
path: "/v1/sandboxes/{sandbox_id}/processes/{pid}/kill",
|
|
2010
|
+
scope: "sandboxes:run",
|
|
2011
|
+
servedBy: "node",
|
|
2012
|
+
pathParams: ["sandbox_id", "pid"],
|
|
2013
|
+
queryParams: [],
|
|
2014
|
+
body: "json",
|
|
2015
|
+
bodyFields: ["signal"],
|
|
2016
|
+
rawFields: [],
|
|
2017
|
+
toolArgs: [],
|
|
2018
|
+
bodyDefaults: {},
|
|
2019
|
+
queryDefaults: {},
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
name: "vision_search",
|
|
2023
|
+
group: "vision",
|
|
2024
|
+
title: "Search the web",
|
|
2025
|
+
description: "Search the web and return the top results (URL, title, description). With scrape, also return each result's page as Markdown. Use it to find pages to read when you have no URL.",
|
|
2026
|
+
annotations: {
|
|
2027
|
+
title: "Search the web",
|
|
2028
|
+
readOnlyHint: true,
|
|
2029
|
+
openWorldHint: true,
|
|
2030
|
+
},
|
|
2031
|
+
inputSchema: {
|
|
2032
|
+
type: "object",
|
|
2033
|
+
properties: {
|
|
2034
|
+
query: {
|
|
2035
|
+
type: "string",
|
|
2036
|
+
description: "What to search for, at most 50 words. Operators the provider supports pass through: `site:`, quotes, `-word`.",
|
|
2037
|
+
},
|
|
2038
|
+
limit: {
|
|
2039
|
+
type: "integer",
|
|
2040
|
+
minimum: 1,
|
|
2041
|
+
maximum: 20,
|
|
2042
|
+
default: 5,
|
|
2043
|
+
description: "Most results to return.",
|
|
2044
|
+
},
|
|
2045
|
+
country: {
|
|
2046
|
+
type: "string",
|
|
2047
|
+
pattern: "^[A-Za-z]{2}$",
|
|
2048
|
+
description: "Two-letter country code to rank results for, like `us` or `de`. Default the provider's.",
|
|
2049
|
+
},
|
|
2050
|
+
lang: {
|
|
2051
|
+
type: "string",
|
|
2052
|
+
pattern: "^[a-z]{2}(-[a-z]{2,4})?$",
|
|
2053
|
+
description: "Language of the results, like `en`, `de` or `pt-br`.",
|
|
2054
|
+
},
|
|
2055
|
+
freshness: {
|
|
2056
|
+
type: "string",
|
|
2057
|
+
enum: ["day", "week", "month", "year"],
|
|
2058
|
+
description: "Only results the provider found within this past period.",
|
|
2059
|
+
},
|
|
2060
|
+
scrape: {
|
|
2061
|
+
description: "Scrape every result with these options, as in vision_scrape (formats, only_main_content, engine, max_age_ms, ...); headers, profile, actions and the json format are refused. Omit to get only the links.",
|
|
2062
|
+
},
|
|
2063
|
+
max_chars_per_result: {
|
|
2064
|
+
type: "integer",
|
|
2065
|
+
minimum: 200,
|
|
2066
|
+
default: 4000,
|
|
2067
|
+
description: "Truncate each scraped result's text.",
|
|
2068
|
+
},
|
|
2069
|
+
},
|
|
2070
|
+
required: ["query"],
|
|
2071
|
+
additionalProperties: false,
|
|
2072
|
+
},
|
|
2073
|
+
operationId: "visionSearch",
|
|
2074
|
+
method: "POST",
|
|
2075
|
+
path: "/v1/vision/search",
|
|
2076
|
+
scope: "vision:run",
|
|
2077
|
+
servedBy: "node",
|
|
2078
|
+
pathParams: [],
|
|
2079
|
+
queryParams: [],
|
|
2080
|
+
body: "json",
|
|
2081
|
+
bodyFields: ["query", "limit", "country", "lang", "freshness", "scrape"],
|
|
2082
|
+
rawFields: [],
|
|
2083
|
+
toolArgs: ["max_chars_per_result"],
|
|
2084
|
+
bodyDefaults: {},
|
|
2085
|
+
queryDefaults: {},
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
name: "vision_batch",
|
|
2089
|
+
group: "vision",
|
|
2090
|
+
title: "Scrape many URLs",
|
|
2091
|
+
description: "Scrape a list of URLs as one batch job and return the pages as Markdown. Waits up to wait_s seconds; if the batch is still running, call again with job_id.",
|
|
2092
|
+
annotations: {
|
|
2093
|
+
title: "Scrape many URLs",
|
|
2094
|
+
readOnlyHint: true,
|
|
2095
|
+
openWorldHint: true,
|
|
2096
|
+
},
|
|
2097
|
+
inputSchema: {
|
|
2098
|
+
type: "object",
|
|
2099
|
+
properties: {
|
|
2100
|
+
urls: {
|
|
2101
|
+
type: "array",
|
|
2102
|
+
items: {
|
|
2103
|
+
type: "string",
|
|
2104
|
+
},
|
|
2105
|
+
description: "The URLs to scrape (omit when passing job_id).",
|
|
2106
|
+
},
|
|
2107
|
+
scrape: {
|
|
2108
|
+
description: "Options for every page, as in vision_scrape (formats, only_main_content, engine, max_age_ms, respect_robots, ...). Default {formats: ['markdown']}.",
|
|
2109
|
+
},
|
|
2110
|
+
ignore_invalid_urls: {
|
|
2111
|
+
type: "boolean",
|
|
2112
|
+
default: false,
|
|
2113
|
+
description: "Skip URLs that do not parse (listed in `result.invalid_urls`) instead of rejecting the request.",
|
|
2114
|
+
},
|
|
2115
|
+
max_concurrency: {
|
|
2116
|
+
type: "integer",
|
|
2117
|
+
minimum: 1,
|
|
2118
|
+
description: "Pages scraped at once, capped by your concurrency limit.",
|
|
2119
|
+
},
|
|
2120
|
+
job_id: {
|
|
2121
|
+
type: "string",
|
|
2122
|
+
description: "A batch_… id from an earlier call: keep waiting or read its pages.",
|
|
2123
|
+
},
|
|
2124
|
+
wait_s: {
|
|
2125
|
+
type: "integer",
|
|
2126
|
+
minimum: 0,
|
|
2127
|
+
maximum: 60,
|
|
2128
|
+
default: 50,
|
|
2129
|
+
description: "Seconds to wait for the job before returning its id and status (then call again with job_id).",
|
|
2130
|
+
},
|
|
2131
|
+
max_chars_per_page: {
|
|
2132
|
+
type: "integer",
|
|
2133
|
+
minimum: 200,
|
|
2134
|
+
default: 4000,
|
|
2135
|
+
description: "Truncate each page's text.",
|
|
2136
|
+
},
|
|
2137
|
+
},
|
|
2138
|
+
additionalProperties: false,
|
|
2139
|
+
},
|
|
2140
|
+
operationId: "visionCreateBatch",
|
|
2141
|
+
method: "POST",
|
|
2142
|
+
path: "/v1/vision/batches",
|
|
2143
|
+
scope: "vision:run",
|
|
2144
|
+
servedBy: "node",
|
|
2145
|
+
pathParams: [],
|
|
2146
|
+
queryParams: [
|
|
2147
|
+
{
|
|
2148
|
+
name: "wait",
|
|
2149
|
+
from: "wait_s",
|
|
2150
|
+
},
|
|
2151
|
+
],
|
|
2152
|
+
body: "json",
|
|
2153
|
+
bodyFields: ["urls", "scrape", "ignore_invalid_urls", "max_concurrency"],
|
|
2154
|
+
rawFields: [],
|
|
2155
|
+
toolArgs: ["job_id", "wait_s", "max_chars_per_page"],
|
|
2156
|
+
bodyDefaults: {
|
|
2157
|
+
scrape: {
|
|
2158
|
+
formats: ["markdown"],
|
|
2159
|
+
},
|
|
2160
|
+
},
|
|
2161
|
+
queryDefaults: {},
|
|
2162
|
+
continueWith: {
|
|
2163
|
+
arg: "job_id",
|
|
2164
|
+
operationId: "visionGetBatch",
|
|
2165
|
+
method: "GET",
|
|
2166
|
+
path: "/v1/vision/batches/{batch_id}",
|
|
2167
|
+
pathParam: "batch_id",
|
|
2168
|
+
pages: {
|
|
2169
|
+
operationId: "visionListBatchPages",
|
|
2170
|
+
method: "GET",
|
|
2171
|
+
path: "/v1/vision/batches/{batch_id}/pages",
|
|
2172
|
+
},
|
|
2173
|
+
},
|
|
2174
|
+
},
|
|
2175
|
+
{
|
|
2176
|
+
name: "vision_cancel_batch",
|
|
2177
|
+
group: "vision",
|
|
2178
|
+
title: "Cancel a batch",
|
|
2179
|
+
description: "Cancel a running batch; pages already scraped stay listed (and billed).",
|
|
2180
|
+
annotations: {
|
|
2181
|
+
title: "Cancel a batch",
|
|
2182
|
+
readOnlyHint: false,
|
|
2183
|
+
destructiveHint: true,
|
|
2184
|
+
idempotentHint: true,
|
|
2185
|
+
openWorldHint: false,
|
|
2186
|
+
},
|
|
2187
|
+
inputSchema: {
|
|
2188
|
+
type: "object",
|
|
2189
|
+
properties: {
|
|
2190
|
+
batch_id: {
|
|
2191
|
+
type: "string",
|
|
2192
|
+
pattern: "^batch_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2193
|
+
description: "The batch scrape ID (`batch_…`).",
|
|
2194
|
+
},
|
|
2195
|
+
},
|
|
2196
|
+
required: ["batch_id"],
|
|
2197
|
+
additionalProperties: false,
|
|
2198
|
+
},
|
|
2199
|
+
operationId: "visionCancelBatch",
|
|
2200
|
+
method: "POST",
|
|
2201
|
+
path: "/v1/vision/batches/{batch_id}/cancel",
|
|
2202
|
+
scope: "vision:run",
|
|
2203
|
+
servedBy: "node",
|
|
2204
|
+
pathParams: ["batch_id"],
|
|
2205
|
+
queryParams: [],
|
|
2206
|
+
body: "none",
|
|
2207
|
+
bodyFields: [],
|
|
2208
|
+
rawFields: [],
|
|
2209
|
+
toolArgs: [],
|
|
2210
|
+
bodyDefaults: {},
|
|
2211
|
+
queryDefaults: {},
|
|
2212
|
+
},
|
|
2213
|
+
{
|
|
2214
|
+
name: "vision_cancel_crawl",
|
|
2215
|
+
group: "vision",
|
|
2216
|
+
title: "Cancel a crawl",
|
|
2217
|
+
description: "Cancel a running crawl; pages already scraped stay listed (and billed).",
|
|
2218
|
+
annotations: {
|
|
2219
|
+
title: "Cancel a crawl",
|
|
2220
|
+
readOnlyHint: false,
|
|
2221
|
+
destructiveHint: true,
|
|
2222
|
+
idempotentHint: true,
|
|
2223
|
+
openWorldHint: false,
|
|
2224
|
+
},
|
|
2225
|
+
inputSchema: {
|
|
2226
|
+
type: "object",
|
|
2227
|
+
properties: {
|
|
2228
|
+
crawl_id: {
|
|
2229
|
+
type: "string",
|
|
2230
|
+
pattern: "^crawl_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2231
|
+
description: "The crawl ID (`crawl_…`).",
|
|
2232
|
+
},
|
|
2233
|
+
},
|
|
2234
|
+
required: ["crawl_id"],
|
|
2235
|
+
additionalProperties: false,
|
|
2236
|
+
},
|
|
2237
|
+
operationId: "visionCancelCrawl",
|
|
2238
|
+
method: "POST",
|
|
2239
|
+
path: "/v1/vision/crawls/{crawl_id}/cancel",
|
|
2240
|
+
scope: "vision:run",
|
|
2241
|
+
servedBy: "node",
|
|
2242
|
+
pathParams: ["crawl_id"],
|
|
2243
|
+
queryParams: [],
|
|
2244
|
+
body: "none",
|
|
2245
|
+
bodyFields: [],
|
|
2246
|
+
rawFields: [],
|
|
2247
|
+
toolArgs: [],
|
|
2248
|
+
bodyDefaults: {},
|
|
2249
|
+
queryDefaults: {},
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
name: "vision_create_session",
|
|
2253
|
+
group: "vision",
|
|
2254
|
+
title: "Open a browser session",
|
|
2255
|
+
description: "Open a Chrome session that stays up between vision_act calls (pass its id as session_id), optionally signed in from a saved profile. It closes after timeout_s or with vision_close_session.",
|
|
2256
|
+
annotations: {
|
|
2257
|
+
title: "Open a browser session",
|
|
2258
|
+
readOnlyHint: false,
|
|
2259
|
+
destructiveHint: false,
|
|
2260
|
+
openWorldHint: true,
|
|
2261
|
+
},
|
|
2262
|
+
inputSchema: {
|
|
2263
|
+
type: "object",
|
|
2264
|
+
properties: {
|
|
2265
|
+
profile: {
|
|
2266
|
+
type: "string",
|
|
2267
|
+
description: "A profile ID or name to load.",
|
|
2268
|
+
},
|
|
2269
|
+
persist_profile: {
|
|
2270
|
+
type: "boolean",
|
|
2271
|
+
default: false,
|
|
2272
|
+
description: "Save cookies and storage back to `profile` when the session closes (the profile is `locked` meanwhile).",
|
|
2273
|
+
},
|
|
2274
|
+
viewport: {
|
|
2275
|
+
type: "object",
|
|
2276
|
+
description: "Browser viewport in CSS pixels.",
|
|
2277
|
+
},
|
|
2278
|
+
locale: {
|
|
2279
|
+
type: "string",
|
|
2280
|
+
default: "en-US",
|
|
2281
|
+
description: "BCP 47 locale for `Accept-Language` and the browser. Defaults to the locale of the node's egress location (`en-US` on every node today).",
|
|
2282
|
+
},
|
|
2283
|
+
timezone: {
|
|
2284
|
+
type: "string",
|
|
2285
|
+
description: "IANA time zone for the browser. Defaults to the time zone of the node's egress location (`America/Los_Angeles` on every node today).",
|
|
2286
|
+
},
|
|
2287
|
+
timeout_s: {
|
|
2288
|
+
type: "integer",
|
|
2289
|
+
minimum: 10,
|
|
2290
|
+
maximum: 1800,
|
|
2291
|
+
default: 300,
|
|
2292
|
+
description: "Close the session this many seconds after creation.",
|
|
2293
|
+
},
|
|
2294
|
+
block_ads: {
|
|
2295
|
+
type: "boolean",
|
|
2296
|
+
default: false,
|
|
2297
|
+
},
|
|
2298
|
+
block_resources: {
|
|
2299
|
+
type: "array",
|
|
2300
|
+
items: {
|
|
2301
|
+
type: "string",
|
|
2302
|
+
enum: ["image", "media", "font", "stylesheet"],
|
|
2303
|
+
},
|
|
2304
|
+
},
|
|
2305
|
+
metadata: {
|
|
2306
|
+
type: "object",
|
|
2307
|
+
description: "Up to 16 string key-value pairs.",
|
|
2308
|
+
},
|
|
2309
|
+
},
|
|
2310
|
+
additionalProperties: false,
|
|
2311
|
+
},
|
|
2312
|
+
operationId: "visionCreateSession",
|
|
2313
|
+
method: "POST",
|
|
2314
|
+
path: "/v1/vision/sessions",
|
|
2315
|
+
scope: "vision:write",
|
|
2316
|
+
servedBy: "node",
|
|
2317
|
+
pathParams: [],
|
|
2318
|
+
queryParams: [],
|
|
2319
|
+
body: "json",
|
|
2320
|
+
bodyFields: [
|
|
2321
|
+
"profile",
|
|
2322
|
+
"persist_profile",
|
|
2323
|
+
"viewport",
|
|
2324
|
+
"locale",
|
|
2325
|
+
"timezone",
|
|
2326
|
+
"timeout_s",
|
|
2327
|
+
"block_ads",
|
|
2328
|
+
"block_resources",
|
|
2329
|
+
"metadata",
|
|
2330
|
+
],
|
|
2331
|
+
rawFields: [],
|
|
2332
|
+
toolArgs: [],
|
|
2333
|
+
bodyDefaults: {},
|
|
2334
|
+
queryDefaults: {},
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
name: "vision_list_sessions",
|
|
2338
|
+
group: "vision",
|
|
2339
|
+
title: "List browser sessions",
|
|
2340
|
+
description: "List this project's browser sessions (status filter, cursor paging).",
|
|
2341
|
+
annotations: {
|
|
2342
|
+
title: "List browser sessions",
|
|
2343
|
+
readOnlyHint: true,
|
|
2344
|
+
openWorldHint: false,
|
|
2345
|
+
},
|
|
2346
|
+
inputSchema: {
|
|
2347
|
+
type: "object",
|
|
2348
|
+
properties: {
|
|
2349
|
+
status: {
|
|
2350
|
+
type: "string",
|
|
2351
|
+
description: "Only sessions with this status.",
|
|
2352
|
+
enum: ["active", "closed", "expired"],
|
|
2353
|
+
},
|
|
2354
|
+
limit: {
|
|
2355
|
+
type: "integer",
|
|
2356
|
+
minimum: 1,
|
|
2357
|
+
maximum: 100,
|
|
2358
|
+
default: 20,
|
|
2359
|
+
description: "Page size, from 1 to 100.",
|
|
2360
|
+
},
|
|
2361
|
+
cursor: {
|
|
2362
|
+
type: "string",
|
|
2363
|
+
description: "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page.",
|
|
2364
|
+
},
|
|
2365
|
+
},
|
|
2366
|
+
additionalProperties: false,
|
|
2367
|
+
},
|
|
2368
|
+
operationId: "visionListSessions",
|
|
2369
|
+
method: "GET",
|
|
2370
|
+
path: "/v1/vision/sessions",
|
|
2371
|
+
scope: "vision:read",
|
|
2372
|
+
servedBy: "node",
|
|
2373
|
+
pathParams: [],
|
|
2374
|
+
queryParams: [
|
|
2375
|
+
{
|
|
2376
|
+
name: "status",
|
|
2377
|
+
},
|
|
2378
|
+
{
|
|
2379
|
+
name: "limit",
|
|
2380
|
+
},
|
|
2381
|
+
{
|
|
2382
|
+
name: "cursor",
|
|
2383
|
+
},
|
|
2384
|
+
],
|
|
2385
|
+
body: "none",
|
|
2386
|
+
bodyFields: [],
|
|
2387
|
+
rawFields: [],
|
|
2388
|
+
toolArgs: [],
|
|
2389
|
+
bodyDefaults: {},
|
|
2390
|
+
queryDefaults: {},
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
name: "vision_get_session",
|
|
2394
|
+
group: "vision",
|
|
2395
|
+
title: "Get a browser session",
|
|
2396
|
+
description: "Get a browser session's status, open pages, profile, usage and expiry.",
|
|
2397
|
+
annotations: {
|
|
2398
|
+
title: "Get a browser session",
|
|
2399
|
+
readOnlyHint: true,
|
|
2400
|
+
openWorldHint: false,
|
|
2401
|
+
},
|
|
2402
|
+
inputSchema: {
|
|
2403
|
+
type: "object",
|
|
2404
|
+
properties: {
|
|
2405
|
+
session_id: {
|
|
2406
|
+
type: "string",
|
|
2407
|
+
pattern: "^brs_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2408
|
+
description: "The session ID (`brs_…`).",
|
|
2409
|
+
},
|
|
2410
|
+
},
|
|
2411
|
+
required: ["session_id"],
|
|
2412
|
+
additionalProperties: false,
|
|
2413
|
+
},
|
|
2414
|
+
operationId: "visionGetSession",
|
|
2415
|
+
method: "GET",
|
|
2416
|
+
path: "/v1/vision/sessions/{session_id}",
|
|
2417
|
+
scope: "vision:read",
|
|
2418
|
+
servedBy: "node",
|
|
2419
|
+
pathParams: ["session_id"],
|
|
2420
|
+
queryParams: [],
|
|
2421
|
+
body: "none",
|
|
2422
|
+
bodyFields: [],
|
|
2423
|
+
rawFields: [],
|
|
2424
|
+
toolArgs: [],
|
|
2425
|
+
bodyDefaults: {},
|
|
2426
|
+
queryDefaults: {},
|
|
2427
|
+
},
|
|
2428
|
+
{
|
|
2429
|
+
name: "vision_close_session",
|
|
2430
|
+
group: "vision",
|
|
2431
|
+
title: "Close a browser session",
|
|
2432
|
+
description: "Close a browser session (and save its profile when it was opened with persist_profile).",
|
|
2433
|
+
annotations: {
|
|
2434
|
+
title: "Close a browser session",
|
|
2435
|
+
readOnlyHint: false,
|
|
2436
|
+
destructiveHint: true,
|
|
2437
|
+
idempotentHint: true,
|
|
2438
|
+
openWorldHint: false,
|
|
2439
|
+
},
|
|
2440
|
+
inputSchema: {
|
|
2441
|
+
type: "object",
|
|
2442
|
+
properties: {
|
|
2443
|
+
session_id: {
|
|
2444
|
+
type: "string",
|
|
2445
|
+
pattern: "^brs_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2446
|
+
description: "The session ID (`brs_…`).",
|
|
2447
|
+
},
|
|
2448
|
+
},
|
|
2449
|
+
required: ["session_id"],
|
|
2450
|
+
additionalProperties: false,
|
|
2451
|
+
},
|
|
2452
|
+
operationId: "visionCloseSession",
|
|
2453
|
+
method: "DELETE",
|
|
2454
|
+
path: "/v1/vision/sessions/{session_id}",
|
|
2455
|
+
scope: "vision:write",
|
|
2456
|
+
servedBy: "node",
|
|
2457
|
+
pathParams: ["session_id"],
|
|
2458
|
+
queryParams: [],
|
|
2459
|
+
body: "none",
|
|
2460
|
+
bodyFields: [],
|
|
2461
|
+
rawFields: [],
|
|
2462
|
+
toolArgs: [],
|
|
2463
|
+
bodyDefaults: {},
|
|
2464
|
+
queryDefaults: {},
|
|
2465
|
+
},
|
|
2466
|
+
{
|
|
2467
|
+
name: "vision_save_profile",
|
|
2468
|
+
group: "vision",
|
|
2469
|
+
title: "Save a session as a profile",
|
|
2470
|
+
description: "Save a session's cookies and storage (after signing in with vision_act) as a named profile that later scrapes and sessions can load; the state itself never passes through this conversation.",
|
|
2471
|
+
annotations: {
|
|
2472
|
+
title: "Save a session as a profile",
|
|
2473
|
+
readOnlyHint: false,
|
|
2474
|
+
destructiveHint: false,
|
|
2475
|
+
openWorldHint: false,
|
|
2476
|
+
},
|
|
2477
|
+
inputSchema: {
|
|
2478
|
+
type: "object",
|
|
2479
|
+
properties: {
|
|
2480
|
+
session_id: {
|
|
2481
|
+
type: "string",
|
|
2482
|
+
pattern: "^brs_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2483
|
+
description: "The session ID (`brs_…`).",
|
|
2484
|
+
},
|
|
2485
|
+
name: {
|
|
2486
|
+
type: "string",
|
|
2487
|
+
description: "Profile to create or replace.",
|
|
2488
|
+
},
|
|
2489
|
+
overwrite: {
|
|
2490
|
+
type: "boolean",
|
|
2491
|
+
default: false,
|
|
2492
|
+
description: "Replace the profile even if it changed since this session loaded it.",
|
|
2493
|
+
},
|
|
2494
|
+
},
|
|
2495
|
+
required: ["session_id", "name"],
|
|
2496
|
+
additionalProperties: false,
|
|
2497
|
+
},
|
|
2498
|
+
operationId: "visionSaveSessionProfile",
|
|
2499
|
+
method: "POST",
|
|
2500
|
+
path: "/v1/vision/sessions/{session_id}/profile",
|
|
2501
|
+
scope: "vision:write",
|
|
2502
|
+
servedBy: "node",
|
|
2503
|
+
pathParams: ["session_id"],
|
|
2504
|
+
queryParams: [],
|
|
2505
|
+
body: "json",
|
|
2506
|
+
bodyFields: ["name", "overwrite"],
|
|
2507
|
+
rawFields: [],
|
|
2508
|
+
toolArgs: [],
|
|
2509
|
+
bodyDefaults: {},
|
|
2510
|
+
queryDefaults: {},
|
|
2511
|
+
},
|
|
2512
|
+
{
|
|
2513
|
+
name: "vision_list_profiles",
|
|
2514
|
+
group: "vision",
|
|
2515
|
+
title: "List browser profiles",
|
|
2516
|
+
description: "List saved browser profiles (names, domains, expiry; never their cookies).",
|
|
2517
|
+
annotations: {
|
|
2518
|
+
title: "List browser profiles",
|
|
2519
|
+
readOnlyHint: true,
|
|
2520
|
+
openWorldHint: false,
|
|
2521
|
+
},
|
|
2522
|
+
inputSchema: {
|
|
2523
|
+
type: "object",
|
|
2524
|
+
properties: {
|
|
2525
|
+
limit: {
|
|
2526
|
+
type: "integer",
|
|
2527
|
+
minimum: 1,
|
|
2528
|
+
maximum: 100,
|
|
2529
|
+
default: 20,
|
|
2530
|
+
description: "Page size, from 1 to 100.",
|
|
2531
|
+
},
|
|
2532
|
+
cursor: {
|
|
2533
|
+
type: "string",
|
|
2534
|
+
description: "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page.",
|
|
2535
|
+
},
|
|
2536
|
+
},
|
|
2537
|
+
additionalProperties: false,
|
|
2538
|
+
},
|
|
2539
|
+
operationId: "visionListProfiles",
|
|
2540
|
+
method: "GET",
|
|
2541
|
+
path: "/v1/vision/profiles",
|
|
2542
|
+
scope: "vision:read",
|
|
2543
|
+
servedBy: "node",
|
|
2544
|
+
pathParams: [],
|
|
2545
|
+
queryParams: [
|
|
2546
|
+
{
|
|
2547
|
+
name: "limit",
|
|
2548
|
+
},
|
|
2549
|
+
{
|
|
2550
|
+
name: "cursor",
|
|
2551
|
+
},
|
|
2552
|
+
],
|
|
2553
|
+
body: "none",
|
|
2554
|
+
bodyFields: [],
|
|
2555
|
+
rawFields: [],
|
|
2556
|
+
toolArgs: [],
|
|
2557
|
+
bodyDefaults: {},
|
|
2558
|
+
queryDefaults: {},
|
|
2559
|
+
},
|
|
2560
|
+
{
|
|
2561
|
+
name: "vision_get_profile",
|
|
2562
|
+
group: "vision",
|
|
2563
|
+
title: "Get a browser profile",
|
|
2564
|
+
description: "Get a saved profile's name, domains, expiry and metadata (never its cookies).",
|
|
2565
|
+
annotations: {
|
|
2566
|
+
title: "Get a browser profile",
|
|
2567
|
+
readOnlyHint: true,
|
|
2568
|
+
openWorldHint: false,
|
|
2569
|
+
},
|
|
2570
|
+
inputSchema: {
|
|
2571
|
+
type: "object",
|
|
2572
|
+
properties: {
|
|
2573
|
+
profile_id: {
|
|
2574
|
+
type: "string",
|
|
2575
|
+
pattern: "^prof_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2576
|
+
description: "The profile ID (`prof_…`).",
|
|
2577
|
+
},
|
|
2578
|
+
},
|
|
2579
|
+
required: ["profile_id"],
|
|
2580
|
+
additionalProperties: false,
|
|
2581
|
+
},
|
|
2582
|
+
operationId: "visionGetProfile",
|
|
2583
|
+
method: "GET",
|
|
2584
|
+
path: "/v1/vision/profiles/{profile_id}",
|
|
2585
|
+
scope: "vision:read",
|
|
2586
|
+
servedBy: "node",
|
|
2587
|
+
pathParams: ["profile_id"],
|
|
2588
|
+
queryParams: [],
|
|
2589
|
+
body: "none",
|
|
2590
|
+
bodyFields: [],
|
|
2591
|
+
rawFields: [],
|
|
2592
|
+
toolArgs: [],
|
|
2593
|
+
bodyDefaults: {},
|
|
2594
|
+
queryDefaults: {},
|
|
2595
|
+
},
|
|
2596
|
+
{
|
|
2597
|
+
name: "vision_update_profile",
|
|
2598
|
+
group: "vision",
|
|
2599
|
+
title: "Update a browser profile",
|
|
2600
|
+
description: "Rename a saved profile or change its domains, expiry or metadata (not its cookies).",
|
|
2601
|
+
annotations: {
|
|
2602
|
+
title: "Update a browser profile",
|
|
2603
|
+
readOnlyHint: false,
|
|
2604
|
+
destructiveHint: false,
|
|
2605
|
+
idempotentHint: true,
|
|
2606
|
+
openWorldHint: false,
|
|
2607
|
+
},
|
|
2608
|
+
inputSchema: {
|
|
2609
|
+
type: "object",
|
|
2610
|
+
properties: {
|
|
2611
|
+
profile_id: {
|
|
2612
|
+
type: "string",
|
|
2613
|
+
pattern: "^prof_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2614
|
+
description: "The profile ID (`prof_…`).",
|
|
2615
|
+
},
|
|
2616
|
+
name: {
|
|
2617
|
+
type: "string",
|
|
2618
|
+
},
|
|
2619
|
+
domains: {
|
|
2620
|
+
type: "array",
|
|
2621
|
+
items: {
|
|
2622
|
+
type: "string",
|
|
2623
|
+
},
|
|
2624
|
+
},
|
|
2625
|
+
expires_at: {
|
|
2626
|
+
type: ["string", "null"],
|
|
2627
|
+
format: "date-time",
|
|
2628
|
+
},
|
|
2629
|
+
metadata: {
|
|
2630
|
+
type: "object",
|
|
2631
|
+
description: "Up to 16 string key-value pairs you attach to an object for your own use. Keys are 1 to 40 characters of `A-Z a-z 0-9 _ . : -`.",
|
|
2632
|
+
},
|
|
2633
|
+
},
|
|
2634
|
+
required: ["profile_id"],
|
|
2635
|
+
additionalProperties: false,
|
|
2636
|
+
},
|
|
2637
|
+
operationId: "visionUpdateProfile",
|
|
2638
|
+
method: "PATCH",
|
|
2639
|
+
path: "/v1/vision/profiles/{profile_id}",
|
|
2640
|
+
scope: "vision:write",
|
|
2641
|
+
servedBy: "node",
|
|
2642
|
+
pathParams: ["profile_id"],
|
|
2643
|
+
queryParams: [],
|
|
2644
|
+
body: "json",
|
|
2645
|
+
bodyFields: ["name", "domains", "expires_at", "metadata"],
|
|
2646
|
+
rawFields: [],
|
|
2647
|
+
toolArgs: [],
|
|
2648
|
+
bodyDefaults: {},
|
|
2649
|
+
queryDefaults: {},
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
name: "vision_delete_profile",
|
|
2653
|
+
group: "vision",
|
|
2654
|
+
title: "Delete a browser profile",
|
|
2655
|
+
description: "Delete a saved profile and its stored cookies and storage.",
|
|
2656
|
+
annotations: {
|
|
2657
|
+
title: "Delete a browser profile",
|
|
2658
|
+
readOnlyHint: false,
|
|
2659
|
+
destructiveHint: true,
|
|
2660
|
+
idempotentHint: true,
|
|
2661
|
+
openWorldHint: false,
|
|
2662
|
+
},
|
|
2663
|
+
inputSchema: {
|
|
2664
|
+
type: "object",
|
|
2665
|
+
properties: {
|
|
2666
|
+
profile_id: {
|
|
2667
|
+
type: "string",
|
|
2668
|
+
pattern: "^prof_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2669
|
+
description: "The profile ID (`prof_…`).",
|
|
2670
|
+
},
|
|
2671
|
+
},
|
|
2672
|
+
required: ["profile_id"],
|
|
2673
|
+
additionalProperties: false,
|
|
2674
|
+
},
|
|
2675
|
+
operationId: "visionDeleteProfile",
|
|
2676
|
+
method: "DELETE",
|
|
2677
|
+
path: "/v1/vision/profiles/{profile_id}",
|
|
2678
|
+
scope: "vision:write",
|
|
2679
|
+
servedBy: "node",
|
|
2680
|
+
pathParams: ["profile_id"],
|
|
2681
|
+
queryParams: [],
|
|
2682
|
+
body: "none",
|
|
2683
|
+
bodyFields: [],
|
|
2684
|
+
rawFields: [],
|
|
2685
|
+
toolArgs: [],
|
|
2686
|
+
bodyDefaults: {},
|
|
2687
|
+
queryDefaults: {},
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
name: "routine_get_run",
|
|
2691
|
+
group: "routines",
|
|
2692
|
+
title: "Get a routine run",
|
|
2693
|
+
description: "Read a routine run by its run_ id: its status, the step it failed at with the error code, each step's status and duration, and its output. An ephemeral run read after it ended has its summary only (steps_kept: false, no steps).",
|
|
2694
|
+
annotations: {
|
|
2695
|
+
title: "Get a routine run",
|
|
2696
|
+
readOnlyHint: true,
|
|
2697
|
+
openWorldHint: false,
|
|
2698
|
+
},
|
|
2699
|
+
inputSchema: {
|
|
2700
|
+
type: "object",
|
|
2701
|
+
properties: {
|
|
2702
|
+
run_id: {
|
|
2703
|
+
type: "string",
|
|
2704
|
+
pattern: "^run_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2705
|
+
description: "The run ID (`run_…`).",
|
|
2706
|
+
},
|
|
2707
|
+
},
|
|
2708
|
+
required: ["run_id"],
|
|
2709
|
+
additionalProperties: false,
|
|
2710
|
+
},
|
|
2711
|
+
operationId: "routinesGetRun",
|
|
2712
|
+
method: "GET",
|
|
2713
|
+
path: "/v1/routines/runs/{run_id}",
|
|
2714
|
+
scope: "routines:read",
|
|
2715
|
+
servedBy: "node",
|
|
2716
|
+
pathParams: ["run_id"],
|
|
2717
|
+
queryParams: [],
|
|
2718
|
+
body: "none",
|
|
2719
|
+
bodyFields: [],
|
|
2720
|
+
rawFields: [],
|
|
2721
|
+
toolArgs: [],
|
|
2722
|
+
bodyDefaults: {},
|
|
2723
|
+
queryDefaults: {},
|
|
2724
|
+
},
|
|
2725
|
+
{
|
|
2726
|
+
name: "routine_validate",
|
|
2727
|
+
group: "routines",
|
|
2728
|
+
title: "Check a routine definition",
|
|
2729
|
+
description: "Compile a routine definition without publishing it. Returns every problem with a JSON pointer: schema, unknown callables or steps, cycles, CEL types, inputs against each callable's schema. Fix and check again until it is valid.",
|
|
2730
|
+
annotations: {
|
|
2731
|
+
title: "Check a routine definition",
|
|
2732
|
+
readOnlyHint: true,
|
|
2733
|
+
openWorldHint: false,
|
|
2734
|
+
},
|
|
2735
|
+
inputSchema: {
|
|
2736
|
+
type: "object",
|
|
2737
|
+
properties: {
|
|
2738
|
+
definition: {
|
|
2739
|
+
type: "object",
|
|
2740
|
+
description: "The definition as JSON: name and steps, optionally inputs, triggers, vars, output, defaults.",
|
|
2741
|
+
},
|
|
2742
|
+
},
|
|
2743
|
+
additionalProperties: false,
|
|
2744
|
+
},
|
|
2745
|
+
operationId: "routinesValidateRoutine",
|
|
2746
|
+
method: "POST",
|
|
2747
|
+
path: "/v1/routines/validate",
|
|
2748
|
+
scope: "routines:write",
|
|
2749
|
+
servedBy: "node",
|
|
2750
|
+
pathParams: [],
|
|
2751
|
+
queryParams: [],
|
|
2752
|
+
body: "none",
|
|
2753
|
+
bodyFields: [],
|
|
2754
|
+
rawFields: [],
|
|
2755
|
+
toolArgs: ["definition"],
|
|
2756
|
+
bodyDefaults: {},
|
|
2757
|
+
queryDefaults: {},
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
name: "routine_signal",
|
|
2761
|
+
group: "routines",
|
|
2762
|
+
title: "Signal a routine run",
|
|
2763
|
+
description: "Send a named signal (with an optional payload) to a run waiting on it (a wait.signal step).",
|
|
2764
|
+
annotations: {
|
|
2765
|
+
title: "Signal a routine run",
|
|
2766
|
+
readOnlyHint: false,
|
|
2767
|
+
openWorldHint: false,
|
|
2768
|
+
},
|
|
2769
|
+
inputSchema: {
|
|
2770
|
+
type: "object",
|
|
2771
|
+
properties: {
|
|
2772
|
+
run_id: {
|
|
2773
|
+
type: "string",
|
|
2774
|
+
pattern: "^run_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2775
|
+
description: "The run ID (`run_…`).",
|
|
2776
|
+
},
|
|
2777
|
+
name: {
|
|
2778
|
+
type: "string",
|
|
2779
|
+
description: "The `wait.signal` name the run waits for (routine.schema.json).",
|
|
2780
|
+
pattern: "^[a-z][a-z0-9_.-]{0,63}$",
|
|
2781
|
+
},
|
|
2782
|
+
payload: {
|
|
2783
|
+
description: "Becomes the waiting step's outputs.",
|
|
2784
|
+
},
|
|
2785
|
+
},
|
|
2786
|
+
required: ["run_id", "name"],
|
|
2787
|
+
additionalProperties: false,
|
|
2788
|
+
},
|
|
2789
|
+
operationId: "routinesSignalRun",
|
|
2790
|
+
method: "POST",
|
|
2791
|
+
path: "/v1/routines/runs/{run_id}/signal",
|
|
2792
|
+
scope: "routines:run",
|
|
2793
|
+
servedBy: "node",
|
|
2794
|
+
pathParams: ["run_id"],
|
|
2795
|
+
queryParams: [],
|
|
2796
|
+
body: "json",
|
|
2797
|
+
bodyFields: ["name", "payload"],
|
|
2798
|
+
rawFields: [],
|
|
2799
|
+
toolArgs: [],
|
|
2800
|
+
bodyDefaults: {},
|
|
2801
|
+
queryDefaults: {},
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
name: "infer_chat",
|
|
2805
|
+
group: "infer",
|
|
2806
|
+
title: "Chat with the node's model",
|
|
2807
|
+
description: "One chat completion on a model served on the node (GET /v1/infer/models lists them), for cheap sub-tasks next to the other tools.",
|
|
2808
|
+
annotations: {
|
|
2809
|
+
title: "Chat with the node's model",
|
|
2810
|
+
readOnlyHint: true,
|
|
2811
|
+
openWorldHint: false,
|
|
2812
|
+
},
|
|
2813
|
+
inputSchema: {
|
|
2814
|
+
type: "object",
|
|
2815
|
+
properties: {
|
|
2816
|
+
model: {
|
|
2817
|
+
type: "string",
|
|
2818
|
+
description: "A model ID from `GET /v1/infer/models`.",
|
|
2819
|
+
},
|
|
2820
|
+
messages: {
|
|
2821
|
+
type: "array",
|
|
2822
|
+
description: "OpenAI-style messages: [{role: 'system' | 'user' | 'assistant', content}].",
|
|
2823
|
+
items: {
|
|
2824
|
+
type: "object",
|
|
2825
|
+
},
|
|
2826
|
+
},
|
|
2827
|
+
response_format: {
|
|
2828
|
+
description: "{type: 'json_schema', json_schema: {name, schema}} for JSON output.",
|
|
2829
|
+
},
|
|
2830
|
+
temperature: {
|
|
2831
|
+
type: ["number", "null"],
|
|
2832
|
+
minimum: 0,
|
|
2833
|
+
maximum: 2,
|
|
2834
|
+
},
|
|
2835
|
+
max_tokens: {
|
|
2836
|
+
type: ["integer", "null"],
|
|
2837
|
+
minimum: 1,
|
|
2838
|
+
description: "The most tokens to generate. Unset (with `max_completion_tokens` unset too), the model's default output cap applies where the node sets one (`b3os.default_ma...",
|
|
2839
|
+
},
|
|
2840
|
+
},
|
|
2841
|
+
required: ["model", "messages"],
|
|
2842
|
+
additionalProperties: false,
|
|
2843
|
+
},
|
|
2844
|
+
operationId: "inferCreateChatCompletion",
|
|
2845
|
+
method: "POST",
|
|
2846
|
+
path: "/v1/infer/chat/completions",
|
|
2847
|
+
scope: "infer:run",
|
|
2848
|
+
servedBy: "node",
|
|
2849
|
+
pathParams: [],
|
|
2850
|
+
queryParams: [],
|
|
2851
|
+
body: "json",
|
|
2852
|
+
bodyFields: ["model", "messages", "response_format", "temperature", "max_tokens"],
|
|
2853
|
+
rawFields: [],
|
|
2854
|
+
toolArgs: [],
|
|
2855
|
+
bodyDefaults: {},
|
|
2856
|
+
queryDefaults: {},
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
name: "infer_models",
|
|
2860
|
+
group: "infer",
|
|
2861
|
+
title: "List the node's models",
|
|
2862
|
+
description: "The models served on the node: each one's kind (chat or speech), context length, quantization, tool, JSON Schema and image support, and your organization's tokens and requests per minute for it. Pick a chat model for infer_chat here.",
|
|
2863
|
+
annotations: {
|
|
2864
|
+
title: "List the node's models",
|
|
2865
|
+
readOnlyHint: true,
|
|
2866
|
+
openWorldHint: false,
|
|
2867
|
+
},
|
|
2868
|
+
inputSchema: {
|
|
2869
|
+
type: "object",
|
|
2870
|
+
properties: {},
|
|
2871
|
+
additionalProperties: false,
|
|
2872
|
+
},
|
|
2873
|
+
operationId: "inferListModels",
|
|
2874
|
+
method: "GET",
|
|
2875
|
+
path: "/v1/infer/models",
|
|
2876
|
+
scope: "infer:read",
|
|
2877
|
+
servedBy: "node",
|
|
2878
|
+
pathParams: [],
|
|
2879
|
+
queryParams: [],
|
|
2880
|
+
body: "none",
|
|
2881
|
+
bodyFields: [],
|
|
2882
|
+
rawFields: [],
|
|
2883
|
+
toolArgs: [],
|
|
2884
|
+
bodyDefaults: {},
|
|
2885
|
+
queryDefaults: {},
|
|
2886
|
+
},
|
|
2887
|
+
{
|
|
2888
|
+
name: "infer_voices",
|
|
2889
|
+
group: "infer",
|
|
2890
|
+
title: "List narration voices",
|
|
2891
|
+
description: "The voices of the node's speech models, with each voice's language, gender, where its word timings come from, and a sample URL.",
|
|
2892
|
+
annotations: {
|
|
2893
|
+
title: "List narration voices",
|
|
2894
|
+
readOnlyHint: true,
|
|
2895
|
+
openWorldHint: false,
|
|
2896
|
+
},
|
|
2897
|
+
inputSchema: {
|
|
2898
|
+
type: "object",
|
|
2899
|
+
properties: {
|
|
2900
|
+
model: {
|
|
2901
|
+
type: "string",
|
|
2902
|
+
description: "Only voices of this model.",
|
|
2903
|
+
},
|
|
2904
|
+
},
|
|
2905
|
+
additionalProperties: false,
|
|
2906
|
+
},
|
|
2907
|
+
operationId: "inferListVoices",
|
|
2908
|
+
method: "GET",
|
|
2909
|
+
path: "/v1/infer/audio/voices",
|
|
2910
|
+
scope: "infer:read",
|
|
2911
|
+
servedBy: "node",
|
|
2912
|
+
pathParams: [],
|
|
2913
|
+
queryParams: [
|
|
2914
|
+
{
|
|
2915
|
+
name: "model",
|
|
2916
|
+
},
|
|
2917
|
+
],
|
|
2918
|
+
body: "none",
|
|
2919
|
+
bodyFields: [],
|
|
2920
|
+
rawFields: [],
|
|
2921
|
+
toolArgs: [],
|
|
2922
|
+
bodyDefaults: {},
|
|
2923
|
+
queryDefaults: {},
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
name: "usage_get",
|
|
2927
|
+
group: "platform",
|
|
2928
|
+
title: "Summarize usage",
|
|
2929
|
+
description: "Summarize your organization's metered usage over a time range, grouped as you ask.",
|
|
2930
|
+
annotations: {
|
|
2931
|
+
title: "Summarize usage",
|
|
2932
|
+
readOnlyHint: true,
|
|
2933
|
+
openWorldHint: false,
|
|
2934
|
+
},
|
|
2935
|
+
inputSchema: {
|
|
2936
|
+
type: "object",
|
|
2937
|
+
properties: {
|
|
2938
|
+
start: {
|
|
2939
|
+
type: "string",
|
|
2940
|
+
format: "date-time",
|
|
2941
|
+
},
|
|
2942
|
+
end: {
|
|
2943
|
+
type: "string",
|
|
2944
|
+
format: "date-time",
|
|
2945
|
+
},
|
|
2946
|
+
group_by: {
|
|
2947
|
+
type: "string",
|
|
2948
|
+
default: "product,unit",
|
|
2949
|
+
description: "Comma-separated dimensions.",
|
|
2950
|
+
},
|
|
2951
|
+
project_id: {
|
|
2952
|
+
type: "string",
|
|
2953
|
+
pattern: "^prj_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2954
|
+
description: "Only this project.",
|
|
2955
|
+
},
|
|
2956
|
+
},
|
|
2957
|
+
additionalProperties: false,
|
|
2958
|
+
},
|
|
2959
|
+
operationId: "platformGetUsage",
|
|
2960
|
+
method: "GET",
|
|
2961
|
+
path: "/v1/usage",
|
|
2962
|
+
scope: "platform:read",
|
|
2963
|
+
servedBy: "edge",
|
|
2964
|
+
pathParams: [],
|
|
2965
|
+
queryParams: [
|
|
2966
|
+
{
|
|
2967
|
+
name: "start",
|
|
2968
|
+
},
|
|
2969
|
+
{
|
|
2970
|
+
name: "end",
|
|
2971
|
+
},
|
|
2972
|
+
{
|
|
2973
|
+
name: "group_by",
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
name: "project_id",
|
|
2977
|
+
},
|
|
2978
|
+
],
|
|
2979
|
+
body: "none",
|
|
2980
|
+
bodyFields: [],
|
|
2981
|
+
rawFields: [],
|
|
2982
|
+
toolArgs: [],
|
|
2983
|
+
bodyDefaults: {},
|
|
2984
|
+
queryDefaults: {},
|
|
2985
|
+
},
|
|
2986
|
+
{
|
|
2987
|
+
name: "limits_get",
|
|
2988
|
+
group: "platform",
|
|
2989
|
+
title: "Get your limits",
|
|
2990
|
+
description: "Your organization's rate, concurrency and monthly limits and what is used of them.",
|
|
2991
|
+
annotations: {
|
|
2992
|
+
title: "Get your limits",
|
|
2993
|
+
readOnlyHint: true,
|
|
2994
|
+
openWorldHint: false,
|
|
2995
|
+
},
|
|
2996
|
+
inputSchema: {
|
|
2997
|
+
type: "object",
|
|
2998
|
+
properties: {},
|
|
2999
|
+
additionalProperties: false,
|
|
3000
|
+
},
|
|
3001
|
+
operationId: "platformGetLimits",
|
|
3002
|
+
method: "GET",
|
|
3003
|
+
path: "/v1/limits",
|
|
3004
|
+
scope: "authenticated",
|
|
3005
|
+
servedBy: "edge",
|
|
3006
|
+
pathParams: [],
|
|
3007
|
+
queryParams: [],
|
|
3008
|
+
body: "none",
|
|
3009
|
+
bodyFields: [],
|
|
3010
|
+
rawFields: [],
|
|
3011
|
+
toolArgs: [],
|
|
3012
|
+
bodyDefaults: {},
|
|
3013
|
+
queryDefaults: {},
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
name: "requests_list",
|
|
3017
|
+
group: "platform",
|
|
3018
|
+
title: "List API requests",
|
|
3019
|
+
description: "List the API requests the node served for this project in the last 7 days, newest first; filter by product, operation, status, key, connection kind, sandbox or time.",
|
|
3020
|
+
annotations: {
|
|
3021
|
+
title: "List API requests",
|
|
3022
|
+
readOnlyHint: true,
|
|
3023
|
+
openWorldHint: false,
|
|
3024
|
+
},
|
|
3025
|
+
inputSchema: {
|
|
3026
|
+
type: "object",
|
|
3027
|
+
properties: {
|
|
3028
|
+
product: {
|
|
3029
|
+
type: "string",
|
|
3030
|
+
},
|
|
3031
|
+
operation_id: {
|
|
3032
|
+
type: "string",
|
|
3033
|
+
},
|
|
3034
|
+
status: {
|
|
3035
|
+
type: "string",
|
|
3036
|
+
enum: ["2xx", "4xx", "5xx"],
|
|
3037
|
+
description: "Only requests that succeeded (`2xx`) or failed (`4xx`, `5xx`).",
|
|
3038
|
+
},
|
|
3039
|
+
key_id: {
|
|
3040
|
+
type: "string",
|
|
3041
|
+
pattern: "^key_[0-9a-hjkmnp-tv-z]{26}$",
|
|
3042
|
+
},
|
|
3043
|
+
connection: {
|
|
3044
|
+
type: "string",
|
|
3045
|
+
description: "Only requests that arrived this way.",
|
|
3046
|
+
enum: ["edge", "uds", "tcp", "sandbox"],
|
|
3047
|
+
},
|
|
3048
|
+
sandbox_id: {
|
|
3049
|
+
type: "string",
|
|
3050
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
3051
|
+
description: "Only requests made from inside this sandbox.",
|
|
3052
|
+
},
|
|
3053
|
+
since: {
|
|
3054
|
+
type: "string",
|
|
3055
|
+
format: "date-time",
|
|
3056
|
+
},
|
|
3057
|
+
limit: {
|
|
3058
|
+
type: "integer",
|
|
3059
|
+
minimum: 1,
|
|
3060
|
+
maximum: 100,
|
|
3061
|
+
default: 20,
|
|
3062
|
+
description: "Page size, from 1 to 100.",
|
|
3063
|
+
},
|
|
3064
|
+
cursor: {
|
|
3065
|
+
type: "string",
|
|
3066
|
+
description: "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page.",
|
|
3067
|
+
},
|
|
3068
|
+
},
|
|
3069
|
+
additionalProperties: false,
|
|
3070
|
+
},
|
|
3071
|
+
operationId: "platformListRequests",
|
|
3072
|
+
method: "GET",
|
|
3073
|
+
path: "/v1/requests",
|
|
3074
|
+
scope: "platform:read",
|
|
3075
|
+
servedBy: "node",
|
|
3076
|
+
pathParams: [],
|
|
3077
|
+
queryParams: [
|
|
3078
|
+
{
|
|
3079
|
+
name: "product",
|
|
3080
|
+
},
|
|
3081
|
+
{
|
|
3082
|
+
name: "operation_id",
|
|
3083
|
+
},
|
|
3084
|
+
{
|
|
3085
|
+
name: "status",
|
|
3086
|
+
},
|
|
3087
|
+
{
|
|
3088
|
+
name: "key_id",
|
|
3089
|
+
},
|
|
3090
|
+
{
|
|
3091
|
+
name: "connection",
|
|
3092
|
+
},
|
|
3093
|
+
{
|
|
3094
|
+
name: "sandbox_id",
|
|
3095
|
+
},
|
|
3096
|
+
{
|
|
3097
|
+
name: "since",
|
|
3098
|
+
},
|
|
3099
|
+
{
|
|
3100
|
+
name: "limit",
|
|
3101
|
+
},
|
|
3102
|
+
{
|
|
3103
|
+
name: "cursor",
|
|
3104
|
+
},
|
|
3105
|
+
],
|
|
3106
|
+
body: "none",
|
|
3107
|
+
bodyFields: [],
|
|
3108
|
+
rawFields: [],
|
|
3109
|
+
toolArgs: [],
|
|
3110
|
+
bodyDefaults: {},
|
|
3111
|
+
queryDefaults: {},
|
|
3112
|
+
},
|
|
3113
|
+
{
|
|
3114
|
+
name: "requests_get",
|
|
3115
|
+
group: "platform",
|
|
3116
|
+
title: "Get an API request",
|
|
3117
|
+
description: "Get one request by its ID (a response's x-request-id) with its full timing phase breakdown, node and edge.",
|
|
3118
|
+
annotations: {
|
|
3119
|
+
title: "Get an API request",
|
|
3120
|
+
readOnlyHint: true,
|
|
3121
|
+
openWorldHint: false,
|
|
3122
|
+
},
|
|
3123
|
+
inputSchema: {
|
|
3124
|
+
type: "object",
|
|
3125
|
+
properties: {
|
|
3126
|
+
request_id: {
|
|
3127
|
+
type: "string",
|
|
3128
|
+
pattern: "^req_[0-9a-hjkmnp-tv-z]{26}$",
|
|
3129
|
+
description: "The request_id.",
|
|
3130
|
+
},
|
|
3131
|
+
},
|
|
3132
|
+
required: ["request_id"],
|
|
3133
|
+
additionalProperties: false,
|
|
3134
|
+
},
|
|
3135
|
+
operationId: "platformGetRequest",
|
|
3136
|
+
method: "GET",
|
|
3137
|
+
path: "/v1/requests/{request_id}",
|
|
3138
|
+
scope: "platform:read",
|
|
3139
|
+
servedBy: "node",
|
|
3140
|
+
pathParams: ["request_id"],
|
|
3141
|
+
queryParams: [],
|
|
3142
|
+
body: "none",
|
|
3143
|
+
bodyFields: [],
|
|
3144
|
+
rawFields: [],
|
|
3145
|
+
toolArgs: [],
|
|
3146
|
+
bodyDefaults: {},
|
|
3147
|
+
queryDefaults: {},
|
|
3148
|
+
},
|
|
3149
|
+
{
|
|
3150
|
+
name: "webhooks_list_deliveries",
|
|
3151
|
+
group: "platform",
|
|
3152
|
+
title: "List webhook deliveries",
|
|
3153
|
+
description: "List webhook deliveries with their attempts and answers; filter by url, job or status.",
|
|
3154
|
+
annotations: {
|
|
3155
|
+
title: "List webhook deliveries",
|
|
3156
|
+
readOnlyHint: true,
|
|
3157
|
+
openWorldHint: false,
|
|
3158
|
+
},
|
|
3159
|
+
inputSchema: {
|
|
3160
|
+
type: "object",
|
|
3161
|
+
properties: {
|
|
3162
|
+
url: {
|
|
3163
|
+
type: "string",
|
|
3164
|
+
format: "uri",
|
|
3165
|
+
description: "Only deliveries to this endpoint.",
|
|
3166
|
+
},
|
|
3167
|
+
job_id: {
|
|
3168
|
+
type: "string",
|
|
3169
|
+
description: "Only deliveries for this job.",
|
|
3170
|
+
},
|
|
3171
|
+
status: {
|
|
3172
|
+
type: "string",
|
|
3173
|
+
enum: ["pending", "retrying", "succeeded", "failed"],
|
|
3174
|
+
},
|
|
3175
|
+
limit: {
|
|
3176
|
+
type: "integer",
|
|
3177
|
+
minimum: 1,
|
|
3178
|
+
maximum: 100,
|
|
3179
|
+
default: 20,
|
|
3180
|
+
description: "Page size, from 1 to 100.",
|
|
3181
|
+
},
|
|
3182
|
+
cursor: {
|
|
3183
|
+
type: "string",
|
|
3184
|
+
description: "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page.",
|
|
3185
|
+
},
|
|
3186
|
+
},
|
|
3187
|
+
additionalProperties: false,
|
|
3188
|
+
},
|
|
3189
|
+
operationId: "webhooksListDeliveries",
|
|
3190
|
+
method: "GET",
|
|
3191
|
+
path: "/v1/webhooks/deliveries",
|
|
3192
|
+
scope: "platform:read",
|
|
3193
|
+
servedBy: "node",
|
|
3194
|
+
pathParams: [],
|
|
3195
|
+
queryParams: [
|
|
3196
|
+
{
|
|
3197
|
+
name: "url",
|
|
3198
|
+
},
|
|
3199
|
+
{
|
|
3200
|
+
name: "job_id",
|
|
3201
|
+
},
|
|
3202
|
+
{
|
|
3203
|
+
name: "status",
|
|
3204
|
+
},
|
|
3205
|
+
{
|
|
3206
|
+
name: "limit",
|
|
3207
|
+
},
|
|
3208
|
+
{
|
|
3209
|
+
name: "cursor",
|
|
3210
|
+
},
|
|
3211
|
+
],
|
|
3212
|
+
body: "none",
|
|
3213
|
+
bodyFields: [],
|
|
3214
|
+
rawFields: [],
|
|
3215
|
+
toolArgs: [],
|
|
3216
|
+
bodyDefaults: {},
|
|
3217
|
+
queryDefaults: {},
|
|
3218
|
+
},
|
|
3219
|
+
{
|
|
3220
|
+
name: "webhooks_send_test",
|
|
3221
|
+
group: "platform",
|
|
3222
|
+
title: "Send a test webhook",
|
|
3223
|
+
description: "Send one signed webhook.test event to a URL now and return the delivery with its outcome (not retried).",
|
|
3224
|
+
annotations: {
|
|
3225
|
+
title: "Send a test webhook",
|
|
3226
|
+
readOnlyHint: false,
|
|
3227
|
+
destructiveHint: false,
|
|
3228
|
+
openWorldHint: true,
|
|
3229
|
+
},
|
|
3230
|
+
inputSchema: {
|
|
3231
|
+
type: "object",
|
|
3232
|
+
properties: {
|
|
3233
|
+
url: {
|
|
3234
|
+
type: "string",
|
|
3235
|
+
format: "uri",
|
|
3236
|
+
},
|
|
3237
|
+
},
|
|
3238
|
+
required: ["url"],
|
|
3239
|
+
additionalProperties: false,
|
|
3240
|
+
},
|
|
3241
|
+
operationId: "webhooksSendTest",
|
|
3242
|
+
method: "POST",
|
|
3243
|
+
path: "/v1/webhooks/test",
|
|
3244
|
+
scope: "platform:write",
|
|
3245
|
+
servedBy: "node",
|
|
3246
|
+
pathParams: [],
|
|
3247
|
+
queryParams: [],
|
|
3248
|
+
body: "json",
|
|
3249
|
+
bodyFields: ["url"],
|
|
3250
|
+
rawFields: [],
|
|
3251
|
+
toolArgs: [],
|
|
3252
|
+
bodyDefaults: {},
|
|
3253
|
+
queryDefaults: {},
|
|
3254
|
+
},
|
|
3255
|
+
];
|
|
3256
|
+
/** Every operation the tools call, by operationId. */
|
|
3257
|
+
export const MCP_OPERATIONS = {
|
|
3258
|
+
actionsCall: {
|
|
3259
|
+
method: "POST",
|
|
3260
|
+
path: "/v1/actions/call",
|
|
3261
|
+
pathParams: [],
|
|
3262
|
+
scope: "actions:run",
|
|
3263
|
+
servedBy: "node",
|
|
3264
|
+
idempotent: true,
|
|
3265
|
+
},
|
|
3266
|
+
actionsDescribe: {
|
|
3267
|
+
method: "GET",
|
|
3268
|
+
path: "/v1/actions/describe",
|
|
3269
|
+
pathParams: [],
|
|
3270
|
+
scope: "actions:read",
|
|
3271
|
+
servedBy: "node",
|
|
3272
|
+
idempotent: false,
|
|
3273
|
+
},
|
|
3274
|
+
actionsSearch: {
|
|
3275
|
+
method: "GET",
|
|
3276
|
+
path: "/v1/actions/search",
|
|
3277
|
+
pathParams: [],
|
|
3278
|
+
scope: "actions:read",
|
|
3279
|
+
servedBy: "node",
|
|
3280
|
+
idempotent: false,
|
|
3281
|
+
},
|
|
3282
|
+
inferCreateChatCompletion: {
|
|
3283
|
+
method: "POST",
|
|
3284
|
+
path: "/v1/infer/chat/completions",
|
|
3285
|
+
pathParams: [],
|
|
3286
|
+
scope: "infer:run",
|
|
3287
|
+
servedBy: "node",
|
|
3288
|
+
idempotent: false,
|
|
3289
|
+
},
|
|
3290
|
+
inferListModels: {
|
|
3291
|
+
method: "GET",
|
|
3292
|
+
path: "/v1/infer/models",
|
|
3293
|
+
pathParams: [],
|
|
3294
|
+
scope: "infer:read",
|
|
3295
|
+
servedBy: "node",
|
|
3296
|
+
idempotent: false,
|
|
3297
|
+
},
|
|
3298
|
+
inferListVoices: {
|
|
3299
|
+
method: "GET",
|
|
3300
|
+
path: "/v1/infer/audio/voices",
|
|
3301
|
+
pathParams: [],
|
|
3302
|
+
scope: "infer:read",
|
|
3303
|
+
servedBy: "node",
|
|
3304
|
+
idempotent: false,
|
|
3305
|
+
},
|
|
3306
|
+
platformGetLimits: {
|
|
3307
|
+
method: "GET",
|
|
3308
|
+
path: "/v1/limits",
|
|
3309
|
+
pathParams: [],
|
|
3310
|
+
scope: "authenticated",
|
|
3311
|
+
servedBy: "edge",
|
|
3312
|
+
idempotent: false,
|
|
3313
|
+
},
|
|
3314
|
+
platformGetRequest: {
|
|
3315
|
+
method: "GET",
|
|
3316
|
+
path: "/v1/requests/{request_id}",
|
|
3317
|
+
pathParams: ["request_id"],
|
|
3318
|
+
scope: "platform:read",
|
|
3319
|
+
servedBy: "node",
|
|
3320
|
+
idempotent: false,
|
|
3321
|
+
},
|
|
3322
|
+
platformGetUsage: {
|
|
3323
|
+
method: "GET",
|
|
3324
|
+
path: "/v1/usage",
|
|
3325
|
+
pathParams: [],
|
|
3326
|
+
scope: "platform:read",
|
|
3327
|
+
servedBy: "edge",
|
|
3328
|
+
idempotent: false,
|
|
3329
|
+
},
|
|
3330
|
+
platformListRequests: {
|
|
3331
|
+
method: "GET",
|
|
3332
|
+
path: "/v1/requests",
|
|
3333
|
+
pathParams: [],
|
|
3334
|
+
scope: "platform:read",
|
|
3335
|
+
servedBy: "node",
|
|
3336
|
+
idempotent: false,
|
|
3337
|
+
},
|
|
3338
|
+
renderCreateScreenshot: {
|
|
3339
|
+
method: "POST",
|
|
3340
|
+
path: "/v1/render/screenshots",
|
|
3341
|
+
pathParams: [],
|
|
3342
|
+
scope: "render:run",
|
|
3343
|
+
servedBy: "node",
|
|
3344
|
+
idempotent: true,
|
|
3345
|
+
},
|
|
3346
|
+
renderCreateVideo: {
|
|
3347
|
+
method: "POST",
|
|
3348
|
+
path: "/v1/render/videos",
|
|
3349
|
+
pathParams: [],
|
|
3350
|
+
scope: "render:run",
|
|
3351
|
+
servedBy: "node",
|
|
3352
|
+
idempotent: true,
|
|
3353
|
+
},
|
|
3354
|
+
renderGetVideo: {
|
|
3355
|
+
method: "GET",
|
|
3356
|
+
path: "/v1/render/videos/{video_id}",
|
|
3357
|
+
pathParams: ["video_id"],
|
|
3358
|
+
scope: "render:read",
|
|
3359
|
+
servedBy: "node",
|
|
3360
|
+
idempotent: false,
|
|
3361
|
+
},
|
|
3362
|
+
routinesCreateRun: {
|
|
3363
|
+
method: "POST",
|
|
3364
|
+
path: "/v1/routines/{routine}/runs",
|
|
3365
|
+
pathParams: ["routine"],
|
|
3366
|
+
scope: "routines:run",
|
|
3367
|
+
servedBy: "node",
|
|
3368
|
+
idempotent: true,
|
|
3369
|
+
},
|
|
3370
|
+
routinesGetRun: {
|
|
3371
|
+
method: "GET",
|
|
3372
|
+
path: "/v1/routines/runs/{run_id}",
|
|
3373
|
+
pathParams: ["run_id"],
|
|
3374
|
+
scope: "routines:read",
|
|
3375
|
+
servedBy: "node",
|
|
3376
|
+
idempotent: false,
|
|
3377
|
+
},
|
|
3378
|
+
routinesSignalRun: {
|
|
3379
|
+
method: "POST",
|
|
3380
|
+
path: "/v1/routines/runs/{run_id}/signal",
|
|
3381
|
+
pathParams: ["run_id"],
|
|
3382
|
+
scope: "routines:run",
|
|
3383
|
+
servedBy: "node",
|
|
3384
|
+
idempotent: true,
|
|
3385
|
+
},
|
|
3386
|
+
routinesValidateRoutine: {
|
|
3387
|
+
method: "POST",
|
|
3388
|
+
path: "/v1/routines/validate",
|
|
3389
|
+
pathParams: [],
|
|
3390
|
+
scope: "routines:write",
|
|
3391
|
+
servedBy: "node",
|
|
3392
|
+
idempotent: false,
|
|
3393
|
+
},
|
|
3394
|
+
sandboxesCreatePortUrl: {
|
|
3395
|
+
method: "POST",
|
|
3396
|
+
path: "/v1/sandboxes/{sandbox_id}/ports/{port}/url",
|
|
3397
|
+
pathParams: ["sandbox_id", "port"],
|
|
3398
|
+
scope: "sandboxes:run",
|
|
3399
|
+
servedBy: "node",
|
|
3400
|
+
idempotent: false,
|
|
3401
|
+
},
|
|
3402
|
+
sandboxesCreateSandbox: {
|
|
3403
|
+
method: "POST",
|
|
3404
|
+
path: "/v1/sandboxes",
|
|
3405
|
+
pathParams: [],
|
|
3406
|
+
scope: "sandboxes:write",
|
|
3407
|
+
servedBy: "node",
|
|
3408
|
+
idempotent: true,
|
|
3409
|
+
},
|
|
3410
|
+
sandboxesCreateSnapshot: {
|
|
3411
|
+
method: "POST",
|
|
3412
|
+
path: "/v1/sandboxes/{sandbox_id}/snapshot",
|
|
3413
|
+
pathParams: ["sandbox_id"],
|
|
3414
|
+
scope: "sandboxes:write",
|
|
3415
|
+
servedBy: "node",
|
|
3416
|
+
idempotent: true,
|
|
3417
|
+
},
|
|
3418
|
+
sandboxesDeleteSandbox: {
|
|
3419
|
+
method: "DELETE",
|
|
3420
|
+
path: "/v1/sandboxes/{sandbox_id}",
|
|
3421
|
+
pathParams: ["sandbox_id"],
|
|
3422
|
+
scope: "sandboxes:write",
|
|
3423
|
+
servedBy: "node",
|
|
3424
|
+
idempotent: false,
|
|
3425
|
+
},
|
|
3426
|
+
sandboxesDeleteSnapshot: {
|
|
3427
|
+
method: "DELETE",
|
|
3428
|
+
path: "/v1/sandboxes/snapshots/{snapshot_id}",
|
|
3429
|
+
pathParams: ["snapshot_id"],
|
|
3430
|
+
scope: "sandboxes:write",
|
|
3431
|
+
servedBy: "node",
|
|
3432
|
+
idempotent: false,
|
|
3433
|
+
},
|
|
3434
|
+
sandboxesExec: {
|
|
3435
|
+
method: "POST",
|
|
3436
|
+
path: "/v1/sandboxes/{sandbox_id}/exec",
|
|
3437
|
+
pathParams: ["sandbox_id"],
|
|
3438
|
+
scope: "sandboxes:run",
|
|
3439
|
+
servedBy: "node",
|
|
3440
|
+
idempotent: false,
|
|
3441
|
+
},
|
|
3442
|
+
sandboxesForkSandbox: {
|
|
3443
|
+
method: "POST",
|
|
3444
|
+
path: "/v1/sandboxes/{sandbox_id}/fork",
|
|
3445
|
+
pathParams: ["sandbox_id"],
|
|
3446
|
+
scope: "sandboxes:write",
|
|
3447
|
+
servedBy: "node",
|
|
3448
|
+
idempotent: true,
|
|
3449
|
+
},
|
|
3450
|
+
sandboxesGetSandbox: {
|
|
3451
|
+
method: "GET",
|
|
3452
|
+
path: "/v1/sandboxes/{sandbox_id}",
|
|
3453
|
+
pathParams: ["sandbox_id"],
|
|
3454
|
+
scope: "sandboxes:read",
|
|
3455
|
+
servedBy: "node",
|
|
3456
|
+
idempotent: false,
|
|
3457
|
+
},
|
|
3458
|
+
sandboxesGetSnapshot: {
|
|
3459
|
+
method: "GET",
|
|
3460
|
+
path: "/v1/sandboxes/snapshots/{snapshot_id}",
|
|
3461
|
+
pathParams: ["snapshot_id"],
|
|
3462
|
+
scope: "sandboxes:read",
|
|
3463
|
+
servedBy: "node",
|
|
3464
|
+
idempotent: false,
|
|
3465
|
+
},
|
|
3466
|
+
sandboxesGetTemplate: {
|
|
3467
|
+
method: "GET",
|
|
3468
|
+
path: "/v1/sandboxes/templates/{template}",
|
|
3469
|
+
pathParams: ["template"],
|
|
3470
|
+
scope: "sandboxes:read",
|
|
3471
|
+
servedBy: "node",
|
|
3472
|
+
idempotent: false,
|
|
3473
|
+
},
|
|
3474
|
+
sandboxesKillProcess: {
|
|
3475
|
+
method: "POST",
|
|
3476
|
+
path: "/v1/sandboxes/{sandbox_id}/processes/{pid}/kill",
|
|
3477
|
+
pathParams: ["sandbox_id", "pid"],
|
|
3478
|
+
scope: "sandboxes:run",
|
|
3479
|
+
servedBy: "node",
|
|
3480
|
+
idempotent: false,
|
|
3481
|
+
},
|
|
3482
|
+
sandboxesListProcesses: {
|
|
3483
|
+
method: "GET",
|
|
3484
|
+
path: "/v1/sandboxes/{sandbox_id}/processes",
|
|
3485
|
+
pathParams: ["sandbox_id"],
|
|
3486
|
+
scope: "sandboxes:run",
|
|
3487
|
+
servedBy: "node",
|
|
3488
|
+
idempotent: false,
|
|
3489
|
+
},
|
|
3490
|
+
sandboxesListSandboxes: {
|
|
3491
|
+
method: "GET",
|
|
3492
|
+
path: "/v1/sandboxes",
|
|
3493
|
+
pathParams: [],
|
|
3494
|
+
scope: "sandboxes:read",
|
|
3495
|
+
servedBy: "node",
|
|
3496
|
+
idempotent: false,
|
|
3497
|
+
},
|
|
3498
|
+
sandboxesListSnapshots: {
|
|
3499
|
+
method: "GET",
|
|
3500
|
+
path: "/v1/sandboxes/snapshots",
|
|
3501
|
+
pathParams: [],
|
|
3502
|
+
scope: "sandboxes:read",
|
|
3503
|
+
servedBy: "node",
|
|
3504
|
+
idempotent: false,
|
|
3505
|
+
},
|
|
3506
|
+
sandboxesListTemplates: {
|
|
3507
|
+
method: "GET",
|
|
3508
|
+
path: "/v1/sandboxes/templates",
|
|
3509
|
+
pathParams: [],
|
|
3510
|
+
scope: "sandboxes:read",
|
|
3511
|
+
servedBy: "node",
|
|
3512
|
+
idempotent: false,
|
|
3513
|
+
},
|
|
3514
|
+
sandboxesPauseSandbox: {
|
|
3515
|
+
method: "POST",
|
|
3516
|
+
path: "/v1/sandboxes/{sandbox_id}/pause",
|
|
3517
|
+
pathParams: ["sandbox_id"],
|
|
3518
|
+
scope: "sandboxes:write",
|
|
3519
|
+
servedBy: "node",
|
|
3520
|
+
idempotent: false,
|
|
3521
|
+
},
|
|
3522
|
+
sandboxesReadFile: {
|
|
3523
|
+
method: "GET",
|
|
3524
|
+
path: "/v1/sandboxes/{sandbox_id}/files",
|
|
3525
|
+
pathParams: ["sandbox_id"],
|
|
3526
|
+
scope: "sandboxes:run",
|
|
3527
|
+
servedBy: "node",
|
|
3528
|
+
idempotent: false,
|
|
3529
|
+
},
|
|
3530
|
+
sandboxesResumeSandbox: {
|
|
3531
|
+
method: "POST",
|
|
3532
|
+
path: "/v1/sandboxes/{sandbox_id}/resume",
|
|
3533
|
+
pathParams: ["sandbox_id"],
|
|
3534
|
+
scope: "sandboxes:write",
|
|
3535
|
+
servedBy: "node",
|
|
3536
|
+
idempotent: false,
|
|
3537
|
+
},
|
|
3538
|
+
sandboxesRunCode: {
|
|
3539
|
+
method: "POST",
|
|
3540
|
+
path: "/v1/sandboxes/{sandbox_id}/run_code",
|
|
3541
|
+
pathParams: ["sandbox_id"],
|
|
3542
|
+
scope: "sandboxes:run",
|
|
3543
|
+
servedBy: "node",
|
|
3544
|
+
idempotent: false,
|
|
3545
|
+
},
|
|
3546
|
+
sandboxesSetTimeout: {
|
|
3547
|
+
method: "POST",
|
|
3548
|
+
path: "/v1/sandboxes/{sandbox_id}/timeout",
|
|
3549
|
+
pathParams: ["sandbox_id"],
|
|
3550
|
+
scope: "sandboxes:write",
|
|
3551
|
+
servedBy: "node",
|
|
3552
|
+
idempotent: false,
|
|
3553
|
+
},
|
|
3554
|
+
sandboxesStreamLogs: {
|
|
3555
|
+
method: "GET",
|
|
3556
|
+
path: "/v1/sandboxes/{sandbox_id}/logs",
|
|
3557
|
+
pathParams: ["sandbox_id"],
|
|
3558
|
+
scope: "sandboxes:run",
|
|
3559
|
+
servedBy: "node",
|
|
3560
|
+
idempotent: false,
|
|
3561
|
+
},
|
|
3562
|
+
sandboxesWriteFile: {
|
|
3563
|
+
method: "PUT",
|
|
3564
|
+
path: "/v1/sandboxes/{sandbox_id}/files",
|
|
3565
|
+
pathParams: ["sandbox_id"],
|
|
3566
|
+
scope: "sandboxes:run",
|
|
3567
|
+
servedBy: "node",
|
|
3568
|
+
idempotent: false,
|
|
3569
|
+
},
|
|
3570
|
+
visionAct: {
|
|
3571
|
+
method: "POST",
|
|
3572
|
+
path: "/v1/vision/sessions/{session_id}/act",
|
|
3573
|
+
pathParams: ["session_id"],
|
|
3574
|
+
scope: "vision:run",
|
|
3575
|
+
servedBy: "node",
|
|
3576
|
+
idempotent: false,
|
|
3577
|
+
},
|
|
3578
|
+
visionCancelBatch: {
|
|
3579
|
+
method: "POST",
|
|
3580
|
+
path: "/v1/vision/batches/{batch_id}/cancel",
|
|
3581
|
+
pathParams: ["batch_id"],
|
|
3582
|
+
scope: "vision:run",
|
|
3583
|
+
servedBy: "node",
|
|
3584
|
+
idempotent: false,
|
|
3585
|
+
},
|
|
3586
|
+
visionCancelCrawl: {
|
|
3587
|
+
method: "POST",
|
|
3588
|
+
path: "/v1/vision/crawls/{crawl_id}/cancel",
|
|
3589
|
+
pathParams: ["crawl_id"],
|
|
3590
|
+
scope: "vision:run",
|
|
3591
|
+
servedBy: "node",
|
|
3592
|
+
idempotent: false,
|
|
3593
|
+
},
|
|
3594
|
+
visionCloseSession: {
|
|
3595
|
+
method: "DELETE",
|
|
3596
|
+
path: "/v1/vision/sessions/{session_id}",
|
|
3597
|
+
pathParams: ["session_id"],
|
|
3598
|
+
scope: "vision:write",
|
|
3599
|
+
servedBy: "node",
|
|
3600
|
+
idempotent: false,
|
|
3601
|
+
},
|
|
3602
|
+
visionCreateBatch: {
|
|
3603
|
+
method: "POST",
|
|
3604
|
+
path: "/v1/vision/batches",
|
|
3605
|
+
pathParams: [],
|
|
3606
|
+
scope: "vision:run",
|
|
3607
|
+
servedBy: "node",
|
|
3608
|
+
idempotent: true,
|
|
3609
|
+
},
|
|
3610
|
+
visionCreateCrawl: {
|
|
3611
|
+
method: "POST",
|
|
3612
|
+
path: "/v1/vision/crawls",
|
|
3613
|
+
pathParams: [],
|
|
3614
|
+
scope: "vision:run",
|
|
3615
|
+
servedBy: "node",
|
|
3616
|
+
idempotent: true,
|
|
3617
|
+
},
|
|
3618
|
+
visionCreateSession: {
|
|
3619
|
+
method: "POST",
|
|
3620
|
+
path: "/v1/vision/sessions",
|
|
3621
|
+
pathParams: [],
|
|
3622
|
+
scope: "vision:write",
|
|
3623
|
+
servedBy: "node",
|
|
3624
|
+
idempotent: true,
|
|
3625
|
+
},
|
|
3626
|
+
visionDeleteProfile: {
|
|
3627
|
+
method: "DELETE",
|
|
3628
|
+
path: "/v1/vision/profiles/{profile_id}",
|
|
3629
|
+
pathParams: ["profile_id"],
|
|
3630
|
+
scope: "vision:write",
|
|
3631
|
+
servedBy: "node",
|
|
3632
|
+
idempotent: false,
|
|
3633
|
+
},
|
|
3634
|
+
visionGetBatch: {
|
|
3635
|
+
method: "GET",
|
|
3636
|
+
path: "/v1/vision/batches/{batch_id}",
|
|
3637
|
+
pathParams: ["batch_id"],
|
|
3638
|
+
scope: "vision:read",
|
|
3639
|
+
servedBy: "node",
|
|
3640
|
+
idempotent: false,
|
|
3641
|
+
},
|
|
3642
|
+
visionGetCrawl: {
|
|
3643
|
+
method: "GET",
|
|
3644
|
+
path: "/v1/vision/crawls/{crawl_id}",
|
|
3645
|
+
pathParams: ["crawl_id"],
|
|
3646
|
+
scope: "vision:read",
|
|
3647
|
+
servedBy: "node",
|
|
3648
|
+
idempotent: false,
|
|
3649
|
+
},
|
|
3650
|
+
visionGetProfile: {
|
|
3651
|
+
method: "GET",
|
|
3652
|
+
path: "/v1/vision/profiles/{profile_id}",
|
|
3653
|
+
pathParams: ["profile_id"],
|
|
3654
|
+
scope: "vision:read",
|
|
3655
|
+
servedBy: "node",
|
|
3656
|
+
idempotent: false,
|
|
3657
|
+
},
|
|
3658
|
+
visionGetSession: {
|
|
3659
|
+
method: "GET",
|
|
3660
|
+
path: "/v1/vision/sessions/{session_id}",
|
|
3661
|
+
pathParams: ["session_id"],
|
|
3662
|
+
scope: "vision:read",
|
|
3663
|
+
servedBy: "node",
|
|
3664
|
+
idempotent: false,
|
|
3665
|
+
},
|
|
3666
|
+
visionListBatchPages: {
|
|
3667
|
+
method: "GET",
|
|
3668
|
+
path: "/v1/vision/batches/{batch_id}/pages",
|
|
3669
|
+
pathParams: ["batch_id"],
|
|
3670
|
+
scope: "vision:read",
|
|
3671
|
+
servedBy: "node",
|
|
3672
|
+
idempotent: false,
|
|
3673
|
+
},
|
|
3674
|
+
visionListCrawlPages: {
|
|
3675
|
+
method: "GET",
|
|
3676
|
+
path: "/v1/vision/crawls/{crawl_id}/pages",
|
|
3677
|
+
pathParams: ["crawl_id"],
|
|
3678
|
+
scope: "vision:read",
|
|
3679
|
+
servedBy: "node",
|
|
3680
|
+
idempotent: false,
|
|
3681
|
+
},
|
|
3682
|
+
visionListProfiles: {
|
|
3683
|
+
method: "GET",
|
|
3684
|
+
path: "/v1/vision/profiles",
|
|
3685
|
+
pathParams: [],
|
|
3686
|
+
scope: "vision:read",
|
|
3687
|
+
servedBy: "node",
|
|
3688
|
+
idempotent: false,
|
|
3689
|
+
},
|
|
3690
|
+
visionListSessions: {
|
|
3691
|
+
method: "GET",
|
|
3692
|
+
path: "/v1/vision/sessions",
|
|
3693
|
+
pathParams: [],
|
|
3694
|
+
scope: "vision:read",
|
|
3695
|
+
servedBy: "node",
|
|
3696
|
+
idempotent: false,
|
|
3697
|
+
},
|
|
3698
|
+
visionMap: {
|
|
3699
|
+
method: "POST",
|
|
3700
|
+
path: "/v1/vision/map",
|
|
3701
|
+
pathParams: [],
|
|
3702
|
+
scope: "vision:run",
|
|
3703
|
+
servedBy: "node",
|
|
3704
|
+
idempotent: false,
|
|
3705
|
+
},
|
|
3706
|
+
visionSaveSessionProfile: {
|
|
3707
|
+
method: "POST",
|
|
3708
|
+
path: "/v1/vision/sessions/{session_id}/profile",
|
|
3709
|
+
pathParams: ["session_id"],
|
|
3710
|
+
scope: "vision:write",
|
|
3711
|
+
servedBy: "node",
|
|
3712
|
+
idempotent: false,
|
|
3713
|
+
},
|
|
3714
|
+
visionScrape: {
|
|
3715
|
+
method: "POST",
|
|
3716
|
+
path: "/v1/vision/scrape",
|
|
3717
|
+
pathParams: [],
|
|
3718
|
+
scope: "vision:run",
|
|
3719
|
+
servedBy: "node",
|
|
3720
|
+
idempotent: false,
|
|
3721
|
+
},
|
|
3722
|
+
visionSearch: {
|
|
3723
|
+
method: "POST",
|
|
3724
|
+
path: "/v1/vision/search",
|
|
3725
|
+
pathParams: [],
|
|
3726
|
+
scope: "vision:run",
|
|
3727
|
+
servedBy: "node",
|
|
3728
|
+
idempotent: false,
|
|
3729
|
+
},
|
|
3730
|
+
visionUpdateProfile: {
|
|
3731
|
+
method: "PATCH",
|
|
3732
|
+
path: "/v1/vision/profiles/{profile_id}",
|
|
3733
|
+
pathParams: ["profile_id"],
|
|
3734
|
+
scope: "vision:write",
|
|
3735
|
+
servedBy: "node",
|
|
3736
|
+
idempotent: false,
|
|
3737
|
+
},
|
|
3738
|
+
webhooksListDeliveries: {
|
|
3739
|
+
method: "GET",
|
|
3740
|
+
path: "/v1/webhooks/deliveries",
|
|
3741
|
+
pathParams: [],
|
|
3742
|
+
scope: "platform:read",
|
|
3743
|
+
servedBy: "node",
|
|
3744
|
+
idempotent: false,
|
|
3745
|
+
},
|
|
3746
|
+
webhooksSendTest: {
|
|
3747
|
+
method: "POST",
|
|
3748
|
+
path: "/v1/webhooks/test",
|
|
3749
|
+
pathParams: [],
|
|
3750
|
+
scope: "platform:write",
|
|
3751
|
+
servedBy: "node",
|
|
3752
|
+
idempotent: false,
|
|
3753
|
+
},
|
|
3754
|
+
};
|
|
3755
|
+
//# sourceMappingURL=table.gen.js.map
|