@b3os/mcp 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -4
- package/dist/handlers/_common.d.ts +13 -0
- package/dist/handlers/_common.js +12 -0
- package/dist/handlers/_common.js.map +1 -1
- package/dist/handlers/platform.js +15 -3
- package/dist/handlers/platform.js.map +1 -1
- package/dist/handlers/render.js +25 -0
- package/dist/handlers/render.js.map +1 -1
- package/dist/handlers/routines.js +21 -0
- package/dist/handlers/routines.js.map +1 -1
- package/dist/handlers/sandboxes.js +232 -15
- package/dist/handlers/sandboxes.js.map +1 -1
- package/dist/handlers/vision.d.ts +1 -6
- package/dist/handlers/vision.js +1 -13
- package/dist/handlers/vision.js.map +1 -1
- package/dist/server.d.ts +4 -0
- package/dist/server.js +4 -1
- package/dist/server.js.map +1 -1
- package/dist/stdio.d.ts +8 -0
- package/dist/stdio.js +18 -1
- package/dist/stdio.js.map +1 -1
- package/dist/table.gen.js +899 -2
- package/dist/table.gen.js.map +1 -1
- package/package.json +2 -2
- package/src/handlers/_common.ts +16 -0
- package/src/handlers/platform.ts +20 -3
- package/src/handlers/render.ts +26 -0
- package/src/handlers/routines.ts +22 -0
- package/src/handlers/sandboxes.ts +259 -11
- package/src/handlers/vision.ts +1 -11
- package/src/server.ts +7 -1
- package/src/stdio.ts +21 -1
- package/src/table.gen.ts +916 -2
- package/table/requests.json +227 -0
- package/table/table.json +944 -25
- package/table/tools/agents.mjs +3 -1
- package/table/tools/render.mjs +39 -0
- package/table/tools/routines.mjs +18 -0
- package/table/tools/sandboxes.mjs +167 -1
package/dist/table.gen.js
CHANGED
|
@@ -756,7 +756,7 @@ export const MCP_TOOLS = [
|
|
|
756
756
|
template: {
|
|
757
757
|
type: "string",
|
|
758
758
|
default: "base",
|
|
759
|
-
description: "Template name or `tpl_` ID: a node template (`GET /v1/sandboxes/templates`) or one of your project's image templates (an image's `template`
|
|
759
|
+
description: "Template name or `tpl_` ID: a node template (`GET /v1/sandboxes/templates`) or one of your project's image templates (an image's `template`, or its `name`.",
|
|
760
760
|
},
|
|
761
761
|
snapshot: {
|
|
762
762
|
type: "string",
|
|
@@ -2230,6 +2230,694 @@ export const MCP_TOOLS = [
|
|
|
2230
2230
|
bodyDefaults: {},
|
|
2231
2231
|
queryDefaults: {},
|
|
2232
2232
|
},
|
|
2233
|
+
{
|
|
2234
|
+
name: "desktop_create",
|
|
2235
|
+
group: "desktop",
|
|
2236
|
+
title: "Create a desktop",
|
|
2237
|
+
description: "Start a desktop: a sandbox of the desktop template, a Linux desktop with Chrome on a 1280x800 screen, for computer use. Returns its id. Look at it with desktop_screenshot, drive its mouse and keyboard with desktop_act, and run shell commands in it with desktop_run. It stops after timeout_s seconds, or pauses with on_idle: pause. Running and paused desktops count against your limits, so call desktop_delete on each desktop you created once the task is done; desktop_room says how many more fit. Logins, captchas and payments are for a person: stop and ask the user.",
|
|
2238
|
+
annotations: {
|
|
2239
|
+
title: "Create a desktop",
|
|
2240
|
+
readOnlyHint: false,
|
|
2241
|
+
destructiveHint: false,
|
|
2242
|
+
openWorldHint: false,
|
|
2243
|
+
},
|
|
2244
|
+
inputSchema: {
|
|
2245
|
+
type: "object",
|
|
2246
|
+
properties: {
|
|
2247
|
+
vcpu: {
|
|
2248
|
+
type: "integer",
|
|
2249
|
+
minimum: 1,
|
|
2250
|
+
description: "Virtual CPUs; defaults to the template's (`defaults.vcpu`), at most your plan's `sandboxes.vcpu_max`.",
|
|
2251
|
+
},
|
|
2252
|
+
memory_mib: {
|
|
2253
|
+
type: "integer",
|
|
2254
|
+
minimum: 128,
|
|
2255
|
+
description: "Memory; defaults to the template's (`defaults.memory_mib`), at most your plan's `sandboxes.memory_max`.",
|
|
2256
|
+
},
|
|
2257
|
+
timeout_s: {
|
|
2258
|
+
type: "integer",
|
|
2259
|
+
minimum: 10,
|
|
2260
|
+
maximum: 86400,
|
|
2261
|
+
default: 300,
|
|
2262
|
+
description: "Lifetime in seconds from creation (or from the last `POST …/timeout`), capped by your plan.",
|
|
2263
|
+
},
|
|
2264
|
+
on_idle: {
|
|
2265
|
+
type: "string",
|
|
2266
|
+
enum: ["stop", "pause"],
|
|
2267
|
+
default: "stop",
|
|
2268
|
+
description: "What happens at `expires_at`. `stop` destroys the sandbox; `pause` pauses it so a later resume (after extending the timeout) continues it.",
|
|
2269
|
+
},
|
|
2270
|
+
metadata: {
|
|
2271
|
+
type: "object",
|
|
2272
|
+
description: "Up to 16 string key-value pairs for your own use.",
|
|
2273
|
+
},
|
|
2274
|
+
},
|
|
2275
|
+
additionalProperties: false,
|
|
2276
|
+
},
|
|
2277
|
+
operationId: "sandboxesCreateSandbox",
|
|
2278
|
+
method: "POST",
|
|
2279
|
+
path: "/v1/sandboxes",
|
|
2280
|
+
scope: "sandboxes:write",
|
|
2281
|
+
servedBy: "node",
|
|
2282
|
+
stage: "preview",
|
|
2283
|
+
flag: "sandboxes.desktop",
|
|
2284
|
+
pathParams: [],
|
|
2285
|
+
queryParams: [],
|
|
2286
|
+
body: "json",
|
|
2287
|
+
bodyFields: ["vcpu", "memory_mib", "timeout_s", "on_idle", "metadata"],
|
|
2288
|
+
rawFields: [],
|
|
2289
|
+
toolArgs: [],
|
|
2290
|
+
bodyDefaults: {
|
|
2291
|
+
template: "desktop",
|
|
2292
|
+
},
|
|
2293
|
+
queryDefaults: {},
|
|
2294
|
+
},
|
|
2295
|
+
{
|
|
2296
|
+
name: "desktop_list",
|
|
2297
|
+
group: "desktop",
|
|
2298
|
+
title: "List desktops",
|
|
2299
|
+
description: "List this project's desktops (sandboxes of the desktop template), newest first: each one's id, status, size and expiry. status filters them (running, paused, ...).",
|
|
2300
|
+
annotations: {
|
|
2301
|
+
title: "List desktops",
|
|
2302
|
+
readOnlyHint: true,
|
|
2303
|
+
openWorldHint: false,
|
|
2304
|
+
},
|
|
2305
|
+
inputSchema: {
|
|
2306
|
+
type: "object",
|
|
2307
|
+
properties: {
|
|
2308
|
+
status: {
|
|
2309
|
+
type: "string",
|
|
2310
|
+
description: "Only sandboxes with this status.",
|
|
2311
|
+
enum: ["running", "paused", "stopped", "failed", "hibernated"],
|
|
2312
|
+
},
|
|
2313
|
+
},
|
|
2314
|
+
additionalProperties: false,
|
|
2315
|
+
},
|
|
2316
|
+
operationId: "sandboxesListSandboxes",
|
|
2317
|
+
method: "GET",
|
|
2318
|
+
path: "/v1/sandboxes",
|
|
2319
|
+
scope: "sandboxes:read",
|
|
2320
|
+
servedBy: "node",
|
|
2321
|
+
stage: "preview",
|
|
2322
|
+
flag: "sandboxes.desktop",
|
|
2323
|
+
pathParams: [],
|
|
2324
|
+
queryParams: [
|
|
2325
|
+
{
|
|
2326
|
+
name: "status",
|
|
2327
|
+
},
|
|
2328
|
+
],
|
|
2329
|
+
body: "none",
|
|
2330
|
+
bodyFields: [],
|
|
2331
|
+
rawFields: [],
|
|
2332
|
+
toolArgs: [],
|
|
2333
|
+
bodyDefaults: {},
|
|
2334
|
+
queryDefaults: {},
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
name: "desktop_delete",
|
|
2338
|
+
group: "desktop",
|
|
2339
|
+
title: "Delete a desktop",
|
|
2340
|
+
description: "Stop a desktop and destroy its memory and disk. Delete each desktop you created once the task is done: paused desktops still count against your limits.",
|
|
2341
|
+
annotations: {
|
|
2342
|
+
title: "Delete a desktop",
|
|
2343
|
+
readOnlyHint: false,
|
|
2344
|
+
destructiveHint: true,
|
|
2345
|
+
idempotentHint: true,
|
|
2346
|
+
openWorldHint: false,
|
|
2347
|
+
},
|
|
2348
|
+
inputSchema: {
|
|
2349
|
+
type: "object",
|
|
2350
|
+
properties: {
|
|
2351
|
+
sandbox_id: {
|
|
2352
|
+
type: "string",
|
|
2353
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2354
|
+
description: "The desktop's sbx_… id, from desktop_create or desktop_list.",
|
|
2355
|
+
},
|
|
2356
|
+
},
|
|
2357
|
+
required: ["sandbox_id"],
|
|
2358
|
+
additionalProperties: false,
|
|
2359
|
+
},
|
|
2360
|
+
operationId: "sandboxesDeleteSandbox",
|
|
2361
|
+
method: "DELETE",
|
|
2362
|
+
path: "/v1/sandboxes/{sandbox_id}",
|
|
2363
|
+
scope: "sandboxes:write",
|
|
2364
|
+
servedBy: "node",
|
|
2365
|
+
stage: "preview",
|
|
2366
|
+
flag: "sandboxes.desktop",
|
|
2367
|
+
pathParams: ["sandbox_id"],
|
|
2368
|
+
queryParams: [],
|
|
2369
|
+
body: "none",
|
|
2370
|
+
bodyFields: [],
|
|
2371
|
+
rawFields: [],
|
|
2372
|
+
toolArgs: [],
|
|
2373
|
+
bodyDefaults: {},
|
|
2374
|
+
queryDefaults: {},
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
name: "desktop_room",
|
|
2378
|
+
group: "desktop",
|
|
2379
|
+
title: "Check room for desktops",
|
|
2380
|
+
description: "Say how many more desktops can be created now and which limit stops the next one (your organization's sandboxes, its desktops, or the node's memory), so you can plan a wave of desktop_create calls instead of meeting 429 or 503 answers. Paused desktops count. It is a reading, not a reservation.",
|
|
2381
|
+
annotations: {
|
|
2382
|
+
title: "Check room for desktops",
|
|
2383
|
+
readOnlyHint: true,
|
|
2384
|
+
openWorldHint: false,
|
|
2385
|
+
},
|
|
2386
|
+
inputSchema: {
|
|
2387
|
+
type: "object",
|
|
2388
|
+
properties: {
|
|
2389
|
+
vcpu: {
|
|
2390
|
+
type: "integer",
|
|
2391
|
+
minimum: 1,
|
|
2392
|
+
description: "vCPUs of each sandbox; the template's default when left out.",
|
|
2393
|
+
},
|
|
2394
|
+
memory_mib: {
|
|
2395
|
+
type: "integer",
|
|
2396
|
+
minimum: 128,
|
|
2397
|
+
description: "Memory of each sandbox, MiB; the template's default when left out.",
|
|
2398
|
+
},
|
|
2399
|
+
},
|
|
2400
|
+
additionalProperties: false,
|
|
2401
|
+
},
|
|
2402
|
+
operationId: "sandboxesGetCapacity",
|
|
2403
|
+
method: "GET",
|
|
2404
|
+
path: "/v1/sandboxes/capacity",
|
|
2405
|
+
scope: "sandboxes:read",
|
|
2406
|
+
servedBy: "node",
|
|
2407
|
+
stage: "preview",
|
|
2408
|
+
flag: "sandboxes.desktop",
|
|
2409
|
+
pathParams: [],
|
|
2410
|
+
queryParams: [
|
|
2411
|
+
{
|
|
2412
|
+
name: "vcpu",
|
|
2413
|
+
},
|
|
2414
|
+
{
|
|
2415
|
+
name: "memory_mib",
|
|
2416
|
+
},
|
|
2417
|
+
],
|
|
2418
|
+
body: "none",
|
|
2419
|
+
bodyFields: [],
|
|
2420
|
+
rawFields: [],
|
|
2421
|
+
toolArgs: [],
|
|
2422
|
+
bodyDefaults: {},
|
|
2423
|
+
queryDefaults: {
|
|
2424
|
+
template: "desktop",
|
|
2425
|
+
},
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
name: "desktop_screenshot",
|
|
2429
|
+
group: "desktop",
|
|
2430
|
+
title: "Take a desktop screenshot",
|
|
2431
|
+
description: "Take a screenshot of a desktop's whole 1280x800 screen and return it as an image (JPEG at quality 80 unless format or quality says otherwise). The x and y of desktop_act are pixels of this image from its top left. desktop_act already returns a screenshot after its actions; use this to look without acting.",
|
|
2432
|
+
annotations: {
|
|
2433
|
+
title: "Take a desktop screenshot",
|
|
2434
|
+
readOnlyHint: true,
|
|
2435
|
+
openWorldHint: false,
|
|
2436
|
+
},
|
|
2437
|
+
inputSchema: {
|
|
2438
|
+
type: "object",
|
|
2439
|
+
properties: {
|
|
2440
|
+
sandbox_id: {
|
|
2441
|
+
type: "string",
|
|
2442
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2443
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
2444
|
+
},
|
|
2445
|
+
format: {
|
|
2446
|
+
type: "string",
|
|
2447
|
+
enum: ["png", "jpeg"],
|
|
2448
|
+
description: "`png` or `jpeg`. Without it: the image type `Accept` names, else `jpeg`.",
|
|
2449
|
+
},
|
|
2450
|
+
quality: {
|
|
2451
|
+
type: "integer",
|
|
2452
|
+
minimum: 1,
|
|
2453
|
+
maximum: 100,
|
|
2454
|
+
default: 80,
|
|
2455
|
+
description: "JPEG quality, 1 to 100.",
|
|
2456
|
+
},
|
|
2457
|
+
},
|
|
2458
|
+
required: ["sandbox_id"],
|
|
2459
|
+
additionalProperties: false,
|
|
2460
|
+
},
|
|
2461
|
+
operationId: "sandboxesComputerScreenshot",
|
|
2462
|
+
method: "GET",
|
|
2463
|
+
path: "/v1/sandboxes/{sandbox_id}/computer/screenshot",
|
|
2464
|
+
scope: "sandboxes:read",
|
|
2465
|
+
servedBy: "node",
|
|
2466
|
+
stage: "preview",
|
|
2467
|
+
flag: "sandboxes.desktop",
|
|
2468
|
+
pathParams: ["sandbox_id"],
|
|
2469
|
+
queryParams: [
|
|
2470
|
+
{
|
|
2471
|
+
name: "format",
|
|
2472
|
+
},
|
|
2473
|
+
{
|
|
2474
|
+
name: "quality",
|
|
2475
|
+
},
|
|
2476
|
+
],
|
|
2477
|
+
body: "none",
|
|
2478
|
+
bodyFields: [],
|
|
2479
|
+
rawFields: [],
|
|
2480
|
+
toolArgs: [],
|
|
2481
|
+
bodyDefaults: {},
|
|
2482
|
+
queryDefaults: {},
|
|
2483
|
+
},
|
|
2484
|
+
{
|
|
2485
|
+
name: "desktop_act",
|
|
2486
|
+
group: "desktop",
|
|
2487
|
+
title: "Use a desktop's mouse and keyboard",
|
|
2488
|
+
description: 'Send mouse and keyboard input to a desktop and see the result: runs 1 to 32 actions in order, waits for the screen to settle, and returns one line per action and a screenshot (JPEG 80; screenshot: false for none). The screen is 1280x800 and x, y are pixels from its top left. Each action is {action, ...}: click {x?, y?, button?, count? (2 double, 3 triple)}, move {x, y}, drag {path: [[x, y], ...]}, scroll {x?, y?, direction: up|down|left|right, amount?}, type {text}, key {keys: "ctrl+l", "Return"}, mouse_down and mouse_up {x?, y?, button?}, key_down and key_up {key}, wait {ms}, cursor_position. An action without x and y acts at the pointer. A failed action stops the batch: the ones after it did not run. Look at the screenshot before you send an action again: a click, text or key that landed has run once already. Logins, captchas and payments are for a person: stop and ask the user to handle them; never try to solve or get around one.',
|
|
2489
|
+
annotations: {
|
|
2490
|
+
title: "Use a desktop's mouse and keyboard",
|
|
2491
|
+
readOnlyHint: false,
|
|
2492
|
+
destructiveHint: true,
|
|
2493
|
+
openWorldHint: true,
|
|
2494
|
+
},
|
|
2495
|
+
inputSchema: {
|
|
2496
|
+
type: "object",
|
|
2497
|
+
properties: {
|
|
2498
|
+
sandbox_id: {
|
|
2499
|
+
type: "string",
|
|
2500
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2501
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
2502
|
+
},
|
|
2503
|
+
actions: {
|
|
2504
|
+
type: "array",
|
|
2505
|
+
items: {
|
|
2506
|
+
description: "One mouse or keyboard action; `action` selects it.",
|
|
2507
|
+
oneOf: [
|
|
2508
|
+
{
|
|
2509
|
+
type: "object",
|
|
2510
|
+
required: ["action"],
|
|
2511
|
+
description: "Click at `x`, `y` (both or neither; neither clicks at the pointer).",
|
|
2512
|
+
properties: {
|
|
2513
|
+
action: {
|
|
2514
|
+
type: "string",
|
|
2515
|
+
const: "click",
|
|
2516
|
+
},
|
|
2517
|
+
x: {
|
|
2518
|
+
type: "integer",
|
|
2519
|
+
minimum: 0,
|
|
2520
|
+
maximum: 32767,
|
|
2521
|
+
description: "Pixels from the left (`x`) or the top (`y`); within the screen.",
|
|
2522
|
+
},
|
|
2523
|
+
y: {
|
|
2524
|
+
type: "integer",
|
|
2525
|
+
minimum: 0,
|
|
2526
|
+
maximum: 32767,
|
|
2527
|
+
description: "Pixels from the left (`x`) or the top (`y`); within the screen.",
|
|
2528
|
+
},
|
|
2529
|
+
button: {
|
|
2530
|
+
type: "string",
|
|
2531
|
+
enum: ["left", "right", "middle"],
|
|
2532
|
+
default: "left",
|
|
2533
|
+
},
|
|
2534
|
+
count: {
|
|
2535
|
+
type: "integer",
|
|
2536
|
+
minimum: 1,
|
|
2537
|
+
maximum: 3,
|
|
2538
|
+
default: 1,
|
|
2539
|
+
},
|
|
2540
|
+
},
|
|
2541
|
+
},
|
|
2542
|
+
{
|
|
2543
|
+
type: "object",
|
|
2544
|
+
required: ["action", "x", "y"],
|
|
2545
|
+
description: "Move the pointer.",
|
|
2546
|
+
properties: {
|
|
2547
|
+
action: {
|
|
2548
|
+
type: "string",
|
|
2549
|
+
const: "move",
|
|
2550
|
+
},
|
|
2551
|
+
x: {
|
|
2552
|
+
type: "integer",
|
|
2553
|
+
minimum: 0,
|
|
2554
|
+
maximum: 32767,
|
|
2555
|
+
description: "Pixels from the left (`x`) or the top (`y`); within the screen.",
|
|
2556
|
+
},
|
|
2557
|
+
y: {
|
|
2558
|
+
type: "integer",
|
|
2559
|
+
minimum: 0,
|
|
2560
|
+
maximum: 32767,
|
|
2561
|
+
description: "Pixels from the left (`x`) or the top (`y`); within the screen.",
|
|
2562
|
+
},
|
|
2563
|
+
},
|
|
2564
|
+
},
|
|
2565
|
+
{
|
|
2566
|
+
type: "object",
|
|
2567
|
+
required: ["action"],
|
|
2568
|
+
description: "Press a button, at `x`, `y` or at the pointer, and hold it.",
|
|
2569
|
+
properties: {
|
|
2570
|
+
action: {
|
|
2571
|
+
type: "string",
|
|
2572
|
+
const: "mouse_down",
|
|
2573
|
+
},
|
|
2574
|
+
x: {
|
|
2575
|
+
type: "integer",
|
|
2576
|
+
minimum: 0,
|
|
2577
|
+
maximum: 32767,
|
|
2578
|
+
description: "Pixels from the left (`x`) or the top (`y`); within the screen.",
|
|
2579
|
+
},
|
|
2580
|
+
y: {
|
|
2581
|
+
type: "integer",
|
|
2582
|
+
minimum: 0,
|
|
2583
|
+
maximum: 32767,
|
|
2584
|
+
description: "Pixels from the left (`x`) or the top (`y`); within the screen.",
|
|
2585
|
+
},
|
|
2586
|
+
button: {
|
|
2587
|
+
type: "string",
|
|
2588
|
+
enum: ["left", "right", "middle"],
|
|
2589
|
+
default: "left",
|
|
2590
|
+
},
|
|
2591
|
+
},
|
|
2592
|
+
},
|
|
2593
|
+
{
|
|
2594
|
+
type: "object",
|
|
2595
|
+
required: ["action"],
|
|
2596
|
+
description: "Release a button, at `x`, `y` or at the pointer.",
|
|
2597
|
+
properties: {
|
|
2598
|
+
action: {
|
|
2599
|
+
type: "string",
|
|
2600
|
+
const: "mouse_up",
|
|
2601
|
+
},
|
|
2602
|
+
x: {
|
|
2603
|
+
type: "integer",
|
|
2604
|
+
minimum: 0,
|
|
2605
|
+
maximum: 32767,
|
|
2606
|
+
description: "Pixels from the left (`x`) or the top (`y`); within the screen.",
|
|
2607
|
+
},
|
|
2608
|
+
y: {
|
|
2609
|
+
type: "integer",
|
|
2610
|
+
minimum: 0,
|
|
2611
|
+
maximum: 32767,
|
|
2612
|
+
description: "Pixels from the left (`x`) or the top (`y`); within the screen.",
|
|
2613
|
+
},
|
|
2614
|
+
button: {
|
|
2615
|
+
type: "string",
|
|
2616
|
+
enum: ["left", "right", "middle"],
|
|
2617
|
+
default: "left",
|
|
2618
|
+
},
|
|
2619
|
+
},
|
|
2620
|
+
},
|
|
2621
|
+
{
|
|
2622
|
+
type: "object",
|
|
2623
|
+
required: ["action", "path"],
|
|
2624
|
+
description: "Press the button at the first point, move through the others and release at t...",
|
|
2625
|
+
properties: {
|
|
2626
|
+
action: {
|
|
2627
|
+
type: "string",
|
|
2628
|
+
const: "drag",
|
|
2629
|
+
},
|
|
2630
|
+
path: {
|
|
2631
|
+
type: "array",
|
|
2632
|
+
description: "`[[x, y], ...]`, 2 to 64 points.",
|
|
2633
|
+
},
|
|
2634
|
+
button: {
|
|
2635
|
+
type: "string",
|
|
2636
|
+
enum: ["left", "right", "middle"],
|
|
2637
|
+
default: "left",
|
|
2638
|
+
},
|
|
2639
|
+
},
|
|
2640
|
+
},
|
|
2641
|
+
{
|
|
2642
|
+
type: "object",
|
|
2643
|
+
required: ["action", "direction"],
|
|
2644
|
+
description: "Turn the wheel `amount` clicks, at `x`, `y` or at the pointer.",
|
|
2645
|
+
properties: {
|
|
2646
|
+
action: {
|
|
2647
|
+
type: "string",
|
|
2648
|
+
const: "scroll",
|
|
2649
|
+
},
|
|
2650
|
+
x: {
|
|
2651
|
+
type: "integer",
|
|
2652
|
+
minimum: 0,
|
|
2653
|
+
maximum: 32767,
|
|
2654
|
+
description: "Pixels from the left (`x`) or the top (`y`); within the screen.",
|
|
2655
|
+
},
|
|
2656
|
+
y: {
|
|
2657
|
+
type: "integer",
|
|
2658
|
+
minimum: 0,
|
|
2659
|
+
maximum: 32767,
|
|
2660
|
+
description: "Pixels from the left (`x`) or the top (`y`); within the screen.",
|
|
2661
|
+
},
|
|
2662
|
+
direction: {
|
|
2663
|
+
type: "string",
|
|
2664
|
+
enum: ["up", "down", "left", "right"],
|
|
2665
|
+
},
|
|
2666
|
+
amount: {
|
|
2667
|
+
type: "integer",
|
|
2668
|
+
minimum: 1,
|
|
2669
|
+
maximum: 50,
|
|
2670
|
+
default: 1,
|
|
2671
|
+
},
|
|
2672
|
+
},
|
|
2673
|
+
},
|
|
2674
|
+
{
|
|
2675
|
+
type: "object",
|
|
2676
|
+
required: ["action", "text"],
|
|
2677
|
+
description: "Type the text, as a keyboard would (newline and tab included).",
|
|
2678
|
+
properties: {
|
|
2679
|
+
action: {
|
|
2680
|
+
type: "string",
|
|
2681
|
+
const: "type",
|
|
2682
|
+
},
|
|
2683
|
+
text: {
|
|
2684
|
+
type: "string",
|
|
2685
|
+
description: "At most 8,192 bytes of UTF-8.",
|
|
2686
|
+
},
|
|
2687
|
+
},
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
type: "object",
|
|
2691
|
+
required: ["action", "keys"],
|
|
2692
|
+
description: "Press and release a key or a chord of xdotool key names joined by `+`.",
|
|
2693
|
+
properties: {
|
|
2694
|
+
action: {
|
|
2695
|
+
type: "string",
|
|
2696
|
+
const: "key",
|
|
2697
|
+
},
|
|
2698
|
+
keys: {
|
|
2699
|
+
type: "string",
|
|
2700
|
+
},
|
|
2701
|
+
},
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
type: "object",
|
|
2705
|
+
required: ["action", "key"],
|
|
2706
|
+
description: "Press one key and hold it until `key_up` (or the end of a batch that fails).",
|
|
2707
|
+
properties: {
|
|
2708
|
+
action: {
|
|
2709
|
+
type: "string",
|
|
2710
|
+
const: "key_down",
|
|
2711
|
+
},
|
|
2712
|
+
key: {
|
|
2713
|
+
type: "string",
|
|
2714
|
+
},
|
|
2715
|
+
},
|
|
2716
|
+
},
|
|
2717
|
+
{
|
|
2718
|
+
type: "object",
|
|
2719
|
+
required: ["action", "key"],
|
|
2720
|
+
description: "Release a held key.",
|
|
2721
|
+
properties: {
|
|
2722
|
+
action: {
|
|
2723
|
+
type: "string",
|
|
2724
|
+
const: "key_up",
|
|
2725
|
+
},
|
|
2726
|
+
key: {
|
|
2727
|
+
type: "string",
|
|
2728
|
+
},
|
|
2729
|
+
},
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
type: "object",
|
|
2733
|
+
required: ["action", "ms"],
|
|
2734
|
+
properties: {
|
|
2735
|
+
action: {
|
|
2736
|
+
type: "string",
|
|
2737
|
+
const: "wait",
|
|
2738
|
+
},
|
|
2739
|
+
ms: {
|
|
2740
|
+
type: "integer",
|
|
2741
|
+
minimum: 1,
|
|
2742
|
+
maximum: 10000,
|
|
2743
|
+
},
|
|
2744
|
+
},
|
|
2745
|
+
},
|
|
2746
|
+
{
|
|
2747
|
+
type: "object",
|
|
2748
|
+
required: ["action"],
|
|
2749
|
+
description: "Sends no input; the answer's `cursor` is the pointer's position.",
|
|
2750
|
+
properties: {
|
|
2751
|
+
action: {
|
|
2752
|
+
type: "string",
|
|
2753
|
+
const: "cursor_position",
|
|
2754
|
+
},
|
|
2755
|
+
},
|
|
2756
|
+
},
|
|
2757
|
+
],
|
|
2758
|
+
discriminator: {
|
|
2759
|
+
propertyName: "action",
|
|
2760
|
+
mapping: {
|
|
2761
|
+
click: "#/components/schemas/ComputerClick",
|
|
2762
|
+
move: "#/components/schemas/ComputerMove",
|
|
2763
|
+
mouse_down: "#/components/schemas/ComputerMouseDown",
|
|
2764
|
+
mouse_up: "#/components/schemas/ComputerMouseUp",
|
|
2765
|
+
drag: "#/components/schemas/ComputerDrag",
|
|
2766
|
+
scroll: "#/components/schemas/ComputerScroll",
|
|
2767
|
+
type: "#/components/schemas/ComputerType",
|
|
2768
|
+
key: "#/components/schemas/ComputerKey",
|
|
2769
|
+
key_down: "#/components/schemas/ComputerKeyDown",
|
|
2770
|
+
key_up: "#/components/schemas/ComputerKeyUp",
|
|
2771
|
+
wait: "#/components/schemas/ComputerWait",
|
|
2772
|
+
cursor_position: "#/components/schemas/ComputerCursorPosition",
|
|
2773
|
+
},
|
|
2774
|
+
},
|
|
2775
|
+
},
|
|
2776
|
+
description: "Run in order, 1 to 32; each is {action, ...}: click, move, drag, scroll, type, key, mouse_down, mouse_up, key_down, key_up, wait or cursor_position. Their waits add up to at most 30,000 ms.",
|
|
2777
|
+
},
|
|
2778
|
+
screenshot: {
|
|
2779
|
+
type: ["object", "boolean"],
|
|
2780
|
+
properties: {
|
|
2781
|
+
format: {
|
|
2782
|
+
type: "string",
|
|
2783
|
+
enum: ["png", "jpeg"],
|
|
2784
|
+
},
|
|
2785
|
+
quality: {
|
|
2786
|
+
type: "integer",
|
|
2787
|
+
minimum: 1,
|
|
2788
|
+
maximum: 100,
|
|
2789
|
+
},
|
|
2790
|
+
},
|
|
2791
|
+
default: {
|
|
2792
|
+
format: "jpeg",
|
|
2793
|
+
quality: 80,
|
|
2794
|
+
},
|
|
2795
|
+
description: "The screenshot after the actions, {format, quality} (JPEG 80 when left out); false for none.",
|
|
2796
|
+
},
|
|
2797
|
+
settle: {
|
|
2798
|
+
type: ["object", "boolean"],
|
|
2799
|
+
properties: {
|
|
2800
|
+
quiet_ms: {
|
|
2801
|
+
type: "integer",
|
|
2802
|
+
minimum: 0,
|
|
2803
|
+
maximum: 1000,
|
|
2804
|
+
},
|
|
2805
|
+
max_ms: {
|
|
2806
|
+
type: "integer",
|
|
2807
|
+
minimum: 0,
|
|
2808
|
+
maximum: 5000,
|
|
2809
|
+
},
|
|
2810
|
+
},
|
|
2811
|
+
default: {
|
|
2812
|
+
quiet_ms: 80,
|
|
2813
|
+
max_ms: 1000,
|
|
2814
|
+
},
|
|
2815
|
+
description: "Before the screenshot, wait until the screen has not changed for quiet_ms, at most max_ms (80 and 1000 when left out); false for no wait.",
|
|
2816
|
+
},
|
|
2817
|
+
},
|
|
2818
|
+
required: ["sandbox_id", "actions"],
|
|
2819
|
+
additionalProperties: false,
|
|
2820
|
+
},
|
|
2821
|
+
operationId: "sandboxesComputerAct",
|
|
2822
|
+
method: "POST",
|
|
2823
|
+
path: "/v1/sandboxes/{sandbox_id}/computer/actions",
|
|
2824
|
+
scope: "sandboxes:run",
|
|
2825
|
+
servedBy: "node",
|
|
2826
|
+
stage: "preview",
|
|
2827
|
+
flag: "sandboxes.desktop",
|
|
2828
|
+
pathParams: ["sandbox_id"],
|
|
2829
|
+
queryParams: [],
|
|
2830
|
+
body: "json",
|
|
2831
|
+
bodyFields: ["actions", "screenshot", "settle"],
|
|
2832
|
+
rawFields: [],
|
|
2833
|
+
toolArgs: [],
|
|
2834
|
+
bodyDefaults: {},
|
|
2835
|
+
queryDefaults: {},
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
name: "desktop_run",
|
|
2839
|
+
group: "desktop",
|
|
2840
|
+
title: "Run a command on a desktop",
|
|
2841
|
+
description: "Run a shell command (a string, run with /bin/sh -c) or an argv array in a desktop and return its exit code, stdout and stderr. DISPLAY is set, so a command reaches the screen (xdotool, a script that opens a window). A paused desktop is resumed first. background: true returns at once with the process.",
|
|
2842
|
+
annotations: {
|
|
2843
|
+
title: "Run a command on a desktop",
|
|
2844
|
+
readOnlyHint: false,
|
|
2845
|
+
destructiveHint: true,
|
|
2846
|
+
openWorldHint: false,
|
|
2847
|
+
},
|
|
2848
|
+
inputSchema: {
|
|
2849
|
+
type: "object",
|
|
2850
|
+
properties: {
|
|
2851
|
+
sandbox_id: {
|
|
2852
|
+
type: "string",
|
|
2853
|
+
pattern: "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2854
|
+
description: "The sandbox ID (`sbx_…`).",
|
|
2855
|
+
},
|
|
2856
|
+
cmd: {
|
|
2857
|
+
description: "A shell command line (run with `/bin/sh -c`) or an argv array.",
|
|
2858
|
+
oneOf: [
|
|
2859
|
+
{
|
|
2860
|
+
type: "string",
|
|
2861
|
+
},
|
|
2862
|
+
{
|
|
2863
|
+
type: "array",
|
|
2864
|
+
items: {
|
|
2865
|
+
type: "string",
|
|
2866
|
+
},
|
|
2867
|
+
},
|
|
2868
|
+
],
|
|
2869
|
+
},
|
|
2870
|
+
cwd: {
|
|
2871
|
+
type: "string",
|
|
2872
|
+
default: "/workspace",
|
|
2873
|
+
},
|
|
2874
|
+
env: {
|
|
2875
|
+
type: "object",
|
|
2876
|
+
additionalProperties: {
|
|
2877
|
+
type: "string",
|
|
2878
|
+
},
|
|
2879
|
+
description: "Extra environment variables for this command.",
|
|
2880
|
+
},
|
|
2881
|
+
stdin: {
|
|
2882
|
+
type: "string",
|
|
2883
|
+
description: "Written to the command's standard input, which is then closed.",
|
|
2884
|
+
},
|
|
2885
|
+
timeout_ms: {
|
|
2886
|
+
type: "integer",
|
|
2887
|
+
minimum: 1,
|
|
2888
|
+
maximum: 3600000,
|
|
2889
|
+
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.",
|
|
2890
|
+
},
|
|
2891
|
+
background: {
|
|
2892
|
+
type: "boolean",
|
|
2893
|
+
default: false,
|
|
2894
|
+
description: "Return at once; read output from the logs stream.",
|
|
2895
|
+
},
|
|
2896
|
+
user: {
|
|
2897
|
+
type: "string",
|
|
2898
|
+
enum: ["user", "root"],
|
|
2899
|
+
default: "user",
|
|
2900
|
+
},
|
|
2901
|
+
},
|
|
2902
|
+
required: ["sandbox_id", "cmd"],
|
|
2903
|
+
additionalProperties: false,
|
|
2904
|
+
},
|
|
2905
|
+
operationId: "sandboxesExec",
|
|
2906
|
+
method: "POST",
|
|
2907
|
+
path: "/v1/sandboxes/{sandbox_id}/exec",
|
|
2908
|
+
scope: "sandboxes:run",
|
|
2909
|
+
servedBy: "node",
|
|
2910
|
+
stage: "preview",
|
|
2911
|
+
flag: "sandboxes.desktop",
|
|
2912
|
+
pathParams: ["sandbox_id"],
|
|
2913
|
+
queryParams: [],
|
|
2914
|
+
body: "json",
|
|
2915
|
+
bodyFields: ["cmd", "cwd", "env", "stdin", "timeout_ms", "background", "user"],
|
|
2916
|
+
rawFields: [],
|
|
2917
|
+
toolArgs: [],
|
|
2918
|
+
bodyDefaults: {},
|
|
2919
|
+
queryDefaults: {},
|
|
2920
|
+
},
|
|
2233
2921
|
{
|
|
2234
2922
|
name: "vision_search",
|
|
2235
2923
|
group: "vision",
|
|
@@ -3040,6 +3728,46 @@ export const MCP_TOOLS = [
|
|
|
3040
3728
|
bodyDefaults: {},
|
|
3041
3729
|
queryDefaults: {},
|
|
3042
3730
|
},
|
|
3731
|
+
{
|
|
3732
|
+
name: "routine_publish",
|
|
3733
|
+
group: "routines",
|
|
3734
|
+
title: "Publish a routine",
|
|
3735
|
+
description: "Publish a routine definition by its name: the first publish creates it, each later one adds a version. Check it with routine_validate first. Returns the routine's id and version; run it with routine_run.",
|
|
3736
|
+
annotations: {
|
|
3737
|
+
title: "Publish a routine",
|
|
3738
|
+
readOnlyHint: false,
|
|
3739
|
+
destructiveHint: false,
|
|
3740
|
+
idempotentHint: false,
|
|
3741
|
+
openWorldHint: false,
|
|
3742
|
+
},
|
|
3743
|
+
inputSchema: {
|
|
3744
|
+
type: "object",
|
|
3745
|
+
properties: {
|
|
3746
|
+
routine: {
|
|
3747
|
+
type: "string",
|
|
3748
|
+
description: "The routine's name (default: definition.name).",
|
|
3749
|
+
},
|
|
3750
|
+
definition: {
|
|
3751
|
+
type: "object",
|
|
3752
|
+
description: "The definition as JSON: name and steps, optionally inputs, triggers, vars, output, defaults.",
|
|
3753
|
+
},
|
|
3754
|
+
},
|
|
3755
|
+
additionalProperties: false,
|
|
3756
|
+
},
|
|
3757
|
+
operationId: "routinesPublishRoutine",
|
|
3758
|
+
method: "PUT",
|
|
3759
|
+
path: "/v1/routines/{routine}",
|
|
3760
|
+
scope: "routines:write",
|
|
3761
|
+
servedBy: "node",
|
|
3762
|
+
pathParams: ["routine"],
|
|
3763
|
+
queryParams: [],
|
|
3764
|
+
body: "none",
|
|
3765
|
+
bodyFields: [],
|
|
3766
|
+
rawFields: [],
|
|
3767
|
+
toolArgs: ["definition"],
|
|
3768
|
+
bodyDefaults: {},
|
|
3769
|
+
queryDefaults: {},
|
|
3770
|
+
},
|
|
3043
3771
|
{
|
|
3044
3772
|
name: "routine_validate",
|
|
3045
3773
|
group: "routines",
|
|
@@ -4504,6 +5232,128 @@ export const MCP_TOOLS = [
|
|
|
4504
5232
|
bodyDefaults: {},
|
|
4505
5233
|
queryDefaults: {},
|
|
4506
5234
|
},
|
|
5235
|
+
{
|
|
5236
|
+
name: "render_screenshot_file",
|
|
5237
|
+
group: "render",
|
|
5238
|
+
title: "Save a screenshot to a file",
|
|
5239
|
+
description: "Take a screenshot as render_screenshot does, and save the image to a file on this machine (the local server only, inside its working folder). Answers with the path, the image's size and its signed URL, never the image itself.",
|
|
5240
|
+
annotations: {
|
|
5241
|
+
title: "Save a screenshot to a file",
|
|
5242
|
+
readOnlyHint: false,
|
|
5243
|
+
destructiveHint: false,
|
|
5244
|
+
idempotentHint: false,
|
|
5245
|
+
openWorldHint: true,
|
|
5246
|
+
},
|
|
5247
|
+
inputSchema: {
|
|
5248
|
+
type: "object",
|
|
5249
|
+
properties: {
|
|
5250
|
+
url: {
|
|
5251
|
+
type: "string",
|
|
5252
|
+
format: "uri",
|
|
5253
|
+
description: "Page to load (`http` or `https`).",
|
|
5254
|
+
},
|
|
5255
|
+
html: {
|
|
5256
|
+
type: "string",
|
|
5257
|
+
description: "HTML to render instead of loading a URL. Rendered with no network access.",
|
|
5258
|
+
},
|
|
5259
|
+
viewport: {
|
|
5260
|
+
type: "object",
|
|
5261
|
+
description: "Browser viewport in CSS pixels.",
|
|
5262
|
+
required: ["width", "height"],
|
|
5263
|
+
properties: {
|
|
5264
|
+
width: {
|
|
5265
|
+
type: "integer",
|
|
5266
|
+
minimum: 320,
|
|
5267
|
+
maximum: 3840,
|
|
5268
|
+
},
|
|
5269
|
+
height: {
|
|
5270
|
+
type: "integer",
|
|
5271
|
+
minimum: 240,
|
|
5272
|
+
maximum: 2160,
|
|
5273
|
+
},
|
|
5274
|
+
},
|
|
5275
|
+
additionalProperties: false,
|
|
5276
|
+
},
|
|
5277
|
+
full_page: {
|
|
5278
|
+
type: "boolean",
|
|
5279
|
+
default: false,
|
|
5280
|
+
},
|
|
5281
|
+
target: {
|
|
5282
|
+
type: "object",
|
|
5283
|
+
description: "Capture only this element: {selector} (CSS), {text} (visible text) or {role, name}.",
|
|
5284
|
+
properties: {
|
|
5285
|
+
selector: {
|
|
5286
|
+
type: "string",
|
|
5287
|
+
},
|
|
5288
|
+
text: {
|
|
5289
|
+
type: "string",
|
|
5290
|
+
},
|
|
5291
|
+
role: {
|
|
5292
|
+
type: "string",
|
|
5293
|
+
},
|
|
5294
|
+
name: {
|
|
5295
|
+
type: "string",
|
|
5296
|
+
},
|
|
5297
|
+
},
|
|
5298
|
+
},
|
|
5299
|
+
wait_for_ms: {
|
|
5300
|
+
type: "integer",
|
|
5301
|
+
minimum: 0,
|
|
5302
|
+
maximum: 10000,
|
|
5303
|
+
default: 0,
|
|
5304
|
+
description: "Extra settle time after the page is ready.",
|
|
5305
|
+
},
|
|
5306
|
+
theme: {
|
|
5307
|
+
type: "string",
|
|
5308
|
+
enum: ["light", "dark", "auto"],
|
|
5309
|
+
default: "auto",
|
|
5310
|
+
description: "Emulated `prefers-color-scheme`; `auto` leaves the page default.",
|
|
5311
|
+
},
|
|
5312
|
+
hide: {
|
|
5313
|
+
type: "array",
|
|
5314
|
+
items: {
|
|
5315
|
+
type: "string",
|
|
5316
|
+
},
|
|
5317
|
+
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).",
|
|
5318
|
+
},
|
|
5319
|
+
style: {
|
|
5320
|
+
type: "object",
|
|
5321
|
+
description: "Leave style out for a plain capture. Any style object, even {}, adds the B3OS frame. Preset IDs from GET /v1/render/presets.",
|
|
5322
|
+
properties: {
|
|
5323
|
+
background: {
|
|
5324
|
+
type: "string",
|
|
5325
|
+
},
|
|
5326
|
+
frame: {
|
|
5327
|
+
type: "string",
|
|
5328
|
+
},
|
|
5329
|
+
},
|
|
5330
|
+
},
|
|
5331
|
+
format: {
|
|
5332
|
+
type: "string",
|
|
5333
|
+
enum: ["webp", "png", "jpeg"],
|
|
5334
|
+
default: "webp",
|
|
5335
|
+
},
|
|
5336
|
+
path: {
|
|
5337
|
+
type: "string",
|
|
5338
|
+
description: "The file to save the image to, inside the server's working folder (shot.png).",
|
|
5339
|
+
},
|
|
5340
|
+
},
|
|
5341
|
+
additionalProperties: false,
|
|
5342
|
+
},
|
|
5343
|
+
operationId: "renderCreateScreenshot",
|
|
5344
|
+
method: "POST",
|
|
5345
|
+
path: "/v1/render/screenshots",
|
|
5346
|
+
scope: "render:run",
|
|
5347
|
+
servedBy: "node",
|
|
5348
|
+
pathParams: [],
|
|
5349
|
+
queryParams: [],
|
|
5350
|
+
body: "json",
|
|
5351
|
+
bodyFields: ["url", "html", "viewport", "full_page", "target", "wait_for_ms", "theme", "hide", "style", "format"],
|
|
5352
|
+
rawFields: [],
|
|
5353
|
+
toolArgs: ["path"],
|
|
5354
|
+
bodyDefaults: {},
|
|
5355
|
+
queryDefaults: {},
|
|
5356
|
+
},
|
|
4507
5357
|
{
|
|
4508
5358
|
name: "listener_create",
|
|
4509
5359
|
group: "listeners",
|
|
@@ -5034,7 +5884,10 @@ export const MCP_TOOLS = [
|
|
|
5034
5884
|
name: {
|
|
5035
5885
|
type: "string",
|
|
5036
5886
|
pattern: "^[a-z][a-z0-9-]{0,62}$",
|
|
5037
|
-
|
|
5887
|
+
not: {
|
|
5888
|
+
enum: ["sessions", "harnesses", "grants", "self", "recipes"],
|
|
5889
|
+
},
|
|
5890
|
+
description: "Lowercase letters, digits and `-`, starting with a letter.",
|
|
5038
5891
|
},
|
|
5039
5892
|
source: {
|
|
5040
5893
|
type: "object",
|
|
@@ -5191,6 +6044,11 @@ export const MCP_TOOLS = [
|
|
|
5191
6044
|
"routines:run",
|
|
5192
6045
|
"listeners:read",
|
|
5193
6046
|
"listeners:write",
|
|
6047
|
+
"workspaces:read",
|
|
6048
|
+
"workspaces:write",
|
|
6049
|
+
"workspaces:run",
|
|
6050
|
+
"workspaces:rules:write",
|
|
6051
|
+
"workspaces:subjects:assert",
|
|
5194
6052
|
"actions:read",
|
|
5195
6053
|
"actions:write",
|
|
5196
6054
|
"actions:run",
|
|
@@ -5212,6 +6070,7 @@ export const MCP_TOOLS = [
|
|
|
5212
6070
|
"agents:*",
|
|
5213
6071
|
"routines:*",
|
|
5214
6072
|
"listeners:*",
|
|
6073
|
+
"workspaces:*",
|
|
5215
6074
|
"actions:*",
|
|
5216
6075
|
"infer:*",
|
|
5217
6076
|
"vault:*",
|
|
@@ -5594,6 +6453,11 @@ export const MCP_TOOLS = [
|
|
|
5594
6453
|
"routines:run",
|
|
5595
6454
|
"listeners:read",
|
|
5596
6455
|
"listeners:write",
|
|
6456
|
+
"workspaces:read",
|
|
6457
|
+
"workspaces:write",
|
|
6458
|
+
"workspaces:run",
|
|
6459
|
+
"workspaces:rules:write",
|
|
6460
|
+
"workspaces:subjects:assert",
|
|
5597
6461
|
"actions:read",
|
|
5598
6462
|
"actions:write",
|
|
5599
6463
|
"actions:run",
|
|
@@ -5615,6 +6479,7 @@ export const MCP_TOOLS = [
|
|
|
5615
6479
|
"agents:*",
|
|
5616
6480
|
"routines:*",
|
|
5617
6481
|
"listeners:*",
|
|
6482
|
+
"workspaces:*",
|
|
5618
6483
|
"actions:*",
|
|
5619
6484
|
"infer:*",
|
|
5620
6485
|
"vault:*",
|
|
@@ -6612,6 +7477,14 @@ export const MCP_OPERATIONS = {
|
|
|
6612
7477
|
servedBy: "node",
|
|
6613
7478
|
idempotent: false,
|
|
6614
7479
|
},
|
|
7480
|
+
routinesPublishRoutine: {
|
|
7481
|
+
method: "PUT",
|
|
7482
|
+
path: "/v1/routines/{routine}",
|
|
7483
|
+
pathParams: ["routine"],
|
|
7484
|
+
scope: "routines:write",
|
|
7485
|
+
servedBy: "node",
|
|
7486
|
+
idempotent: true,
|
|
7487
|
+
},
|
|
6615
7488
|
routinesRunEvents: {
|
|
6616
7489
|
method: "GET",
|
|
6617
7490
|
path: "/v1/routines/runs/{run_id}/events",
|
|
@@ -6644,6 +7517,22 @@ export const MCP_OPERATIONS = {
|
|
|
6644
7517
|
servedBy: "node",
|
|
6645
7518
|
idempotent: false,
|
|
6646
7519
|
},
|
|
7520
|
+
sandboxesComputerAct: {
|
|
7521
|
+
method: "POST",
|
|
7522
|
+
path: "/v1/sandboxes/{sandbox_id}/computer/actions",
|
|
7523
|
+
pathParams: ["sandbox_id"],
|
|
7524
|
+
scope: "sandboxes:run",
|
|
7525
|
+
servedBy: "node",
|
|
7526
|
+
idempotent: false,
|
|
7527
|
+
},
|
|
7528
|
+
sandboxesComputerScreenshot: {
|
|
7529
|
+
method: "GET",
|
|
7530
|
+
path: "/v1/sandboxes/{sandbox_id}/computer/screenshot",
|
|
7531
|
+
pathParams: ["sandbox_id"],
|
|
7532
|
+
scope: "sandboxes:read",
|
|
7533
|
+
servedBy: "node",
|
|
7534
|
+
idempotent: false,
|
|
7535
|
+
},
|
|
6647
7536
|
sandboxesCreatePortUrl: {
|
|
6648
7537
|
method: "POST",
|
|
6649
7538
|
path: "/v1/sandboxes/{sandbox_id}/ports/{port}/url",
|
|
@@ -6708,6 +7597,14 @@ export const MCP_OPERATIONS = {
|
|
|
6708
7597
|
servedBy: "node",
|
|
6709
7598
|
idempotent: true,
|
|
6710
7599
|
},
|
|
7600
|
+
sandboxesGetCapacity: {
|
|
7601
|
+
method: "GET",
|
|
7602
|
+
path: "/v1/sandboxes/capacity",
|
|
7603
|
+
pathParams: [],
|
|
7604
|
+
scope: "sandboxes:read",
|
|
7605
|
+
servedBy: "node",
|
|
7606
|
+
idempotent: false,
|
|
7607
|
+
},
|
|
6711
7608
|
sandboxesGetSandbox: {
|
|
6712
7609
|
method: "GET",
|
|
6713
7610
|
path: "/v1/sandboxes/{sandbox_id}",
|