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