@b3os/mcp 0.2.0 → 0.2.2

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 (48) hide show
  1. package/README.md +26 -4
  2. package/dist/handlers/_common.d.ts +14 -0
  3. package/dist/handlers/_common.js +27 -0
  4. package/dist/handlers/_common.js.map +1 -1
  5. package/dist/handlers/actions.d.ts +12 -1
  6. package/dist/handlers/actions.js +51 -2
  7. package/dist/handlers/actions.js.map +1 -1
  8. package/dist/handlers/agents.d.ts +2 -0
  9. package/dist/handlers/agents.js +41 -0
  10. package/dist/handlers/agents.js.map +1 -0
  11. package/dist/handlers/platform.d.ts +32 -0
  12. package/dist/handlers/platform.js +663 -0
  13. package/dist/handlers/platform.js.map +1 -0
  14. package/dist/handlers/render.d.ts +13 -0
  15. package/dist/handlers/render.js +145 -18
  16. package/dist/handlers/render.js.map +1 -1
  17. package/dist/handlers/routines.d.ts +8 -2
  18. package/dist/handlers/routines.js +154 -15
  19. package/dist/handlers/routines.js.map +1 -1
  20. package/dist/server.js +1 -1
  21. package/dist/table.gen.js +3312 -42
  22. package/dist/table.gen.js.map +1 -1
  23. package/dist/table.js +4 -0
  24. package/dist/table.js.map +1 -1
  25. package/dist/tools.js +3 -0
  26. package/dist/tools.js.map +1 -1
  27. package/package.json +2 -2
  28. package/src/handlers/_common.ts +37 -0
  29. package/src/handlers/actions.ts +50 -2
  30. package/src/handlers/agents.ts +50 -0
  31. package/src/handlers/platform.ts +711 -0
  32. package/src/handlers/render.ts +147 -16
  33. package/src/handlers/routines.ts +164 -14
  34. package/src/server.ts +1 -1
  35. package/src/table.gen.ts +3367 -36
  36. package/src/table.ts +4 -0
  37. package/src/tools.ts +3 -0
  38. package/table/core.mjs +13 -2
  39. package/table/node-toolsets.json +668 -0
  40. package/table/requests.json +771 -0
  41. package/table/table.json +3315 -45
  42. package/table/tools/agents.mjs +230 -0
  43. package/table/tools/listeners.mjs +124 -0
  44. package/table/tools/platform.mjs +136 -3
  45. package/table/tools/render.mjs +157 -3
  46. package/table/tools/routines.mjs +37 -0
  47. package/table/tools/sandboxes.mjs +69 -0
  48. package/table/tools.mjs +3 -1
@@ -497,6 +497,54 @@
497
497
  }
498
498
  ]
499
499
  },
500
+ {
501
+ "tool": "sandbox_swarm",
502
+ "args": {
503
+ "from": {
504
+ "sandbox": "sbx_01m5t68q1b590rj801nbzsqzkk"
505
+ },
506
+ "count": 3,
507
+ "defaults": {
508
+ "cmd": "pytest -k shard_$B3OS_SWARM_INDEX"
509
+ },
510
+ "stop_when": "all",
511
+ "wait_s": 30
512
+ },
513
+ "requests": [
514
+ {
515
+ "operationId": "sandboxesCreateSwarm",
516
+ "method": "POST",
517
+ "path": "/v1/sandboxes/swarms",
518
+ "query": {},
519
+ "body": {
520
+ "from": {
521
+ "sandbox": "sbx_01m5t68q1b590rj801nbzsqzkk"
522
+ },
523
+ "count": 3,
524
+ "defaults": {
525
+ "cmd": "pytest -k shard_$B3OS_SWARM_INDEX"
526
+ },
527
+ "stop_when": "all"
528
+ },
529
+ "accept": "json"
530
+ }
531
+ ]
532
+ },
533
+ {
534
+ "tool": "sandbox_cancel_swarm",
535
+ "args": {
536
+ "swarm_id": "swm_01m5t9k2hz4qv8e3c7rn0d6xja"
537
+ },
538
+ "requests": [
539
+ {
540
+ "operationId": "sandboxesCancelSwarm",
541
+ "method": "POST",
542
+ "path": "/v1/sandboxes/swarms/swm_01m5t9k2hz4qv8e3c7rn0d6xja/cancel",
543
+ "query": {},
544
+ "accept": "json"
545
+ }
546
+ ]
547
+ },
500
548
  {
501
549
  "tool": "sandbox_snapshot",
502
550
  "args": {
@@ -630,6 +678,28 @@
630
678
  }
631
679
  ]
