@b3os/mcp 0.1.0 → 0.2.0

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