632
680
  },
681
+ {
682
+ "tool": "sandbox_port_host",
683
+ "args": {
684
+ "sandbox_id": "sbx_01m5t68q1b590rj801nbzsqzkk",
685
+ "port": 3000,
686
+ "ttl_s": 600,
687
+ "rotate": false
688
+ },
689
+ "requests": [
690
+ {
691
+ "operationId": "platformCreatePortHost",
692
+ "method": "POST",
693
+ "path": "/v1/sandboxes/sbx_01m5t68q1b590rj801nbzsqzkk/ports/3000/host",
694
+ "query": {},
695
+ "body": {
696
+ "ttl_s": 600,
697
+ "rotate": false
698
+ },
699
+ "accept": "json"
700
+ }
701
+ ]
702
+ },
633
703
  {
634
704
  "tool": "sandbox_logs",
635
705
  "args": {
@@ -915,6 +985,26 @@
915
985
  }
916
986
  ]
917
987
  },
988
+ {
989
+ "tool": "routine_list_runs",
990
+ "args": {
991
+ "routine": "nightly-digest",
992
+ "status": "failed",
993
+ "limit": 5
994
+ },
995
+ "requests": [
996
+ {
997
+ "operationId": "routinesListRuns",
998
+ "method": "GET",
999
+ "path": "/v1/routines/nightly-digest/runs",
1000
+ "query": {
1001
+ "limit": "5",
1002
+ "status": "failed"
1003
+ },
1004
+ "accept": "json"
1005
+ }
1006
+ ]
1007
+ },
918
1008
  {
919
1009
  "tool": "routine_get_run",
920
1010
  "args": {
@@ -930,6 +1020,29 @@
930
1020
  }
931
1021
  ]
932
1022
  },
1023
+ {
1024
+ "tool": "routine_run_events",
1025
+ "args": {
1026
+ "run_id": "run_01m5t68q1b590rj801nbzsqzkk",
1027
+ "max_events": 20
1028
+ },
1029
+ "requests": [
1030
+ {
1031
+ "operationId": "routinesGetRun",
1032
+ "method": "GET",
1033
+ "path": "/v1/routines/runs/run_01m5t68q1b590rj801nbzsqzkk",
1034
+ "query": {},
1035
+ "accept": "json"
1036
+ },
1037
+ {
1038
+ "operationId": "routinesRunEvents",
1039
+ "method": "GET",
1040
+ "path": "/v1/routines/runs/run_01m5t68q1b590rj801nbzsqzkk/events",
1041
+ "query": {},
1042
+ "accept": "events"
1043
+ }
1044
+ ]
1045
+ },
933
1046
  {
934
1047
  "tool": "routine_validate",
935
1048
  "args": {
@@ -1110,6 +1223,99 @@
1110
1223
  "path": "/v1/requests/req_01m5t68q1b590rj801nbzsqzkk",
1111
1224
  "query": {},
1112
1225
  "accept": "json"
1226
+ },
1227
+ {
1228
+ "operationId": "platformListUsageRecords",
1229
+ "method": "GET",
1230
+ "path": "/v1/usage/records",
1231
+ "query": {
1232
+ "request_id": "req_01m5t68q1b590rj801nbzsqzkk",
1233
+ "limit": "100"
1234
+ },
1235
+ "accept": "json"
1236
+ }
1237
+ ]
1238
+ },
1239
+ {
1240
+ "tool": "traces_list",
1241
+ "args": {
1242
+ "status": "error",
1243
+ "limit": 5
1244
+ },
1245
+ "requests": [
1246
+ {
1247
+ "operationId": "platformListRequests",
1248
+ "method": "GET",
1249
+ "path": "/v1/requests",
1250
+ "query": {
1251
+ "limit": "100"
1252
+ },
1253
+ "accept": "json"
1254
+ }
1255
+ ]
1256
+ },
1257
+ {
1258
+ "tool": "traces_get",
1259
+ "args": {
1260
+ "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
1261
+ },
1262
+ "requests": [
1263
+ {
1264
+ "operationId": "platformGetTrace",
1265
+ "method": "GET",
1266
+ "path": "/v1/traces/4bf92f3577b34da6a3ce929d0e0e4736",
1267
+ "query": {},
1268
+ "accept": "json"
1269
+ }
1270
+ ]
1271
+ },
1272
+ {
1273
+ "tool": "llm_calls_list",
1274
+ "args": {
1275
+ "model": "b3os/qwen3.5-9b",
1276
+ "limit": 5
1277
+ },
1278
+ "requests": [
1279
+ {
1280
+ "operationId": "platformListLlmCalls",
1281
+ "method": "GET",
1282
+ "path": "/v1/llm-calls",
1283
+ "query": {
1284
+ "limit": "5",
1285
+ "model": "b3os/qwen3.5-9b"
1286
+ },
1287
+ "accept": "json"
1288
+ }
1289
+ ]
1290
+ },
1291
+ {
1292
+ "tool": "llm_calls_get",
1293
+ "args": {
1294
+ "request_id": "req_01m5t6d8ksbzrfxhqhzge06mqn"
1295
+ },
1296
+ "requests": [
1297
+ {
1298
+ "operationId": "platformGetLlmCall",
1299
+ "method": "GET",
1300
+ "path": "/v1/llm-calls/req_01m5t6d8ksbzrfxhqhzge06mqn",
1301
+ "query": {},
1302
+ "accept": "json"
1303
+ }
1304
+ ]
1305
+ },
1306
+ {
1307
+ "tool": "llm_calls_get_prompt_and_answer",
1308
+ "args": {
1309
+ "request_id": "req_01m5t6d8ksbzrfxhqhzge06mqn",
1310
+ "max_chars": 4000
1311
+ },
1312
+ "requests": [
1313
+ {
1314
+ "operationId": "platformGetLlmCallContent",
1315
+ "method": "GET",
1316
+ "path": "/v1/llm-calls/req_01m5t6d8ksbzrfxhqhzge06mqn/content",
1317
+ "query": {},
1318
+ "accept": "json"
1113
1319
  }
1114
1320
  ]
1115
1321
  },
@@ -1147,5 +1353,570 @@
1147
1353
  "accept": "json"
1148
1354
  }
1149
1355
  ]
1356
+ },
1357
+ {
1358
+ "tool": "render_inspect",
1359
+ "args": {
1360
+ "url": "https://beta.b3os.org/demo/billing/",
1361
+ "steps": [
1362
+ {
1363
+ "kind": "click",
1364
+ "target": {
1365
+ "text": "Annual",
1366
+ "exact": true
1367
+ }
1368
+ }
1369
+ ],
1370
+ "duration_ms": 2000
1371
+ },
1372
+ "requests": [
1373
+ {
1374
+ "operationId": "renderCreateInspection",
1375
+ "method": "POST",
1376
+ "path": "/v1/render/inspections",
1377
+ "query": {},
1378
+ "body": {
1379
+ "url": "https://beta.b3os.org/demo/billing/",
1380
+ "steps": [
1381
+ {
1382
+ "kind": "click",
1383
+ "target": {
1384
+ "text": "Annual",
1385
+ "exact": true
1386
+ }
1387
+ }
1388
+ ],
1389
+ "duration_ms": 2000
1390
+ },
1391
+ "accept": "json"
1392
+ }
1393
+ ]
1394
+ },
1395
+ {
1396
+ "tool": "render_get",
1397
+ "args": {
1398
+ "video_id": "vid_01m5t68q1b590rj801nbzsqzkk"
1399
+ },
1400
+ "requests": [
1401
+ {
1402
+ "operationId": "renderGetVideo",
1403
+ "method": "GET",
1404
+ "path": "/v1/render/videos/vid_01m5t68q1b590rj801nbzsqzkk",
1405
+ "query": {},
1406
+ "accept": "json"
1407
+ }
1408
+ ]
1409
+ },
1410
+ {
1411
+ "tool": "render_restyle",
1412
+ "args": {
1413
+ "video_id": "vid_01m5t68q1b590rj801nbzsqzkk",
1414
+ "style": {
1415
+ "background": "midnight",
1416
+ "frame": "browser-dark"
1417
+ },
1418
+ "alias": "billing-tour",
1419
+ "wait_s": 10
1420
+ },
1421
+ "requests": [
1422
+ {
1423
+ "operationId": "renderRestyleVideo",
1424
+ "method": "POST",
1425
+ "path": "/v1/render/videos/vid_01m5t68q1b590rj801nbzsqzkk/restyle",
1426
+ "query": {
1427
+ "wait": "10"
1428
+ },
1429
+ "body": {
1430
+ "style": {
1431
+ "background": "midnight",
1432
+ "frame": "browser-dark"
1433
+ },
1434
+ "alias": "billing-tour"
1435
+ },
1436
+ "accept": "json"
1437
+ }
1438
+ ]
1439
+ },
1440
+ {
1441
+ "tool": "render_presets",
1442
+ "args": {
1443
+ "kind": "background"
1444
+ },
1445
+ "requests": [
1446
+ {
1447
+ "operationId": "renderListPresets",
1448
+ "method": "GET",
1449
+ "path": "/v1/render/presets",
1450
+ "query": {
1451
+ "kind": "background"
1452
+ },
1453
+ "accept": "json"
1454
+ }
1455
+ ]
1456
+ },
1457
+ {
1458
+ "tool": "render_share",
1459
+ "args": {
1460
+ "alias": "billing-tour",
1461
+ "title": "Billing in 30 seconds"
1462
+ },
1463
+ "requests": [
1464
+ {
1465
+ "operationId": "renderShareAlias",
1466
+ "method": "POST",
1467
+ "path": "/v1/render/aliases/billing-tour/share",
1468
+ "query": {},
1469
+ "body": {
1470
+ "title": "Billing in 30 seconds"
1471
+ },
1472
+ "accept": "json"
1473
+ }
1474
+ ]
1475
+ },
1476
+ {
1477
+ "tool": "listener_create",
1478
+ "args": {
1479
+ "name": "big-orders",
1480
+ "source": {
1481
+ "type": "push"
1482
+ },
1483
+ "filter": {
1484
+ "cel": "event.payload.total > 1000"
1485
+ },
1486
+ "sink": {
1487
+ "type": "webhook",
1488
+ "url": "https://hooks.example.com/b3os"
1489
+ },
1490
+ "ttl_s": 86400
1491
+ },
1492
+ "requests": [
1493
+ {
1494
+ "operationId": "listenersCreateListener",
1495
+ "method": "POST",
1496
+ "path": "/v1/listeners",
1497
+ "query": {},
1498
+ "body": {
1499
+ "name": "big-orders",
1500
+ "source": {
1501
+ "type": "push"
1502
+ },
1503
+ "filter": {
1504
+ "cel": "event.payload.total > 1000"
1505
+ },
1506
+ "sink": {
1507
+ "type": "webhook",
1508
+ "url": "https://hooks.example.com/b3os"
1509
+ },
1510
+ "ttl_s": 86400
1511
+ },
1512
+ "accept": "json"
1513
+ }
1514
+ ]
1515
+ },
1516
+ {
1517
+ "tool": "listener_list",
1518
+ "args": {
1519
+ "status": "active",
1520
+ "limit": 10
1521
+ },
1522
+ "requests": [
1523
+ {
1524
+ "operationId": "listenersListListeners",
1525
+ "method": "GET",
1526
+ "path": "/v1/listeners",
1527
+ "query": {
1528
+ "status": "active",
1529
+ "limit": "10"
1530
+ },
1531
+ "accept": "json"
1532
+ }
1533
+ ]
1534
+ },
1535
+ {
1536
+ "tool": "listener_get",
1537
+ "args": {
1538
+ "listener_id": "lsn_01m5t8b2c4d6e8f0g2h4j6k8m0"
1539
+ },
1540
+ "requests": [
1541
+ {
1542
+ "operationId": "listenersGetListener",
1543
+ "method": "GET",
1544
+ "path": "/v1/listeners/lsn_01m5t8b2c4d6e8f0g2h4j6k8m0",
1545
+ "query": {},
1546
+ "accept": "json"
1547
+ }
1548
+ ]
1549
+ },
1550
+ {
1551
+ "tool": "listener_update",
1552
+ "args": {
1553
+ "listener_id": "lsn_01m5t8b2c4d6e8f0g2h4j6k8m0",
1554
+ "paused": true
1555
+ },
1556
+ "requests": [
1557
+ {
1558
+ "operationId": "listenersUpdateListener",
1559
+ "method": "PATCH",
1560
+ "path": "/v1/listeners/lsn_01m5t8b2c4d6e8f0g2h4j6k8m0",
1561
+ "query": {},
1562
+ "body": {
1563
+ "paused": true
1564
+ },
1565
+ "accept": "json"
1566
+ }
1567
+ ]
1568
+ },
1569
+ {
1570
+ "tool": "listener_delete",
1571
+ "args": {
1572
+ "listener_id": "lsn_01m5t8b2c4d6e8f0g2h4j6k8m0"
1573
+ },
1574
+ "requests": [
1575
+ {
1576
+ "operationId": "listenersDeleteListener",
1577
+ "method": "DELETE",
1578
+ "path": "/v1/listeners/lsn_01m5t8b2c4d6e8f0g2h4j6k8m0",
1579
+ "query": {},
1580
+ "accept": "json"
1581
+ }
1582
+ ]
1583
+ },
1584
+ {
1585
+ "tool": "listener_events",
1586
+ "args": {
1587
+ "listener_id": "lsn_01m5t8b2c4d6e8f0g2h4j6k8m0",
1588
+ "status": "failed"
1589
+ },
1590
+ "requests": [
1591
+ {
1592
+ "operationId": "listenersListEvents",
1593
+ "method": "GET",
1594
+ "path": "/v1/listeners/lsn_01m5t8b2c4d6e8f0g2h4j6k8m0/events",
1595
+ "query": {
1596
+ "status": "failed"
1597
+ },
1598
+ "accept": "json"
1599
+ }
1600
+ ]
1601
+ },
1602
+ {
1603
+ "tool": "listener_push",
1604
+ "args": {
1605
+ "listener_id": "lsn_01m5t8b2c4d6e8f0g2h4j6k8m0",
1606
+ "events": [
1607
+ {
1608
+ "payload": {
1609
+ "order": 7,
1610
+ "total": 1200
1611
+ }
1612
+ }
1613
+ ]
1614
+ },
1615
+ "requests": [
1616
+ {
1617
+ "operationId": "listenersIngestEvents",
1618
+ "method": "POST",
1619
+ "path": "/v1/listeners/lsn_01m5t8b2c4d6e8f0g2h4j6k8m0/events",
1620
+ "query": {},
1621
+ "body": {
1622
+ "events": [
1623
+ {
1624
+ "payload": {
1625
+ "order": 7,
1626
+ "total": 1200
1627
+ }
1628
+ }
1629
+ ]
1630
+ },
1631
+ "accept": "json"
1632
+ }
1633
+ ]
1634
+ },
1635
+ {
1636
+ "tool": "listener_test",
1637
+ "args": {
1638
+ "listener_id": "lsn_01m5t8b2c4d6e8f0g2h4j6k8m0",
1639
+ "payload": {
1640
+ "total": 50
1641
+ }
1642
+ },
1643
+ "requests": [
1644
+ {
1645
+ "operationId": "listenersTestListener",
1646
+ "method": "POST",
1647
+ "path": "/v1/listeners/lsn_01m5t8b2c4d6e8f0g2h4j6k8m0/test",
1648
+ "query": {},
1649
+ "body": {
1650
+ "payload": {
1651
+ "total": 50
1652
+ }
1653
+ },
1654
+ "accept": "json"
1655
+ }
1656
+ ]
1657
+ },
1658
+ {
1659
+ "tool": "agent_send",
1660
+ "args": {
1661
+ "agent": "support",
1662
+ "key": "user-42",
1663
+ "payload": {
1664
+ "text": "Where is my order?"
1665
+ },
1666
+ "wait_s": 30
1667
+ },
1668
+ "requests": [
1669
+ {
1670
+ "operationId": "agentsSendMessage",
1671
+ "method": "POST",
1672
+ "path": "/v1/agents/support/instances/user-42/messages",
1673
+ "query": {
1674
+ "wait": "30"
1675
+ },
1676
+ "body": {
1677
+ "text": "Where is my order?"
1678
+ },
1679
+ "accept": "json"
1680
+ }
1681
+ ]
1682
+ },
1683
+ {
1684
+ "tool": "agent_create",
1685
+ "args": {
1686
+ "name": "support",
1687
+ "entry": {
1688
+ "command": ["node", "harness.js"],
1689
+ "port": 8080,
1690
+ "path": "/messages"
1691
+ }
1692
+ },
1693
+ "requests": [
1694
+ {
1695
+ "operationId": "agentsCreateAgent",
1696
+ "method": "POST",
1697
+ "path": "/v1/agents",
1698
+ "query": {},
1699
+ "body": {
1700
+ "name": "support",
1701
+ "entry": {
1702
+ "command": ["node", "harness.js"],
1703
+ "port": 8080,
1704
+ "path": "/messages"
1705
+ }
1706
+ },
1707
+ "accept": "json"
1708
+ }
1709
+ ]
1710
+ },
1711
+ {
1712
+ "tool": "agent_list",
1713
+ "args": {
1714
+ "limit": 5
1715
+ },
1716
+ "requests": [
1717
+ {
1718
+ "operationId": "agentsListAgents",
1719
+ "method": "GET",
1720
+ "path": "/v1/agents",
1721
+ "query": {
1722
+ "limit": "5"
1723
+ },
1724
+ "accept": "json"
1725
+ }
1726
+ ]
1727
+ },
1728
+ {
1729
+ "tool": "agent_get",
1730
+ "args": {
1731
+ "agent": "support"
1732
+ },
1733
+ "requests": [
1734
+ {
1735
+ "operationId": "agentsGetAgent",
1736
+ "method": "GET",
1737
+ "path": "/v1/agents/support",
1738
+ "query": {},
1739
+ "accept": "json"
1740
+ }
1741
+ ]
1742
+ },
1743
+ {
1744
+ "tool": "agent_update",
1745
+ "args": {
1746
+ "agent": "support",
1747
+ "sleep": {
1748
+ "ram_after_s": 60
1749
+ }
1750
+ },
1751
+ "requests": [
1752
+ {
1753
+ "operationId": "agentsUpdateAgent",
1754
+ "method": "PATCH",
1755
+ "path": "/v1/agents/support",
1756
+ "query": {},
1757
+ "body": {
1758
+ "sleep": {
1759
+ "ram_after_s": 60
1760
+ }
1761
+ },
1762
+ "accept": "json"
1763
+ }
1764
+ ]
1765
+ },
1766
+ {
1767
+ "tool": "agent_delete",
1768
+ "args": {
1769
+ "agent": "support"
1770
+ },
1771
+ "requests": [
1772
+ {
1773
+ "operationId": "agentsDeleteAgent",
1774
+ "method": "DELETE",
1775
+ "path": "/v1/agents/support",
1776
+ "query": {},
1777
+ "accept": "json"
1778
+ }
1779
+ ]
1780
+ },
1781
+ {
1782
+ "tool": "agent_list_instances",
1783
+ "args": {
1784
+ "agent": "support",
1785
+ "status": "hibernated"
1786
+ },
1787
+ "requests": [
1788
+ {
1789
+ "operationId": "agentsListInstances",
1790
+ "method": "GET",
1791
+ "path": "/v1/agents/support/instances",
1792
+ "query": {
1793
+ "limit": "20",
1794
+ "status": "hibernated"
1795
+ },
1796
+ "accept": "json"
1797
+ }
1798
+ ]
1799
+ },
1800
+ {
1801
+ "tool": "agent_get_instance",
1802
+ "args": {
1803
+ "agent": "support",
1804
+ "key": "user-42"
1805
+ },
1806
+ "requests": [
1807
+ {
1808
+ "operationId": "agentsGetInstance",
1809
+ "method": "GET",
1810
+ "path": "/v1/agents/support/instances/user-42",
1811
+ "query": {},
1812
+ "accept": "json"
1813
+ }
1814
+ ]
1815
+ },
1816
+ {
1817
+ "tool": "agent_instance_events",
1818
+ "args": {
1819
+ "agent": "support",
1820
+ "key": "user-42",
1821
+ "limit": 10
1822
+ },
1823
+ "requests": [
1824
+ {
1825
+ "operationId": "agentsListInstanceEvents",
1826
+ "method": "GET",
1827
+ "path": "/v1/agents/support/instances/user-42/events",
1828
+ "query": {
1829
+ "limit": "10"
1830
+ },
1831
+ "accept": "json"
1832
+ }
1833
+ ]
1834
+ },
1835
+ {
1836
+ "tool": "agent_sleep",
1837
+ "args": {
1838
+ "agent": "support",
1839
+ "key": "user-42",
1840
+ "tier": "snapshot"
1841
+ },
1842
+ "requests": [
1843
+ {
1844
+ "operationId": "agentsSleepInstance",
1845
+ "method": "POST",
1846
+ "path": "/v1/agents/support/instances/user-42/sleep",
1847
+ "query": {},
1848
+ "body": {
1849
+ "tier": "snapshot"
1850
+ },
1851
+ "accept": "json"
1852
+ }
1853
+ ]
1854
+ },
1855
+ {
1856
+ "tool": "agent_delete_instance",
1857
+ "args": {
1858
+ "agent": "support",
1859
+ "key": "user-42"
1860
+ },
1861
+ "requests": [
1862
+ {
1863
+ "operationId": "agentsDeleteInstance",
1864
+ "method": "DELETE",
1865
+ "path": "/v1/agents/support/instances/user-42",
1866
+ "query": {},
1867
+ "accept": "json"
1868
+ }
1869
+ ]
1870
+ },
1871
+ {
1872
+ "tool": "agent_list_sessions",
1873
+ "args": {
1874
+ "agent": "support",
1875
+ "key": "user-42",
1876
+ "status": "failed"
1877
+ },
1878
+ "requests": [
1879
+ {
1880
+ "operationId": "agentsListSessions",
1881
+ "method": "GET",
1882
+ "path": "/v1/agents/support/sessions",
1883
+ "query": {
1884
+ "limit": "10",
1885
+ "key": "user-42",
1886
+ "status": "failed"
1887
+ },
1888
+ "accept": "json"
1889
+ }
1890
+ ]
1891
+ },
1892
+ {
1893
+ "tool": "agent_get_session",
1894
+ "args": {
1895
+ "session_id": "ses_01m87xh9pe1a47cey653pxk3zs"
1896
+ },
1897
+ "requests": [
1898
+ {
1899
+ "operationId": "agentsGetSession",
1900
+ "method": "GET",
1901
+ "path": "/v1/agents/sessions/ses_01m87xh9pe1a47cey653pxk3zs",
1902
+ "query": {},
1903
+ "accept": "json"
1904
+ }
1905
+ ]
1906
+ },
1907
+ {
1908
+ "tool": "agent_cancel_session",
1909
+ "args": {
1910
+ "session_id": "ses_01m87xh9pe1a47cey653pxk3zs"
1911
+ },
1912
+ "requests": [
1913
+ {
1914
+ "operationId": "agentsCancelSession",
1915
+ "method": "POST",
1916
+ "path": "/v1/agents/sessions/ses_01m87xh9pe1a47cey653pxk3zs/cancel",
1917
+ "query": {},
1918
+ "accept": "json"
1919
+ }
1920
+ ]
1150
1921
  }
1151
1922
  ]