@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.
- package/README.md +26 -4
- package/dist/handlers/_common.d.ts +14 -0
- package/dist/handlers/_common.js +27 -0
- package/dist/handlers/_common.js.map +1 -1
- package/dist/handlers/actions.d.ts +12 -1
- package/dist/handlers/actions.js +51 -2
- package/dist/handlers/actions.js.map +1 -1
- package/dist/handlers/agents.d.ts +2 -0
- package/dist/handlers/agents.js +41 -0
- package/dist/handlers/agents.js.map +1 -0
- package/dist/handlers/platform.d.ts +32 -0
- package/dist/handlers/platform.js +663 -0
- package/dist/handlers/platform.js.map +1 -0
- package/dist/handlers/render.d.ts +13 -0
- package/dist/handlers/render.js +145 -18
- package/dist/handlers/render.js.map +1 -1
- package/dist/handlers/routines.d.ts +8 -2
- package/dist/handlers/routines.js +154 -15
- package/dist/handlers/routines.js.map +1 -1
- package/dist/server.js +1 -1
- package/dist/table.gen.js +3312 -42
- package/dist/table.gen.js.map +1 -1
- package/dist/table.js +4 -0
- package/dist/table.js.map +1 -1
- package/dist/tools.js +3 -0
- package/dist/tools.js.map +1 -1
- package/package.json +2 -2
- package/src/handlers/_common.ts +37 -0
- package/src/handlers/actions.ts +50 -2
- package/src/handlers/agents.ts +50 -0
- package/src/handlers/platform.ts +711 -0
- package/src/handlers/render.ts +147 -16
- package/src/handlers/routines.ts +164 -14
- package/src/server.ts +1 -1
- package/src/table.gen.ts +3367 -36
- package/src/table.ts +4 -0
- package/src/tools.ts +3 -0
- package/table/core.mjs +13 -2
- package/table/node-toolsets.json +668 -0
- package/table/requests.json +771 -0
- package/table/table.json +3315 -45
- package/table/tools/agents.mjs +230 -0
- package/table/tools/listeners.mjs +124 -0
- package/table/tools/platform.mjs +136 -3
- package/table/tools/render.mjs +157 -3
- package/table/tools/routines.mjs +37 -0
- package/table/tools/sandboxes.mjs +69 -0
- package/table/tools.mjs +3 -1
package/table/table.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
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"],
|
|
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; render_video takes a goal instead of beats; the render toolset restyles, shares and lists presets. 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", "render", "listeners", "agents"],
|
|
5
5
|
"tools": [
|
|
6
6
|
{
|
|
7
7
|
"name": "vision_scrape",
|
|
@@ -529,7 +529,7 @@
|
|
|
529
529
|
"name": "render_video",
|
|
530
530
|
"group": "core",
|
|
531
531
|
"title": "Render a product video",
|
|
532
|
-
"description": "Record a
|
|
532
|
+
"description": "Record a product demo as MP4, GIF and a poster: beats of browser steps, or a goal the node plans them from, with optional narration. Waits up to wait_s seconds and returns the poster; if still rendering, call again with job_id.",
|
|
533
533
|
"annotations": {
|
|
534
534
|
"title": "Render a product video",
|
|
535
535
|
"readOnlyHint": false,
|
|
@@ -554,8 +554,18 @@
|
|
|
554
554
|
},
|
|
555
555
|
"additionalProperties": false
|
|
556
556
|
},
|
|
557
|
+
"goal": {
|
|
558
|
+
"type": "string",
|
|
559
|
+
"description": "What the video should show, in a sentence, in place of beats: the node reads the start page, plans the beats with its model and checks them in a browser (needs vision:run and infer:run). The planned beats come back in goal.beats; send them as beats to record the same steps again."
|
|
560
|
+
},
|
|
561
|
+
"alias": {
|
|
562
|
+
"type": "string",
|
|
563
|
+
"pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$",
|
|
564
|
+
"description": "Name this recording (a-z, 0-9, hyphens): the alias points at the newest video made with it and keeps it past the 7-day retention, and render_share {alias} shares whichever video that is."
|
|
565
|
+
},
|
|
557
566
|
"beats": {
|
|
558
567
|
"type": "array",
|
|
568
|
+
"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}.",
|
|
559
569
|
"items": {
|
|
560
570
|
"type": "object",
|
|
561
571
|
"description": "One line of narration and the steps performed while it is said.",
|
|
@@ -585,8 +595,7 @@
|
|
|
585
595
|
"description": "Extra time to stay on the beat after its narration and steps end."
|
|
586
596
|
}
|
|
587
597
|
}
|
|
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}."
|
|
598
|
+
}
|
|
590
599
|
},
|
|
591
600
|
"voice": {
|
|
592
601
|
"type": "object",
|
|
@@ -727,7 +736,7 @@
|
|
|
727
736
|
}
|
|
728
737
|
],
|
|
729
738
|
"body": "json",
|
|
730
|
-
"bodyFields": ["source", "beats", "voice", "captions", "style", "viewport", "formats"],
|
|
739
|
+
"bodyFields": ["source", "goal", "alias", "beats", "voice", "captions", "style", "viewport", "formats"],
|
|
731
740
|
"rawFields": [],
|
|
732
741
|
"toolArgs": ["job_id", "wait_s", "include_poster"],
|
|
733
742
|
"bodyDefaults": {},
|
|
@@ -757,7 +766,7 @@
|
|
|
757
766
|
"template": {
|
|
758
767
|
"type": "string",
|
|
759
768
|
"default": "base",
|
|
760
|
-
"description": "Template name or `tpl_` ID
|
|
769
|
+
"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`)."
|
|
761
770
|
},
|
|
762
771
|
"snapshot": {
|
|
763
772
|
"type": "string",
|
|
@@ -1444,7 +1453,7 @@
|
|
|
1444
1453
|
"status": {
|
|
1445
1454
|
"type": "string",
|
|
1446
1455
|
"description": "Only sandboxes with this status.",
|
|
1447
|
-
"enum": ["running", "paused", "stopped", "failed"]
|
|
1456
|
+
"enum": ["running", "paused", "stopped", "failed", "hibernated"]
|
|
1448
1457
|
},
|
|
1449
1458
|
"limit": {
|
|
1450
1459
|
"type": "integer",
|
|
@@ -1567,6 +1576,135 @@
|
|
|
1567
1576
|
"bodyDefaults": {},
|
|
1568
1577
|
"queryDefaults": {}
|
|
1569
1578
|
},
|
|
1579
|
+
{
|
|
1580
|
+
"name": "sandbox_swarm",
|
|
1581
|
+
"group": "sandboxes",
|
|
1582
|
+
"title": "Run a swarm",
|
|
1583
|
+
"description": "Fork one checkpoint (a forkable sandbox, running or paused, or a snapshot) into up to 32 children, run a command in each (one per child in children, or count copies of defaults; B3OS_SWARM_INDEX tells them apart) and return every child's exit code, output and timing. Waits up to wait_s seconds; if it is still running, call again with job_id.",
|
|
1584
|
+
"annotations": {
|
|
1585
|
+
"title": "Run a swarm",
|
|
1586
|
+
"readOnlyHint": false,
|
|
1587
|
+
"destructiveHint": false,
|
|
1588
|
+
"openWorldHint": true
|
|
1589
|
+
},
|
|
1590
|
+
"inputSchema": {
|
|
1591
|
+
"type": "object",
|
|
1592
|
+
"properties": {
|
|
1593
|
+
"from": {
|
|
1594
|
+
"type": "object",
|
|
1595
|
+
"description": "The checkpoint: {sandbox: sbx_…} (created with forkable: true) or {snapshot: snap_…}."
|
|
1596
|
+
},
|
|
1597
|
+
"children": {
|
|
1598
|
+
"type": "array",
|
|
1599
|
+
"description": "One object per child: {cmd, env, cwd, stdin, timeout_ms}; cmd is a shell line or an argv.",
|
|
1600
|
+
"items": {
|
|
1601
|
+
"type": "object"
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1604
|
+
"count": {
|
|
1605
|
+
"type": "integer",
|
|
1606
|
+
"minimum": 1,
|
|
1607
|
+
"maximum": 32,
|
|
1608
|
+
"description": "This many children, each running `defaults`."
|
|
1609
|
+
},
|
|
1610
|
+
"defaults": {
|
|
1611
|
+
"type": "object",
|
|
1612
|
+
"description": "The child spec every child starts from ({cmd, env, cwd, timeout_ms})."
|
|
1613
|
+
},
|
|
1614
|
+
"stop_when": {
|
|
1615
|
+
"type": "string",
|
|
1616
|
+
"enum": ["all", "first_success"],
|
|
1617
|
+
"default": "all",
|
|
1618
|
+
"description": "`first_success`: once a child exits 0, kill the other children's commands and end the swarm."
|
|
1619
|
+
},
|
|
1620
|
+
"keep": {
|
|
1621
|
+
"type": "string",
|
|
1622
|
+
"enum": ["none", "succeeded", "all"],
|
|
1623
|
+
"default": "none",
|
|
1624
|
+
"description": "Which children stay running after their command ends; the rest are deleted."
|
|
1625
|
+
},
|
|
1626
|
+
"job_id": {
|
|
1627
|
+
"type": "string",
|
|
1628
|
+
"description": "A swm_… id from an earlier call: keep waiting or read the results."
|
|
1629
|
+
},
|
|
1630
|
+
"wait_s": {
|
|
1631
|
+
"type": "integer",
|
|
1632
|
+
"minimum": 0,
|
|
1633
|
+
"maximum": 60,
|
|
1634
|
+
"default": 50,
|
|
1635
|
+
"description": "Seconds to wait for the job before returning its id and status (then call again with job_id)."
|
|
1636
|
+
}
|
|
1637
|
+
},
|
|
1638
|
+
"additionalProperties": false
|
|
1639
|
+
},
|
|
1640
|
+
"operationId": "sandboxesCreateSwarm",
|
|
1641
|
+
"method": "POST",
|
|
1642
|
+
"path": "/v1/sandboxes/swarms",
|
|
1643
|
+
"scope": "sandboxes:write",
|
|
1644
|
+
"servedBy": "node",
|
|
1645
|
+
"stage": "preview",
|
|
1646
|
+
"flag": "sandboxes.swarms",
|
|
1647
|
+
"pathParams": [],
|
|
1648
|
+
"queryParams": [
|
|
1649
|
+
{
|
|
1650
|
+
"name": "wait",
|
|
1651
|
+
"from": "wait_s"
|
|
1652
|
+
}
|
|
1653
|
+
],
|
|
1654
|
+
"body": "json",
|
|
1655
|
+
"bodyFields": ["from", "children", "count", "defaults", "stop_when", "keep"],
|
|
1656
|
+
"rawFields": [],
|
|
1657
|
+
"toolArgs": ["job_id", "wait_s"],
|
|
1658
|
+
"bodyDefaults": {},
|
|
1659
|
+
"queryDefaults": {},
|
|
1660
|
+
"continueWith": {
|
|
1661
|
+
"arg": "job_id",
|
|
1662
|
+
"operationId": "sandboxesGetSwarm",
|
|
1663
|
+
"method": "GET",
|
|
1664
|
+
"path": "/v1/sandboxes/swarms/{swarm_id}",
|
|
1665
|
+
"pathParam": "swarm_id"
|
|
1666
|
+
}
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
"name": "sandbox_cancel_swarm",
|
|
1670
|
+
"group": "sandboxes",
|
|
1671
|
+
"title": "Cancel a swarm",
|
|
1672
|
+
"description": "Stop a running swarm: its children's commands are killed and the children deleted unless its keep keeps them.",
|
|
1673
|
+
"annotations": {
|
|
1674
|
+
"title": "Cancel a swarm",
|
|
1675
|
+
"readOnlyHint": false,
|
|
1676
|
+
"destructiveHint": true,
|
|
1677
|
+
"idempotentHint": true,
|
|
1678
|
+
"openWorldHint": false
|
|
1679
|
+
},
|
|
1680
|
+
"inputSchema": {
|
|
1681
|
+
"type": "object",
|
|
1682
|
+
"properties": {
|
|
1683
|
+
"swarm_id": {
|
|
1684
|
+
"type": "string",
|
|
1685
|
+
"pattern": "^swm_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1686
|
+
"description": "The swarm ID (`swm_…`)."
|
|
1687
|
+
}
|
|
1688
|
+
},
|
|
1689
|
+
"required": ["swarm_id"],
|
|
1690
|
+
"additionalProperties": false
|
|
1691
|
+
},
|
|
1692
|
+
"operationId": "sandboxesCancelSwarm",
|
|
1693
|
+
"method": "POST",
|
|
1694
|
+
"path": "/v1/sandboxes/swarms/{swarm_id}/cancel",
|
|
1695
|
+
"scope": "sandboxes:write",
|
|
1696
|
+
"servedBy": "node",
|
|
1697
|
+
"stage": "preview",
|
|
1698
|
+
"flag": "sandboxes.swarms",
|
|
1699
|
+
"pathParams": ["swarm_id"],
|
|
1700
|
+
"queryParams": [],
|
|
1701
|
+
"body": "none",
|
|
1702
|
+
"bodyFields": [],
|
|
1703
|
+
"rawFields": [],
|
|
1704
|
+
"toolArgs": [],
|
|
1705
|
+
"bodyDefaults": {},
|
|
1706
|
+
"queryDefaults": {}
|
|
1707
|
+
},
|
|
1570
1708
|
{
|
|
1571
1709
|
"name": "sandbox_snapshot",
|
|
1572
1710
|
"group": "sandboxes",
|
|
@@ -1890,6 +2028,81 @@
|
|
|
1890
2028
|
"bodyDefaults": {},
|
|
1891
2029
|
"queryDefaults": {}
|
|
1892
2030
|
},
|
|
2031
|
+
{
|
|
2032
|
+
"name": "sandbox_port_host",
|
|
2033
|
+
"group": "sandboxes",
|
|
2034
|
+
"title": "Give a port its own host",
|
|
2035
|
+
"description": "Give a port inside the sandbox its own host, https://<port>-sbx-<id>.b3os.io, where the app runs at / and keeps its cookies, so sign-in works. Returns the host and a link that opens it (shared by link only; the link is a secret). Prefer it to sandbox_port_url for web apps; rotate: true ends every earlier link.",
|
|
2036
|
+
"annotations": {
|
|
2037
|
+
"title": "Give a port its own host",
|
|
2038
|
+
"readOnlyHint": false,
|
|
2039
|
+
"destructiveHint": false,
|
|
2040
|
+
"openWorldHint": false
|
|
2041
|
+
},
|
|
2042
|
+
"inputSchema": {
|
|
2043
|
+
"type": "object",
|
|
2044
|
+
"properties": {
|
|
2045
|
+
"sandbox_id": {
|
|
2046
|
+
"type": "string",
|
|
2047
|
+
"pattern": "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2048
|
+
"description": "The sandbox ID (`sbx_…`)."
|
|
2049
|
+
},
|
|
2050
|
+
"port": {
|
|
2051
|
+
"type": "integer",
|
|
2052
|
+
"minimum": 1,
|
|
2053
|
+
"maximum": 65535,
|
|
2054
|
+
"description": "A port declared in the sandbox's `ports` (not 49983, which is kept for E2B's envd)."
|
|
2055
|
+
},
|
|
2056
|
+
"ttl_s": {
|
|
2057
|
+
"type": "integer",
|
|
2058
|
+
"minimum": 60,
|
|
2059
|
+
"maximum": 86400,
|
|
2060
|
+
"default": 600,
|
|
2061
|
+
"description": "How long the link works, in seconds."
|
|
2062
|
+
},
|
|
2063
|
+
"rotate": {
|
|
2064
|
+
"type": "boolean",
|
|
2065
|
+
"default": false,
|
|
2066
|
+
"description": "Replace the host's secret first: every earlier link and cookie of this host stops working within 6 seconds (streams already open can run up to an hour)."
|
|
2067
|
+
},
|
|
2068
|
+
"cookies": {
|
|
2069
|
+
"type": "object",
|
|
2070
|
+
"required": ["mode", "script"],
|
|
2071
|
+
"properties": {
|
|
2072
|
+
"mode": {
|
|
2073
|
+
"type": "string",
|
|
2074
|
+
"enum": ["isolated", "shared"],
|
|
2075
|
+
"description": "`isolated`: the app's server gets only the cookies its own address set, plus..."
|
|
2076
|
+
},
|
|
2077
|
+
"script": {
|
|
2078
|
+
"type": "array",
|
|
2079
|
+
"description": "Cookies a page script writes and the app's server reads, by name.",
|
|
2080
|
+
"items": {
|
|
2081
|
+
"type": "string",
|
|
2082
|
+
"pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
},
|
|
2086
|
+
"additionalProperties": false
|
|
2087
|
+
}
|
|
2088
|
+
},
|
|
2089
|
+
"required": ["sandbox_id", "port"],
|
|
2090
|
+
"additionalProperties": false
|
|
2091
|
+
},
|
|
2092
|
+
"operationId": "platformCreatePortHost",
|
|
2093
|
+
"method": "POST",
|
|
2094
|
+
"path": "/v1/sandboxes/{sandbox_id}/ports/{port}/host",
|
|
2095
|
+
"scope": "sandboxes:run",
|
|
2096
|
+
"servedBy": "edge",
|
|
2097
|
+
"pathParams": ["sandbox_id", "port"],
|
|
2098
|
+
"queryParams": [],
|
|
2099
|
+
"body": "json",
|
|
2100
|
+
"bodyFields": ["ttl_s", "rotate", "cookies"],
|
|
2101
|
+
"rawFields": [],
|
|
2102
|
+
"toolArgs": [],
|
|
2103
|
+
"bodyDefaults": {},
|
|
2104
|
+
"queryDefaults": {}
|
|
2105
|
+
},
|
|
1893
2106
|
{
|
|
1894
2107
|
"name": "sandbox_logs",
|
|
1895
2108
|
"group": "sandboxes",
|
|
@@ -2695,6 +2908,69 @@
|
|
|
2695
2908
|
"bodyDefaults": {},
|
|
2696
2909
|
"queryDefaults": {}
|
|
2697
2910
|
},
|
|
2911
|
+
{
|
|
2912
|
+
"name": "routine_list_runs",
|
|
2913
|
+
"group": "routines",
|
|
2914
|
+
"title": "List a routine's runs",
|
|
2915
|
+
"description": "List a routine's recent runs (by name or rtn_ id), newest first, one line each with its status, trigger, version, duration and outcome, and for a failed run the step it failed at with the error.",
|
|
2916
|
+
"annotations": {
|
|
2917
|
+
"title": "List a routine's runs",
|
|
2918
|
+
"readOnlyHint": true,
|
|
2919
|
+
"openWorldHint": false
|
|
2920
|
+
},
|
|
2921
|
+
"inputSchema": {
|
|
2922
|
+
"type": "object",
|
|
2923
|
+
"properties": {
|
|
2924
|
+
"routine": {
|
|
2925
|
+
"type": "string",
|
|
2926
|
+
"description": "A routine ID (`rtn_…`) or name. Names are unique per project; `runs`, `hooks`, `validate` and `import` are reserved and cannot be routine names."
|
|
2927
|
+
},
|
|
2928
|
+
"status": {
|
|
2929
|
+
"type": "string",
|
|
2930
|
+
"description": "Only runs with this status.",
|
|
2931
|
+
"enum": ["queued", "running", "succeeded", "failed", "canceled"]
|
|
2932
|
+
},
|
|
2933
|
+
"limit": {
|
|
2934
|
+
"type": "integer",
|
|
2935
|
+
"minimum": 1,
|
|
2936
|
+
"maximum": 100,
|
|
2937
|
+
"default": 10,
|
|
2938
|
+
"description": "Page size, from 1 to 100."
|
|
2939
|
+
},
|
|
2940
|
+
"cursor": {
|
|
2941
|
+
"type": "string",
|
|
2942
|
+
"description": "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page."
|
|
2943
|
+
}
|
|
2944
|
+
},
|
|
2945
|
+
"required": ["routine"],
|
|
2946
|
+
"additionalProperties": false
|
|
2947
|
+
},
|
|
2948
|
+
"operationId": "routinesListRuns",
|
|
2949
|
+
"method": "GET",
|
|
2950
|
+
"path": "/v1/routines/{routine}/runs",
|
|
2951
|
+
"scope": "routines:read",
|
|
2952
|
+
"servedBy": "node",
|
|
2953
|
+
"pathParams": ["routine"],
|
|
2954
|
+
"queryParams": [
|
|
2955
|
+
{
|
|
2956
|
+
"name": "status"
|
|
2957
|
+
},
|
|
2958
|
+
{
|
|
2959
|
+
"name": "limit"
|
|
2960
|
+
},
|
|
2961
|
+
{
|
|
2962
|
+
"name": "cursor"
|
|
2963
|
+
}
|
|
2964
|
+
],
|
|
2965
|
+
"body": "none",
|
|
2966
|
+
"bodyFields": [],
|
|
2967
|
+
"rawFields": [],
|
|
2968
|
+
"toolArgs": [],
|
|
2969
|
+
"bodyDefaults": {},
|
|
2970
|
+
"queryDefaults": {
|
|
2971
|
+
"limit": 10
|
|
2972
|
+
}
|
|
2973
|
+
},
|
|
2698
2974
|
{
|
|
2699
2975
|
"name": "routine_get_run",
|
|
2700
2976
|
"group": "routines",
|
|
@@ -2731,6 +3007,49 @@
|
|
|
2731
3007
|
"bodyDefaults": {},
|
|
2732
3008
|
"queryDefaults": {}
|
|
2733
3009
|
},
|
|
3010
|
+
{
|
|
3011
|
+
"name": "routine_run_events",
|
|
3012
|
+
"group": "routines",
|
|
3013
|
+
"title": "Read a run's events",
|
|
3014
|
+
"description": "Read a finished run's event log: when each step started, retried, waited and ended, with errors, and the run.log lines of its core/log steps. A run still in progress answers with its steps so far.",
|
|
3015
|
+
"annotations": {
|
|
3016
|
+
"title": "Read a run's events",
|
|
3017
|
+
"readOnlyHint": true,
|
|
3018
|
+
"openWorldHint": false
|
|
3019
|
+
},
|
|
3020
|
+
"inputSchema": {
|
|
3021
|
+
"type": "object",
|
|
3022
|
+
"properties": {
|
|
3023
|
+
"run_id": {
|
|
3024
|
+
"type": "string",
|
|
3025
|
+
"pattern": "^run_[0-9a-hjkmnp-tv-z]{26}$",
|
|
3026
|
+
"description": "The run ID (`run_…`)."
|
|
3027
|
+
},
|
|
3028
|
+
"max_events": {
|
|
3029
|
+
"type": "integer",
|
|
3030
|
+
"minimum": 1,
|
|
3031
|
+
"maximum": 500,
|
|
3032
|
+
"default": 40,
|
|
3033
|
+
"description": "The last events to show; the answer counts the earlier ones."
|
|
3034
|
+
}
|
|
3035
|
+
},
|
|
3036
|
+
"required": ["run_id"],
|
|
3037
|
+
"additionalProperties": false
|
|
3038
|
+
},
|
|
3039
|
+
"operationId": "routinesRunEvents",
|
|
3040
|
+
"method": "GET",
|
|
3041
|
+
"path": "/v1/routines/runs/{run_id}/events",
|
|
3042
|
+
"scope": "routines:read",
|
|
3043
|
+
"servedBy": "node",
|
|
3044
|
+
"pathParams": ["run_id"],
|
|
3045
|
+
"queryParams": [],
|
|
3046
|
+
"body": "none",
|
|
3047
|
+
"bodyFields": [],
|
|
3048
|
+
"rawFields": [],
|
|
3049
|
+
"toolArgs": ["max_events"],
|
|
3050
|
+
"bodyDefaults": {},
|
|
3051
|
+
"queryDefaults": {}
|
|
3052
|
+
},
|
|
2734
3053
|
{
|
|
2735
3054
|
"name": "routine_validate",
|
|
2736
3055
|
"group": "routines",
|
|
@@ -3025,7 +3344,7 @@
|
|
|
3025
3344
|
"name": "requests_list",
|
|
3026
3345
|
"group": "platform",
|
|
3027
3346
|
"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.",
|
|
3347
|
+
"description": "List the API requests the node served for this project in the last 7 days, newest first, one line each with its status, duration and error; filter by product, operation, status, key, source, connection kind, sandbox, trace or time.",
|
|
3029
3348
|
"annotations": {
|
|
3030
3349
|
"title": "List API requests",
|
|
3031
3350
|
"readOnlyHint": true,
|
|
@@ -3049,6 +3368,10 @@
|
|
|
3049
3368
|
"type": "string",
|
|
3050
3369
|
"pattern": "^key_[0-9a-hjkmnp-tv-z]{26}$"
|
|
3051
3370
|
},
|
|
3371
|
+
"source": {
|
|
3372
|
+
"type": "string",
|
|
3373
|
+
"description": "Only requests from this source, or from any of a comma-separated list of them (`api_key,cli_token`), each a `RequestSource` value at most once."
|
|
3374
|
+
},
|
|
3052
3375
|
"connection": {
|
|
3053
3376
|
"type": "string",
|
|
3054
3377
|
"description": "Only requests that arrived this way.",
|
|
@@ -3059,6 +3382,11 @@
|
|
|
3059
3382
|
"pattern": "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
3060
3383
|
"description": "Only requests made from inside this sandbox."
|
|
3061
3384
|
},
|
|
3385
|
+
"trace_id": {
|
|
3386
|
+
"type": "string",
|
|
3387
|
+
"pattern": "^[0-9a-f]{32}$",
|
|
3388
|
+
"description": "Only requests of this W3C trace (the trace id of their `traceparent`): one chain of calls, such as a scrape, then a render, then a sandbox exec, made with on..."
|
|
3389
|
+
},
|
|
3062
3390
|
"since": {
|
|
3063
3391
|
"type": "string",
|
|
3064
3392
|
"format": "date-time"
|
|
@@ -3096,12 +3424,18 @@
|
|
|
3096
3424
|
{
|
|
3097
3425
|
"name": "key_id"
|
|
3098
3426
|
},
|
|
3427
|
+
{
|
|
3428
|
+
"name": "source"
|
|
3429
|
+
},
|
|
3099
3430
|
{
|
|
3100
3431
|
"name": "connection"
|
|
3101
3432
|
},
|
|
3102
3433
|
{
|
|
3103
3434
|
"name": "sandbox_id"
|
|
3104
3435
|
},
|
|
3436
|
+
{
|
|
3437
|
+
"name": "trace_id"
|
|
3438
|
+
},
|
|
3105
3439
|
{
|
|
3106
3440
|
"name": "since"
|
|
3107
3441
|
},
|
|
@@ -3123,7 +3457,7 @@
|
|
|
3123
3457
|
"name": "requests_get",
|
|
3124
3458
|
"group": "platform",
|
|
3125
3459
|
"title": "Get an API request",
|
|
3126
|
-
"description": "Get one request by its ID (a response's x-request-id)
|
|
3460
|
+
"description": "Get one request by its ID (a response's x-request-id): its timing phase breakdown (node and edge), its error if it failed, and the usage it was charged.",
|
|
3127
3461
|
"annotations": {
|
|
3128
3462
|
"title": "Get an API request",
|
|
3129
3463
|
"readOnlyHint": true,
|
|
@@ -3156,36 +3490,2606 @@
|
|
|
3156
3490
|
"queryDefaults": {}
|
|
3157
3491
|
},
|
|
3158
3492
|
{
|
|
3159
|
-
"name": "
|
|
3493
|
+
"name": "traces_list",
|
|
3160
3494
|
"group": "platform",
|
|
3161
|
-
"title": "List
|
|
3162
|
-
"description": "List
|
|
3495
|
+
"title": "List traces",
|
|
3496
|
+
"description": "List recent traces from the request log, newest first: each is the calls that shared one trace id (one turn of an agent), with its start, duration, calls by kind and its first error.",
|
|
3163
3497
|
"annotations": {
|
|
3164
|
-
"title": "List
|
|
3498
|
+
"title": "List traces",
|
|
3165
3499
|
"readOnlyHint": true,
|
|
3166
3500
|
"openWorldHint": false
|
|
3167
3501
|
},
|
|
3168
3502
|
"inputSchema": {
|
|
3169
3503
|
"type": "object",
|
|
3170
3504
|
"properties": {
|
|
3171
|
-
"
|
|
3505
|
+
"since": {
|
|
3172
3506
|
"type": "string",
|
|
3173
|
-
"format": "
|
|
3174
|
-
"description": "Only
|
|
3507
|
+
"format": "date-time",
|
|
3508
|
+
"description": "Only requests from this time on (RFC 3339); the log keeps 7 days."
|
|
3175
3509
|
},
|
|
3176
|
-
"
|
|
3510
|
+
"sandbox_id": {
|
|
3177
3511
|
"type": "string",
|
|
3178
|
-
"
|
|
3179
|
-
|
|
3512
|
+
"pattern": "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
3513
|
+
"description": "Only requests made from inside this sandbox."
|
|
3514
|
+
},
|
|
3515
|
+
"source": {
|
|
3516
|
+
"type": "string",
|
|
3517
|
+
"description": "Only requests from this source, or from any of a comma-separated list of them (`api_key,cli_token`), each a `RequestSource` value at most once."
|
|
3518
|
+
},
|
|
3519
|
+
"status": {
|
|
3520
|
+
"type": "string",
|
|
3521
|
+
"enum": ["ok", "error"],
|
|
3522
|
+
"description": "Only traces where no call failed (ok), or where at least one did (error)."
|
|
3523
|
+
},
|
|
3524
|
+
"app": {
|
|
3525
|
+
"type": "string",
|
|
3526
|
+
"pattern": "^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$",
|
|
3527
|
+
"description": "Only traces of this application's services (its b3os.yaml name); also needs sandboxes:read."
|
|
3528
|
+
},
|
|
3529
|
+
"single_calls": {
|
|
3530
|
+
"type": "boolean",
|
|
3531
|
+
"default": false,
|
|
3532
|
+
"description": "Also list traces of one call and its retries (a call made outside a turn has its own)."
|
|
3533
|
+
},
|
|
3534
|
+
"limit": {
|
|
3535
|
+
"type": "integer",
|
|
3536
|
+
"minimum": 1,
|
|
3537
|
+
"maximum": 50,
|
|
3538
|
+
"default": 10,
|
|
3539
|
+
"description": "Traces to list."
|
|
3540
|
+
}
|
|
3541
|
+
},
|
|
3542
|
+
"additionalProperties": false
|
|
3543
|
+
},
|
|
3544
|
+
"operationId": "platformListRequests",
|
|
3545
|
+
"method": "GET",
|
|
3546
|
+
"path": "/v1/requests",
|
|
3547
|
+
"scope": "platform:read",
|
|
3548
|
+
"servedBy": "node",
|
|
3549
|
+
"pathParams": [],
|
|
3550
|
+
"queryParams": [
|
|
3551
|
+
{
|
|
3552
|
+
"name": "since"
|
|
3553
|
+
},
|
|
3554
|
+
{
|
|
3555
|
+
"name": "sandbox_id"
|
|
3556
|
+
},
|
|
3557
|
+
{
|
|
3558
|
+
"name": "source"
|
|
3559
|
+
}
|
|
3560
|
+
],
|
|
3561
|
+
"body": "none",
|
|
3562
|
+
"bodyFields": [],
|
|
3563
|
+
"rawFields": [],
|
|
3564
|
+
"toolArgs": ["status", "app", "single_calls", "limit"],
|
|
3565
|
+
"bodyDefaults": {},
|
|
3566
|
+
"queryDefaults": {}
|
|
3567
|
+
},
|
|
3568
|
+
{
|
|
3569
|
+
"name": "traces_get",
|
|
3570
|
+
"group": "platform",
|
|
3571
|
+
"title": "Get a trace",
|
|
3572
|
+
"description": "Read one trace as a waterfall: its calls in start order, each with its kind, start offset, duration, status, the operation or model it called, its tokens and usage, and the error of a failed call.",
|
|
3573
|
+
"annotations": {
|
|
3574
|
+
"title": "Get a trace",
|
|
3575
|
+
"readOnlyHint": true,
|
|
3576
|
+
"openWorldHint": false
|
|
3577
|
+
},
|
|
3578
|
+
"inputSchema": {
|
|
3579
|
+
"type": "object",
|
|
3580
|
+
"properties": {
|
|
3581
|
+
"trace_id": {
|
|
3582
|
+
"type": "string",
|
|
3583
|
+
"pattern": "^[0-9a-f]{32}$",
|
|
3584
|
+
"description": "The trace's 32-hex id: a request's trace_id, or one traces_list gave."
|
|
3585
|
+
},
|
|
3586
|
+
"max_spans": {
|
|
3587
|
+
"type": "integer",
|
|
3588
|
+
"minimum": 1,
|
|
3589
|
+
"maximum": 300,
|
|
3590
|
+
"default": 25,
|
|
3591
|
+
"description": "Spans to show; the answer counts the rest and says how to read them."
|
|
3592
|
+
},
|
|
3593
|
+
"from_span": {
|
|
3594
|
+
"type": "integer",
|
|
3595
|
+
"minimum": 1,
|
|
3596
|
+
"maximum": 300,
|
|
3597
|
+
"default": 1,
|
|
3598
|
+
"description": "The first span to show, by its number in an earlier answer."
|
|
3599
|
+
}
|
|
3600
|
+
},
|
|
3601
|
+
"required": ["trace_id"],
|
|
3602
|
+
"additionalProperties": false
|
|
3603
|
+
},
|
|
3604
|
+
"operationId": "platformGetTrace",
|
|
3605
|
+
"method": "GET",
|
|
3606
|
+
"path": "/v1/traces/{trace_id}",
|
|
3607
|
+
"scope": "platform:read",
|
|
3608
|
+
"servedBy": "edge",
|
|
3609
|
+
"pathParams": ["trace_id"],
|
|
3610
|
+
"queryParams": [],
|
|
3611
|
+
"body": "none",
|
|
3612
|
+
"bodyFields": [],
|
|
3613
|
+
"rawFields": [],
|
|
3614
|
+
"toolArgs": ["max_spans", "from_span"],
|
|
3615
|
+
"bodyDefaults": {},
|
|
3616
|
+
"queryDefaults": {}
|
|
3617
|
+
},
|
|
3618
|
+
{
|
|
3619
|
+
"name": "llm_calls_list",
|
|
3620
|
+
"group": "platform",
|
|
3621
|
+
"title": "List kept model calls",
|
|
3622
|
+
"description": "List the model calls prompt logging kept in the last 7 days, newest first: model, tokens, timing, finish reason and the tools the model chose, never the prompt; filter by trace, model, sandbox or time.",
|
|
3623
|
+
"annotations": {
|
|
3624
|
+
"title": "List kept model calls",
|
|
3625
|
+
"readOnlyHint": true,
|
|
3626
|
+
"openWorldHint": false
|
|
3627
|
+
},
|
|
3628
|
+
"inputSchema": {
|
|
3629
|
+
"type": "object",
|
|
3630
|
+
"properties": {
|
|
3631
|
+
"trace_id": {
|
|
3632
|
+
"type": "string",
|
|
3633
|
+
"pattern": "^[0-9a-f]{32}$",
|
|
3634
|
+
"description": "Only calls of this W3C trace (the trace id of their `traceparent`)."
|
|
3635
|
+
},
|
|
3636
|
+
"model": {
|
|
3637
|
+
"type": "string"
|
|
3638
|
+
},
|
|
3639
|
+
"sandbox_id": {
|
|
3640
|
+
"type": "string",
|
|
3641
|
+
"pattern": "^sbx_[0-9a-hjkmnp-tv-z]{26}$",
|
|
3642
|
+
"description": "Only calls made from inside this sandbox."
|
|
3643
|
+
},
|
|
3644
|
+
"since": {
|
|
3645
|
+
"type": "string",
|
|
3646
|
+
"format": "date-time"
|
|
3647
|
+
},
|
|
3648
|
+
"limit": {
|
|
3649
|
+
"type": "integer",
|
|
3650
|
+
"minimum": 1,
|
|
3651
|
+
"maximum": 100,
|
|
3652
|
+
"default": 10,
|
|
3653
|
+
"description": "Page size, from 1 to 100."
|
|
3654
|
+
},
|
|
3655
|
+
"cursor": {
|
|
3656
|
+
"type": "string",
|
|
3657
|
+
"description": "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page."
|
|
3658
|
+
}
|
|
3659
|
+
},
|
|
3660
|
+
"additionalProperties": false
|
|
3661
|
+
},
|
|
3662
|
+
"operationId": "platformListLlmCalls",
|
|
3663
|
+
"method": "GET",
|
|
3664
|
+
"path": "/v1/llm-calls",
|
|
3665
|
+
"scope": "platform:read",
|
|
3666
|
+
"servedBy": "node",
|
|
3667
|
+
"pathParams": [],
|
|
3668
|
+
"queryParams": [
|
|
3669
|
+
{
|
|
3670
|
+
"name": "trace_id"
|
|
3671
|
+
},
|
|
3672
|
+
{
|
|
3673
|
+
"name": "model"
|
|
3674
|
+
},
|
|
3675
|
+
{
|
|
3676
|
+
"name": "sandbox_id"
|
|
3677
|
+
},
|
|
3678
|
+
{
|
|
3679
|
+
"name": "since"
|
|
3680
|
+
},
|
|
3681
|
+
{
|
|
3682
|
+
"name": "limit"
|
|
3683
|
+
},
|
|
3684
|
+
{
|
|
3685
|
+
"name": "cursor"
|
|
3686
|
+
}
|
|
3687
|
+
],
|
|
3688
|
+
"body": "none",
|
|
3689
|
+
"bodyFields": [],
|
|
3690
|
+
"rawFields": [],
|
|
3691
|
+
"toolArgs": [],
|
|
3692
|
+
"bodyDefaults": {},
|
|
3693
|
+
"queryDefaults": {
|
|
3694
|
+
"limit": 10
|
|
3695
|
+
}
|
|
3696
|
+
},
|
|
3697
|
+
{
|
|
3698
|
+
"name": "llm_calls_get",
|
|
3699
|
+
"group": "platform",
|
|
3700
|
+
"title": "Get a kept model call",
|
|
3701
|
+
"description": "Get one kept model call's metadata by its request ID: model, sampling settings, tools offered and chosen, tokens, timing and what of its content was kept; never the prompt or the answer.",
|
|
3702
|
+
"annotations": {
|
|
3703
|
+
"title": "Get a kept model call",
|
|
3704
|
+
"readOnlyHint": true,
|
|
3705
|
+
"openWorldHint": false
|
|
3706
|
+
},
|
|
3707
|
+
"inputSchema": {
|
|
3708
|
+
"type": "object",
|
|
3709
|
+
"properties": {
|
|
3710
|
+
"request_id": {
|
|
3711
|
+
"type": "string",
|
|
3712
|
+
"pattern": "^req_[0-9a-hjkmnp-tv-z]{26}$",
|
|
3713
|
+
"description": "The request ID of the model call (its `x-request-id`)."
|
|
3714
|
+
}
|
|
3715
|
+
},
|
|
3716
|
+
"required": ["request_id"],
|
|
3717
|
+
"additionalProperties": false
|
|
3718
|
+
},
|
|
3719
|
+
"operationId": "platformGetLlmCall",
|
|
3720
|
+
"method": "GET",
|
|
3721
|
+
"path": "/v1/llm-calls/{request_id}",
|
|
3722
|
+
"scope": "platform:read",
|
|
3723
|
+
"servedBy": "node",
|
|
3724
|
+
"pathParams": ["request_id"],
|
|
3725
|
+
"queryParams": [],
|
|
3726
|
+
"body": "none",
|
|
3727
|
+
"bodyFields": [],
|
|
3728
|
+
"rawFields": [],
|
|
3729
|
+
"toolArgs": [],
|
|
3730
|
+
"bodyDefaults": {},
|
|
3731
|
+
"queryDefaults": {}
|
|
3732
|
+
},
|
|
3733
|
+
{
|
|
3734
|
+
"name": "llm_calls_get_prompt_and_answer",
|
|
3735
|
+
"group": "platform",
|
|
3736
|
+
"title": "Read a model call's prompt and answer",
|
|
3737
|
+
"description": "Read a kept model call's prompt and answer: the messages and tools as the caller sent them, and the text, reasoning and tool calls the model gave. Sensitive: needs platform:content:read, which no wildcard grants; known key shapes read [redacted:<kind>]. Long strings are cut in the middle and the answer stops at max_chars; it says how to read more.",
|
|
3738
|
+
"annotations": {
|
|
3739
|
+
"title": "Read a model call's prompt and answer",
|
|
3740
|
+
"readOnlyHint": true,
|
|
3741
|
+
"openWorldHint": false
|
|
3742
|
+
},
|
|
3743
|
+
"inputSchema": {
|
|
3744
|
+
"type": "object",
|
|
3745
|
+
"properties": {
|
|
3746
|
+
"request_id": {
|
|
3747
|
+
"type": "string",
|
|
3748
|
+
"pattern": "^req_[0-9a-hjkmnp-tv-z]{26}$",
|
|
3749
|
+
"description": "The request ID of the model call (its `x-request-id`)."
|
|
3750
|
+
},
|
|
3751
|
+
"max_chars": {
|
|
3752
|
+
"type": "integer",
|
|
3753
|
+
"minimum": 1000,
|
|
3754
|
+
"maximum": 100000,
|
|
3755
|
+
"default": 12000,
|
|
3756
|
+
"description": "Characters of text to return at most."
|
|
3757
|
+
},
|
|
3758
|
+
"max_field_chars": {
|
|
3759
|
+
"type": "integer",
|
|
3760
|
+
"minimum": 200,
|
|
3761
|
+
"maximum": 100000,
|
|
3762
|
+
"default": 2000,
|
|
3763
|
+
"description": "A message, the answer or a tool call's arguments longer than this is cut in the middle."
|
|
3764
|
+
}
|
|
3765
|
+
},
|
|
3766
|
+
"required": ["request_id"],
|
|
3767
|
+
"additionalProperties": false
|
|
3768
|
+
},
|
|
3769
|
+
"operationId": "platformGetLlmCallContent",
|
|
3770
|
+
"method": "GET",
|
|
3771
|
+
"path": "/v1/llm-calls/{request_id}/content",
|
|
3772
|
+
"scope": "platform:content:read",
|
|
3773
|
+
"servedBy": "node",
|
|
3774
|
+
"pathParams": ["request_id"],
|
|
3775
|
+
"queryParams": [],
|
|
3776
|
+
"body": "none",
|
|
3777
|
+
"bodyFields": [],
|
|
3778
|
+
"rawFields": [],
|
|
3779
|
+
"toolArgs": ["max_chars", "max_field_chars"],
|
|
3780
|
+
"bodyDefaults": {},
|
|
3781
|
+
"queryDefaults": {}
|
|
3782
|
+
},
|
|
3783
|
+
{
|
|
3784
|
+
"name": "webhooks_list_deliveries",
|
|
3785
|
+
"group": "platform",
|
|
3786
|
+
"title": "List webhook deliveries",
|
|
3787
|
+
"description": "List webhook deliveries with their attempts and answers; filter by url, job or status.",
|
|
3788
|
+
"annotations": {
|
|
3789
|
+
"title": "List webhook deliveries",
|
|
3790
|
+
"readOnlyHint": true,
|
|
3791
|
+
"openWorldHint": false
|
|
3792
|
+
},
|
|
3793
|
+
"inputSchema": {
|
|
3794
|
+
"type": "object",
|
|
3795
|
+
"properties": {
|
|
3796
|
+
"url": {
|
|
3797
|
+
"type": "string",
|
|
3798
|
+
"format": "uri",
|
|
3799
|
+
"description": "Only deliveries to this endpoint."
|
|
3800
|
+
},
|
|
3801
|
+
"job_id": {
|
|
3802
|
+
"type": "string",
|
|
3803
|
+
"description": "Only deliveries for this job."
|
|
3804
|
+
},
|
|
3805
|
+
"status": {
|
|
3806
|
+
"type": "string",
|
|
3807
|
+
"enum": ["pending", "retrying", "succeeded", "failed"]
|
|
3808
|
+
},
|
|
3809
|
+
"limit": {
|
|
3810
|
+
"type": "integer",
|
|
3811
|
+
"minimum": 1,
|
|
3812
|
+
"maximum": 100,
|
|
3813
|
+
"default": 20,
|
|
3814
|
+
"description": "Page size, from 1 to 100."
|
|
3815
|
+
},
|
|
3816
|
+
"cursor": {
|
|
3817
|
+
"type": "string",
|
|
3818
|
+
"description": "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page."
|
|
3819
|
+
}
|
|
3820
|
+
},
|
|
3821
|
+
"additionalProperties": false
|
|
3822
|
+
},
|
|
3823
|
+
"operationId": "webhooksListDeliveries",
|
|
3824
|
+
"method": "GET",
|
|
3825
|
+
"path": "/v1/webhooks/deliveries",
|
|
3826
|
+
"scope": "platform:read",
|
|
3827
|
+
"servedBy": "node",
|
|
3828
|
+
"pathParams": [],
|
|
3829
|
+
"queryParams": [
|
|
3830
|
+
{
|
|
3831
|
+
"name": "url"
|
|
3832
|
+
},
|
|
3833
|
+
{
|
|
3834
|
+
"name": "job_id"
|
|
3835
|
+
},
|
|
3836
|
+
{
|
|
3837
|
+
"name": "status"
|
|
3838
|
+
},
|
|
3839
|
+
{
|
|
3840
|
+
"name": "limit"
|
|
3841
|
+
},
|
|
3842
|
+
{
|
|
3843
|
+
"name": "cursor"
|
|
3844
|
+
}
|
|
3845
|
+
],
|
|
3846
|
+
"body": "none",
|
|
3847
|
+
"bodyFields": [],
|
|
3848
|
+
"rawFields": [],
|
|
3849
|
+
"toolArgs": [],
|
|
3850
|
+
"bodyDefaults": {},
|
|
3851
|
+
"queryDefaults": {}
|
|
3852
|
+
},
|
|
3853
|
+
{
|
|
3854
|
+
"name": "webhooks_send_test",
|
|
3855
|
+
"group": "platform",
|
|
3856
|
+
"title": "Send a test webhook",
|
|
3857
|
+
"description": "Send one signed webhook.test event to a URL now and return the delivery with its outcome (not retried).",
|
|
3858
|
+
"annotations": {
|
|
3859
|
+
"title": "Send a test webhook",
|
|
3860
|
+
"readOnlyHint": false,
|
|
3861
|
+
"destructiveHint": false,
|
|
3862
|
+
"openWorldHint": true
|
|
3863
|
+
},
|
|
3864
|
+
"inputSchema": {
|
|
3865
|
+
"type": "object",
|
|
3866
|
+
"properties": {
|
|
3867
|
+
"url": {
|
|
3868
|
+
"type": "string",
|
|
3869
|
+
"format": "uri"
|
|
3870
|
+
}
|
|
3871
|
+
},
|
|
3872
|
+
"required": ["url"],
|
|
3873
|
+
"additionalProperties": false
|
|
3874
|
+
},
|
|
3875
|
+
"operationId": "webhooksSendTest",
|
|
3876
|
+
"method": "POST",
|
|
3877
|
+
"path": "/v1/webhooks/test",
|
|
3878
|
+
"scope": "platform:write",
|
|
3879
|
+
"servedBy": "node",
|
|
3880
|
+
"pathParams": [],
|
|
3881
|
+
"queryParams": [],
|
|
3882
|
+
"body": "json",
|
|
3883
|
+
"bodyFields": ["url"],
|
|
3884
|
+
"rawFields": [],
|
|
3885
|
+
"toolArgs": [],
|
|
3886
|
+
"bodyDefaults": {},
|
|
3887
|
+
"queryDefaults": {}
|
|
3888
|
+
},
|
|
3889
|
+
{
|
|
3890
|
+
"name": "render_inspect",
|
|
3891
|
+
"group": "render",
|
|
3892
|
+
"title": "Inspect a page frame by frame",
|
|
3893
|
+
"description": "Load a page, run optional browser steps, and record every frame of a short window (or read the same window from a finished video with video_id). Returns what changed between frames as plain lines (layout shifts in px, flashes, cuts, changed regions, watched elements' boxes) and one contact-sheet image of timestamped frames with before/after crops. Use it to check that a load or a click does not jump, flash or leave a skeleton. Give url or video_id. Bills one render.inspection_s per second of window.",
|
|
3894
|
+
"annotations": {
|
|
3895
|
+
"title": "Inspect a page frame by frame",
|
|
3896
|
+
"readOnlyHint": true,
|
|
3897
|
+
"openWorldHint": true
|
|
3898
|
+
},
|
|
3899
|
+
"inputSchema": {
|
|
3900
|
+
"type": "object",
|
|
3901
|
+
"properties": {
|
|
3902
|
+
"url": {
|
|
3903
|
+
"type": "string",
|
|
3904
|
+
"format": "uri",
|
|
3905
|
+
"description": "Page to load (`http` or `https`), checked by the egress guard."
|
|
3906
|
+
},
|
|
3907
|
+
"video_id": {
|
|
3908
|
+
"type": "string",
|
|
3909
|
+
"pattern": "^vid_[0-9a-hjkmnp-tv-z]{26}$",
|
|
3910
|
+
"description": "A succeeded video of this project to read the window from."
|
|
3911
|
+
},
|
|
3912
|
+
"steps": {
|
|
3913
|
+
"type": "array",
|
|
3914
|
+
"description": "Browser steps in order (url only): step 0 starts at 300 ms, each next one when the one before ends. 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}.",
|
|
3915
|
+
"items": {
|
|
3916
|
+
"description": "One browser step of a beat; `kind` selects it.",
|
|
3917
|
+
"oneOf": [
|
|
3918
|
+
{
|
|
3919
|
+
"type": "object",
|
|
3920
|
+
"required": ["kind", "url"],
|
|
3921
|
+
"properties": {
|
|
3922
|
+
"kind": {
|
|
3923
|
+
"type": "string",
|
|
3924
|
+
"const": "navigate"
|
|
3925
|
+
},
|
|
3926
|
+
"url": {
|
|
3927
|
+
"type": "string",
|
|
3928
|
+
"format": "uri"
|
|
3929
|
+
},
|
|
3930
|
+
"wait_until": {
|
|
3931
|
+
"type": "string",
|
|
3932
|
+
"enum": ["load", "domcontentloaded", "networkidle"],
|
|
3933
|
+
"default": "load"
|
|
3934
|
+
},
|
|
3935
|
+
"timeout_ms": {
|
|
3936
|
+
"type": "integer",
|
|
3937
|
+
"minimum": 100,
|
|
3938
|
+
"maximum": 120000,
|
|
3939
|
+
"default": 10000
|
|
3940
|
+
}
|
|
3941
|
+
}
|
|
3942
|
+
},
|
|
3943
|
+
{
|
|
3944
|
+
"type": "object",
|
|
3945
|
+
"required": ["kind", "target"],
|
|
3946
|
+
"properties": {
|
|
3947
|
+
"kind": {
|
|
3948
|
+
"type": "string",
|
|
3949
|
+
"const": "click"
|
|
3950
|
+
},
|
|
3951
|
+
"target": {
|
|
3952
|
+
"type": "object",
|
|
3953
|
+
"description": "How an action finds its element (the same rules as render timelines, `timelin..."
|
|
3954
|
+
},
|
|
3955
|
+
"button": {
|
|
3956
|
+
"type": "string",
|
|
3957
|
+
"enum": ["left", "right", "middle"],
|
|
3958
|
+
"default": "left"
|
|
3959
|
+
},
|
|
3960
|
+
"count": {
|
|
3961
|
+
"type": "integer",
|
|
3962
|
+
"minimum": 1,
|
|
3963
|
+
"maximum": 3,
|
|
3964
|
+
"default": 1
|
|
3965
|
+
},
|
|
3966
|
+
"modifiers": {
|
|
3967
|
+
"type": "array",
|
|
3968
|
+
"description": "Modifier keys held during the action."
|
|
3969
|
+
}
|
|
3970
|
+
}
|
|
3971
|
+
},
|
|
3972
|
+
{
|
|
3973
|
+
"type": "object",
|
|
3974
|
+
"required": ["kind", "target"],
|
|
3975
|
+
"properties": {
|
|
3976
|
+
"kind": {
|
|
3977
|
+
"type": "string",
|
|
3978
|
+
"const": "hover"
|
|
3979
|
+
},
|
|
3980
|
+
"target": {
|
|
3981
|
+
"type": "object",
|
|
3982
|
+
"description": "How an action finds its element (the same rules as render timelines, `timelin..."
|
|
3983
|
+
}
|
|
3984
|
+
}
|
|
3985
|
+
},
|
|
3986
|
+
{
|
|
3987
|
+
"type": "object",
|
|
3988
|
+
"required": ["kind", "text"],
|
|
3989
|
+
"properties": {
|
|
3990
|
+
"kind": {
|
|
3991
|
+
"type": "string",
|
|
3992
|
+
"const": "type"
|
|
3993
|
+
},
|
|
3994
|
+
"target": {
|
|
3995
|
+
"type": "object",
|
|
3996
|
+
"description": "How an action finds its element (the same rules as render timelines, `timelin..."
|
|
3997
|
+
},
|
|
3998
|
+
"text": {
|
|
3999
|
+
"type": "string"
|
|
4000
|
+
},
|
|
4001
|
+
"interval_ms": {
|
|
4002
|
+
"type": "integer",
|
|
4003
|
+
"minimum": 0,
|
|
4004
|
+
"maximum": 1000,
|
|
4005
|
+
"default": 35,
|
|
4006
|
+
"description": "Delay between characters on the video's clock."
|
|
4007
|
+
}
|
|
4008
|
+
}
|
|
4009
|
+
},
|
|
4010
|
+
{
|
|
4011
|
+
"type": "object",
|
|
4012
|
+
"required": ["kind", "key"],
|
|
4013
|
+
"properties": {
|
|
4014
|
+
"kind": {
|
|
4015
|
+
"type": "string",
|
|
4016
|
+
"const": "key"
|
|
4017
|
+
},
|
|
4018
|
+
"key": {
|
|
4019
|
+
"type": "string"
|
|
4020
|
+
},
|
|
4021
|
+
"modifiers": {
|
|
4022
|
+
"type": "array",
|
|
4023
|
+
"description": "Modifier keys held during the action."
|
|
4024
|
+
}
|
|
4025
|
+
}
|
|
4026
|
+
},
|
|
4027
|
+
{
|
|
4028
|
+
"type": "object",
|
|
4029
|
+
"required": ["kind"],
|
|
4030
|
+
"description": "Scroll to an offset (`to`), by a delta (`by`), or until `target` is in view.",
|
|
4031
|
+
"properties": {
|
|
4032
|
+
"kind": {
|
|
4033
|
+
"type": "string",
|
|
4034
|
+
"const": "scroll"
|
|
4035
|
+
},
|
|
4036
|
+
"target": {
|
|
4037
|
+
"type": "object",
|
|
4038
|
+
"description": "How an action finds its element (the same rules as render timelines, `timelin..."
|
|
4039
|
+
},
|
|
4040
|
+
"to": {
|
|
4041
|
+
"type": "object",
|
|
4042
|
+
"description": "A position in CSS pixels."
|
|
4043
|
+
},
|
|
4044
|
+
"by": {
|
|
4045
|
+
"type": "object",
|
|
4046
|
+
"description": "A position in CSS pixels."
|
|
4047
|
+
},
|
|
4048
|
+
"duration_ms": {
|
|
4049
|
+
"type": "integer",
|
|
4050
|
+
"minimum": 0,
|
|
4051
|
+
"maximum": 10000,
|
|
4052
|
+
"default": 600
|
|
4053
|
+
}
|
|
4054
|
+
}
|
|
4055
|
+
},
|
|
4056
|
+
{
|
|
4057
|
+
"type": "object",
|
|
4058
|
+
"required": ["kind", "target", "value"],
|
|
4059
|
+
"properties": {
|
|
4060
|
+
"kind": {
|
|
4061
|
+
"type": "string",
|
|
4062
|
+
"const": "select"
|
|
4063
|
+
},
|
|
4064
|
+
"target": {
|
|
4065
|
+
"type": "object",
|
|
4066
|
+
"description": "How an action finds its element (the same rules as render timelines, `timelin..."
|
|
4067
|
+
},
|
|
4068
|
+
"value": {
|
|
4069
|
+
"type": "string"
|
|
4070
|
+
}
|
|
4071
|
+
}
|
|
4072
|
+
},
|
|
4073
|
+
{
|
|
4074
|
+
"type": "object",
|
|
4075
|
+
"required": ["kind"],
|
|
4076
|
+
"description": "Pause the story (`ms`) or hold the clock until a condition holds (`for`).",
|
|
4077
|
+
"properties": {
|
|
4078
|
+
"kind": {
|
|
4079
|
+
"type": "string",
|
|
4080
|
+
"const": "wait"
|
|
4081
|
+
},
|
|
4082
|
+
"ms": {
|
|
4083
|
+
"type": "integer",
|
|
4084
|
+
"minimum": 1,
|
|
4085
|
+
"maximum": 30000
|
|
4086
|
+
},
|
|
4087
|
+
"for": {
|
|
4088
|
+
"type": "object",
|
|
4089
|
+
"description": "Exactly one condition to wait for (the same as a timeline `wait` action's `fo..."
|
|
4090
|
+
},
|
|
4091
|
+
"timeout_ms": {
|
|
4092
|
+
"type": "integer",
|
|
4093
|
+
"minimum": 100,
|
|
4094
|
+
"maximum": 120000,
|
|
4095
|
+
"default": 10000
|
|
4096
|
+
}
|
|
4097
|
+
}
|
|
4098
|
+
}
|
|
4099
|
+
],
|
|
4100
|
+
"discriminator": {
|
|
4101
|
+
"propertyName": "kind",
|
|
4102
|
+
"mapping": {
|
|
4103
|
+
"navigate": "#/components/schemas/StepNavigate",
|
|
4104
|
+
"click": "#/components/schemas/StepClick",
|
|
4105
|
+
"hover": "#/components/schemas/StepHover",
|
|
4106
|
+
"type": "#/components/schemas/StepType",
|
|
4107
|
+
"key": "#/components/schemas/StepKey",
|
|
4108
|
+
"scroll": "#/components/schemas/StepScroll",
|
|
4109
|
+
"select": "#/components/schemas/StepSelect",
|
|
4110
|
+
"wait": "#/components/schemas/StepWait"
|
|
4111
|
+
}
|
|
4112
|
+
}
|
|
4113
|
+
}
|
|
4114
|
+
},
|
|
4115
|
+
"watch": {
|
|
4116
|
+
"type": "array",
|
|
4117
|
+
"description": "Elements whose box is read on every frame (url only; the answer's trace): each {selector} (CSS) or {text, exact?, nth?}, at most 8; role and name are not accepted here.",
|
|
4118
|
+
"items": {
|
|
4119
|
+
"type": "object",
|
|
4120
|
+
"description": "An element to follow frame by frame: `selector` (CSS), or visible `text` (cas...",
|
|
4121
|
+
"properties": {
|
|
4122
|
+
"selector": {
|
|
4123
|
+
"type": "string"
|
|
4124
|
+
},
|
|
4125
|
+
"text": {
|
|
4126
|
+
"type": "string"
|
|
4127
|
+
},
|
|
4128
|
+
"exact": {
|
|
4129
|
+
"type": "boolean",
|
|
4130
|
+
"default": false
|
|
4131
|
+
},
|
|
4132
|
+
"nth": {
|
|
4133
|
+
"type": "integer",
|
|
4134
|
+
"minimum": 0,
|
|
4135
|
+
"maximum": 1000
|
|
4136
|
+
}
|
|
4137
|
+
},
|
|
4138
|
+
"oneOf": [
|
|
4139
|
+
{
|
|
4140
|
+
"required": ["selector"]
|
|
4141
|
+
},
|
|
4142
|
+
{
|
|
4143
|
+
"required": ["text"]
|
|
4144
|
+
}
|
|
4145
|
+
]
|
|
4146
|
+
}
|
|
4147
|
+
},
|
|
4148
|
+
"duration_ms": {
|
|
4149
|
+
"type": "integer",
|
|
4150
|
+
"minimum": 500,
|
|
4151
|
+
"maximum": 10000,
|
|
4152
|
+
"description": "Length of the window. Default 3000; with `video_id`, the rest of the video from `from_ms`, at most 10000 ms and 300 frames (a default cut to 300 frames carri..."
|
|
4153
|
+
},
|
|
4154
|
+
"from_ms": {
|
|
4155
|
+
"type": "integer",
|
|
4156
|
+
"minimum": 0,
|
|
4157
|
+
"description": "With `video_id` only (refused with `url`): where the window starts in the video, 0 when left out."
|
|
4158
|
+
},
|
|
4159
|
+
"fps": {
|
|
4160
|
+
"type": "integer",
|
|
4161
|
+
"enum": [10, 15, 30, 60],
|
|
4162
|
+
"description": "Frames a second. Default 30; with `video_id`, the video's own rate. `duration_ms` times `fps` is at most 300 frames."
|
|
4163
|
+
},
|
|
4164
|
+
"viewport": {
|
|
4165
|
+
"type": "object",
|
|
4166
|
+
"description": "Browser viewport in CSS pixels. Default 1280x800.",
|
|
4167
|
+
"required": ["width", "height"],
|
|
4168
|
+
"properties": {
|
|
4169
|
+
"width": {
|
|
4170
|
+
"type": "integer",
|
|
4171
|
+
"minimum": 320,
|
|
4172
|
+
"maximum": 1920
|
|
4173
|
+
},
|
|
4174
|
+
"height": {
|
|
4175
|
+
"type": "integer",
|
|
4176
|
+
"minimum": 320,
|
|
4177
|
+
"maximum": 1200
|
|
4178
|
+
}
|
|
4179
|
+
},
|
|
4180
|
+
"additionalProperties": false
|
|
4181
|
+
},
|
|
4182
|
+
"theme": {
|
|
4183
|
+
"type": "string",
|
|
4184
|
+
"enum": ["light", "dark", "auto"],
|
|
4185
|
+
"default": "auto",
|
|
4186
|
+
"description": "Emulated `prefers-color-scheme`; `auto` leaves the page default."
|
|
4187
|
+
},
|
|
4188
|
+
"interval_ms": {
|
|
4189
|
+
"type": "integer",
|
|
4190
|
+
"minimum": 33,
|
|
4191
|
+
"maximum": 10000,
|
|
4192
|
+
"description": "Put the sheet's tiles at a fixed interval from the window's start instead of where pixels change. The window may hold at most 12 tiles at this interval."
|
|
4193
|
+
},
|
|
4194
|
+
"include_image": {
|
|
4195
|
+
"type": "boolean",
|
|
4196
|
+
"default": true,
|
|
4197
|
+
"description": "Return the contact sheet itself as well as its URL."
|
|
4198
|
+
}
|
|
4199
|
+
},
|
|
4200
|
+
"additionalProperties": false
|
|
4201
|
+
},
|
|
4202
|
+
"operationId": "renderCreateInspection",
|
|
4203
|
+
"method": "POST",
|
|
4204
|
+
"path": "/v1/render/inspections",
|
|
4205
|
+
"scope": "render:run",
|
|
4206
|
+
"servedBy": "node",
|
|
4207
|
+
"pathParams": [],
|
|
4208
|
+
"queryParams": [],
|
|
4209
|
+
"body": "json",
|
|
4210
|
+
"bodyFields": [
|
|
4211
|
+
"url",
|
|
4212
|
+
"video_id",
|
|
4213
|
+
"steps",
|
|
4214
|
+
"watch",
|
|
4215
|
+
"duration_ms",
|
|
4216
|
+
"from_ms",
|
|
4217
|
+
"fps",
|
|
4218
|
+
"viewport",
|
|
4219
|
+
"theme",
|
|
4220
|
+
"interval_ms"
|
|
4221
|
+
],
|
|
4222
|
+
"rawFields": [],
|
|
4223
|
+
"toolArgs": ["include_image"],
|
|
4224
|
+
"bodyDefaults": {},
|
|
4225
|
+
"queryDefaults": {}
|
|
4226
|
+
},
|
|
4227
|
+
{
|
|
4228
|
+
"name": "render_get",
|
|
4229
|
+
"group": "render",
|
|
4230
|
+
"title": "Get a video",
|
|
4231
|
+
"description": "A video's status and files: its artifacts with signed URLs, the alias it was made with and the one that keeps it, its share's URL, and the goal it was planned from. Returns the poster as an image once it succeeded. Never waits.",
|
|
4232
|
+
"annotations": {
|
|
4233
|
+
"title": "Get a video",
|
|
4234
|
+
"readOnlyHint": true,
|
|
4235
|
+
"idempotentHint": true,
|
|
4236
|
+
"openWorldHint": false
|
|
4237
|
+
},
|
|
4238
|
+
"inputSchema": {
|
|
4239
|
+
"type": "object",
|
|
4240
|
+
"properties": {
|
|
4241
|
+
"video_id": {
|
|
4242
|
+
"type": "string",
|
|
4243
|
+
"pattern": "^vid_[0-9a-hjkmnp-tv-z]{26}$",
|
|
4244
|
+
"description": "The video ID (`vid_…`)."
|
|
4245
|
+
},
|
|
4246
|
+
"include_poster": {
|
|
4247
|
+
"type": "boolean",
|
|
4248
|
+
"default": true,
|
|
4249
|
+
"description": "Return the poster frame as an image once the video has succeeded."
|
|
4250
|
+
}
|
|
4251
|
+
},
|
|
4252
|
+
"required": ["video_id"],
|
|
4253
|
+
"additionalProperties": false
|
|
4254
|
+
},
|
|
4255
|
+
"operationId": "renderGetVideo",
|
|
4256
|
+
"method": "GET",
|
|
4257
|
+
"path": "/v1/render/videos/{video_id}",
|
|
4258
|
+
"scope": "authenticated",
|
|
4259
|
+
"servedBy": "node",
|
|
4260
|
+
"pathParams": ["video_id"],
|
|
4261
|
+
"queryParams": [],
|
|
4262
|
+
"body": "none",
|
|
4263
|
+
"bodyFields": [],
|
|
4264
|
+
"rawFields": [],
|
|
4265
|
+
"toolArgs": ["include_poster"],
|
|
4266
|
+
"bodyDefaults": {},
|
|
4267
|
+
"queryDefaults": {}
|
|
4268
|
+
},
|
|
4269
|
+
{
|
|
4270
|
+
"name": "render_restyle",
|
|
4271
|
+
"group": "render",
|
|
4272
|
+
"title": "Restyle a video",
|
|
4273
|
+
"description": "Render a finished video again in another look (background, frame, cursor, captions, output size) from its recording, without a browser: seconds, not a re-record. alias adds the new video to an alias (a restyle never inherits its source's). Waits up to wait_s seconds; call again with job_id to keep waiting.",
|
|
4274
|
+
"annotations": {
|
|
4275
|
+
"title": "Restyle a video",
|
|
4276
|
+
"readOnlyHint": false,
|
|
4277
|
+
"openWorldHint": false
|
|
4278
|
+
},
|
|
4279
|
+
"inputSchema": {
|
|
4280
|
+
"type": "object",
|
|
4281
|
+
"properties": {
|
|
4282
|
+
"video_id": {
|
|
4283
|
+
"type": "string",
|
|
4284
|
+
"pattern": "^vid_[0-9a-hjkmnp-tv-z]{26}$",
|
|
4285
|
+
"description": "The vid_… video to restyle (omit with job_id)."
|
|
4286
|
+
},
|
|
4287
|
+
"style": {
|
|
4288
|
+
"type": "object",
|
|
4289
|
+
"description": "Preset IDs from render_presets.",
|
|
4290
|
+
"properties": {
|
|
4291
|
+
"background": {
|
|
4292
|
+
"type": "string"
|
|
4293
|
+
},
|
|
4294
|
+
"frame": {
|
|
4295
|
+
"type": "string"
|
|
4296
|
+
},
|
|
4297
|
+
"cursor": {
|
|
4298
|
+
"type": "string"
|
|
4299
|
+
},
|
|
4300
|
+
"captions": {
|
|
4301
|
+
"type": "string"
|
|
4302
|
+
},
|
|
4303
|
+
"click_effect": {
|
|
4304
|
+
"type": "string"
|
|
4305
|
+
}
|
|
4306
|
+
}
|
|
4307
|
+
},
|
|
4308
|
+
"captions": {
|
|
4309
|
+
"type": "object",
|
|
4310
|
+
"properties": {
|
|
4311
|
+
"burn_in": {
|
|
4312
|
+
"type": "string",
|
|
4313
|
+
"enum": ["none", "static", "karaoke"],
|
|
4314
|
+
"description": "`none`: sidecar files only. `static`: draw each cue as a small pill in the ma..."
|
|
4315
|
+
},
|
|
4316
|
+
"sidecars": {
|
|
4317
|
+
"type": "array",
|
|
4318
|
+
"items": {
|
|
4319
|
+
"type": "string",
|
|
4320
|
+
"enum": ["vtt", "srt"]
|
|
4321
|
+
},
|
|
4322
|
+
"default": ["vtt"]
|
|
4323
|
+
},
|
|
4324
|
+
"max_chars_per_line": {
|
|
4325
|
+
"type": "integer",
|
|
4326
|
+
"minimum": 10,
|
|
4327
|
+
"maximum": 80,
|
|
4328
|
+
"default": 42
|
|
4329
|
+
},
|
|
4330
|
+
"max_lines": {
|
|
4331
|
+
"type": "integer",
|
|
4332
|
+
"minimum": 1,
|
|
4333
|
+
"maximum": 3,
|
|
4334
|
+
"default": 2
|
|
4335
|
+
},
|
|
4336
|
+
"max_chars_per_second": {
|
|
4337
|
+
"type": "number",
|
|
4338
|
+
"minimum": 5,
|
|
4339
|
+
"maximum": 40,
|
|
4340
|
+
"default": 20
|
|
4341
|
+
}
|
|
4342
|
+
},
|
|
4343
|
+
"additionalProperties": false
|
|
4344
|
+
},
|
|
4345
|
+
"output": {
|
|
4346
|
+
"type": "object",
|
|
4347
|
+
"required": ["width", "height", "fps"],
|
|
4348
|
+
"properties": {
|
|
4349
|
+
"width": {
|
|
4350
|
+
"type": "integer",
|
|
4351
|
+
"minimum": 16,
|
|
4352
|
+
"maximum": 3840,
|
|
4353
|
+
"multipleOf": 2
|
|
4354
|
+
},
|
|
4355
|
+
"height": {
|
|
4356
|
+
"type": "integer",
|
|
4357
|
+
"minimum": 16,
|
|
4358
|
+
"maximum": 2160,
|
|
4359
|
+
"multipleOf": 2
|
|
4360
|
+
},
|
|
4361
|
+
"fps": {
|
|
4362
|
+
"type": "integer",
|
|
4363
|
+
"enum": [24, 25, 30, 50, 60],
|
|
4364
|
+
"description": "Frames per second of the video."
|
|
4365
|
+
}
|
|
4366
|
+
},
|
|
4367
|
+
"additionalProperties": false
|
|
4368
|
+
},
|
|
4369
|
+
"formats": {
|
|
4370
|
+
"type": "array",
|
|
4371
|
+
"items": {
|
|
4372
|
+
"type": "string",
|
|
4373
|
+
"enum": ["mp4", "gif", "poster"]
|
|
4374
|
+
}
|
|
4375
|
+
},
|
|
4376
|
+
"alias": {
|
|
4377
|
+
"type": "string",
|
|
4378
|
+
"pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$",
|
|
4379
|
+
"description": "Add the restyled video to this alias; when it succeeds the alias (and its share) plays it."
|
|
4380
|
+
},
|
|
4381
|
+
"job_id": {
|
|
4382
|
+
"type": "string",
|
|
4383
|
+
"description": "A vid_… id from an earlier call."
|
|
4384
|
+
},
|
|
4385
|
+
"wait_s": {
|
|
4386
|
+
"type": "integer",
|
|
4387
|
+
"minimum": 0,
|
|
4388
|
+
"maximum": 60,
|
|
4389
|
+
"default": 50,
|
|
4390
|
+
"description": "Seconds to wait for the job before returning its id and status (then call again with job_id)."
|
|
4391
|
+
},
|
|
4392
|
+
"include_poster": {
|
|
4393
|
+
"type": "boolean",
|
|
4394
|
+
"default": true,
|
|
4395
|
+
"description": "Return the poster frame as an image once the video has succeeded."
|
|
4396
|
+
}
|
|
4397
|
+
},
|
|
4398
|
+
"additionalProperties": false
|
|
4399
|
+
},
|
|
4400
|
+
"operationId": "renderRestyleVideo",
|
|
4401
|
+
"method": "POST",
|
|
4402
|
+
"path": "/v1/render/videos/{video_id}/restyle",
|
|
4403
|
+
"scope": "render:run",
|
|
4404
|
+
"servedBy": "node",
|
|
4405
|
+
"pathParams": ["video_id"],
|
|
4406
|
+
"queryParams": [
|
|
4407
|
+
{
|
|
4408
|
+
"name": "wait",
|
|
4409
|
+
"from": "wait_s"
|
|
4410
|
+
}
|
|
4411
|
+
],
|
|
4412
|
+
"body": "json",
|
|
4413
|
+
"bodyFields": ["style", "captions", "output", "formats", "alias"],
|
|
4414
|
+
"rawFields": [],
|
|
4415
|
+
"toolArgs": ["job_id", "wait_s", "include_poster"],
|
|
4416
|
+
"bodyDefaults": {},
|
|
4417
|
+
"queryDefaults": {},
|
|
4418
|
+
"continueWith": {
|
|
4419
|
+
"arg": "job_id",
|
|
4420
|
+
"operationId": "renderGetVideo",
|
|
4421
|
+
"method": "GET",
|
|
4422
|
+
"path": "/v1/render/videos/{video_id}",
|
|
4423
|
+
"pathParam": "video_id"
|
|
4424
|
+
}
|
|
4425
|
+
},
|
|
4426
|
+
{
|
|
4427
|
+
"name": "render_presets",
|
|
4428
|
+
"group": "render",
|
|
4429
|
+
"title": "List render presets",
|
|
4430
|
+
"description": "The style presets render takes (backgrounds, frames, cursors, captions, click effects), one line each as id (kind): name, for the style of render_screenshot, render_video and render_restyle.",
|
|
4431
|
+
"annotations": {
|
|
4432
|
+
"title": "List render presets",
|
|
4433
|
+
"readOnlyHint": true,
|
|
4434
|
+
"idempotentHint": true,
|
|
4435
|
+
"openWorldHint": false
|
|
4436
|
+
},
|
|
4437
|
+
"inputSchema": {
|
|
4438
|
+
"type": "object",
|
|
4439
|
+
"properties": {
|
|
4440
|
+
"kind": {
|
|
4441
|
+
"type": "string",
|
|
4442
|
+
"enum": ["background", "frame", "cursor", "captions", "click_effect"],
|
|
4443
|
+
"description": "Only presets of this kind."
|
|
4444
|
+
}
|
|
4445
|
+
},
|
|
4446
|
+
"additionalProperties": false
|
|
4447
|
+
},
|
|
4448
|
+
"operationId": "renderListPresets",
|
|
4449
|
+
"method": "GET",
|
|
4450
|
+
"path": "/v1/render/presets",
|
|
4451
|
+
"scope": "public",
|
|
4452
|
+
"servedBy": "node",
|
|
4453
|
+
"pathParams": [],
|
|
4454
|
+
"queryParams": [
|
|
4455
|
+
{
|
|
4456
|
+
"name": "kind"
|
|
4457
|
+
}
|
|
4458
|
+
],
|
|
4459
|
+
"body": "none",
|
|
4460
|
+
"bodyFields": [],
|
|
4461
|
+
"rawFields": [],
|
|
4462
|
+
"toolArgs": [],
|
|
4463
|
+
"bodyDefaults": {},
|
|
4464
|
+
"queryDefaults": {}
|
|
4465
|
+
},
|
|
4466
|
+
{
|
|
4467
|
+
"name": "render_share",
|
|
4468
|
+
"group": "render",
|
|
4469
|
+
"title": "Share a video",
|
|
4470
|
+
"description": "Publish a video, or an alias's newest video, at a public page on usercontent.b3os.org (Open Graph, oEmbed, its own iframe): returns the page URL, the embed HTML, the oEmbed URL and stable GIF and poster links. An alias share keeps playing the newest re-record with no change to the embed. stop: true stops the share; the page, its files and its oEmbed answer 404 within 60 seconds.",
|
|
4471
|
+
"annotations": {
|
|
4472
|
+
"title": "Share a video",
|
|
4473
|
+
"readOnlyHint": false,
|
|
4474
|
+
"destructiveHint": true,
|
|
4475
|
+
"idempotentHint": true,
|
|
4476
|
+
"openWorldHint": false
|
|
4477
|
+
},
|
|
4478
|
+
"inputSchema": {
|
|
4479
|
+
"type": "object",
|
|
4480
|
+
"properties": {
|
|
4481
|
+
"video_id": {
|
|
4482
|
+
"type": "string",
|
|
4483
|
+
"pattern": "^vid_[0-9a-hjkmnp-tv-z]{26}$",
|
|
4484
|
+
"description": "The vid_… video to share (or give alias)."
|
|
4485
|
+
},
|
|
4486
|
+
"title": {
|
|
4487
|
+
"type": "string",
|
|
4488
|
+
"description": "The page title and preview title. Default the first beat's `title`, else \"Video\"."
|
|
4489
|
+
},
|
|
4490
|
+
"alias": {
|
|
4491
|
+
"type": "string",
|
|
4492
|
+
"pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$",
|
|
4493
|
+
"description": "Share this alias of the project instead of one video."
|
|
4494
|
+
},
|
|
4495
|
+
"stop": {
|
|
4496
|
+
"type": "boolean",
|
|
4497
|
+
"default": false,
|
|
4498
|
+
"description": "Stop the share instead of making it."
|
|
4499
|
+
}
|
|
4500
|
+
},
|
|
4501
|
+
"additionalProperties": false
|
|
4502
|
+
},
|
|
4503
|
+
"operationId": "renderShareVideo",
|
|
4504
|
+
"method": "POST",
|
|
4505
|
+
"path": "/v1/render/videos/{video_id}/share",
|
|
4506
|
+
"scope": "render:write",
|
|
4507
|
+
"servedBy": "node",
|
|
4508
|
+
"pathParams": ["video_id"],
|
|
4509
|
+
"queryParams": [],
|
|
4510
|
+
"body": "json",
|
|
4511
|
+
"bodyFields": ["title"],
|
|
4512
|
+
"rawFields": [],
|
|
4513
|
+
"toolArgs": ["alias", "stop"],
|
|
4514
|
+
"bodyDefaults": {},
|
|
4515
|
+
"queryDefaults": {}
|
|
4516
|
+
},
|
|
4517
|
+
{
|
|
4518
|
+
"name": "listener_create",
|
|
4519
|
+
"group": "listeners",
|
|
4520
|
+
"title": "Create a listener",
|
|
4521
|
+
"description": "Hold a source open for this project and hand each kept event to a sink: a source (http_poll, sse, websocket, webhook, pack or push), a CEL and optional model filter, and a routine or webhook sink, with a ttl and a daily budget. Nothing of yours runs between events. A webhook source's answer names its hook_url.",
|
|
4522
|
+
"annotations": {
|
|
4523
|
+
"title": "Create a listener",
|
|
4524
|
+
"readOnlyHint": false,
|
|
4525
|
+
"openWorldHint": true
|
|
4526
|
+
},
|
|
4527
|
+
"inputSchema": {
|
|
4528
|
+
"type": "object",
|
|
4529
|
+
"properties": {
|
|
4530
|
+
"name": {
|
|
4531
|
+
"type": ["string", "null"],
|
|
4532
|
+
"description": "A label; not unique."
|
|
4533
|
+
},
|
|
4534
|
+
"source": {
|
|
4535
|
+
"description": "{type: http_poll|sse|websocket|webhook|pack|push, ...} (see the docs)."
|
|
4536
|
+
},
|
|
4537
|
+
"dedupe": {
|
|
4538
|
+
"type": "object",
|
|
4539
|
+
"description": "{key: CEL over event, window_s}; default the source's own event id."
|
|
4540
|
+
},
|
|
4541
|
+
"filter": {
|
|
4542
|
+
"type": "object",
|
|
4543
|
+
"description": "{cel: 'event.payload.total > 10', model: {prompt, on_error}}."
|
|
4544
|
+
},
|
|
4545
|
+
"sink": {
|
|
4546
|
+
"description": "{type: routine, routine} or {type: webhook, url}; optional batch."
|
|
4547
|
+
},
|
|
4548
|
+
"redact": {
|
|
4549
|
+
"type": "array",
|
|
4550
|
+
"description": "JSON pointers into the payload (`/customer/email`). Their values are replaced by `\"[redacted]\"` before the event is written anywhere: the log, the history an...",
|
|
4551
|
+
"items": {
|
|
4552
|
+
"type": "string",
|
|
4553
|
+
"pattern": "^(/[^/]*)+$"
|
|
4554
|
+
}
|
|
4555
|
+
},
|
|
4556
|
+
"ttl_s": {
|
|
4557
|
+
"type": "integer",
|
|
4558
|
+
"minimum": 60,
|
|
4559
|
+
"description": "Seconds from now until the listener ends `expired`. Not with `expires_at`."
|
|
4560
|
+
},
|
|
4561
|
+
"budget": {
|
|
4562
|
+
"type": "object",
|
|
4563
|
+
"description": "{events_per_day, model_tokens_per_day}."
|
|
4564
|
+
}
|
|
4565
|
+
},
|
|
4566
|
+
"required": ["source", "sink"],
|
|
4567
|
+
"additionalProperties": false
|
|
4568
|
+
},
|
|
4569
|
+
"operationId": "listenersCreateListener",
|
|
4570
|
+
"method": "POST",
|
|
4571
|
+
"path": "/v1/listeners",
|
|
4572
|
+
"scope": "listeners:write",
|
|
4573
|
+
"servedBy": "node",
|
|
4574
|
+
"stage": "preview",
|
|
4575
|
+
"flag": "listeners.api",
|
|
4576
|
+
"pathParams": [],
|
|
4577
|
+
"queryParams": [],
|
|
4578
|
+
"body": "json",
|
|
4579
|
+
"bodyFields": ["name", "source", "dedupe", "filter", "sink", "redact", "ttl_s", "budget"],
|
|
4580
|
+
"rawFields": [],
|
|
4581
|
+
"toolArgs": [],
|
|
4582
|
+
"bodyDefaults": {},
|
|
4583
|
+
"queryDefaults": {}
|
|
4584
|
+
},
|
|
4585
|
+
{
|
|
4586
|
+
"name": "listener_list",
|
|
4587
|
+
"group": "listeners",
|
|
4588
|
+
"title": "List listeners",
|
|
4589
|
+
"description": "List this project's listeners, newest first, with each one's status and what it kept.",
|
|
4590
|
+
"annotations": {
|
|
4591
|
+
"title": "List listeners",
|
|
4592
|
+
"readOnlyHint": true,
|
|
4593
|
+
"openWorldHint": false
|
|
4594
|
+
},
|
|
4595
|
+
"inputSchema": {
|
|
4596
|
+
"type": "object",
|
|
4597
|
+
"properties": {
|
|
4598
|
+
"status": {
|
|
4599
|
+
"type": "string",
|
|
4600
|
+
"enum": ["starting", "active", "reconnecting", "paused", "failed", "expired", "revoked"],
|
|
4601
|
+
"description": "Only listeners in this status."
|
|
4602
|
+
},
|
|
4603
|
+
"limit": {
|
|
4604
|
+
"type": "integer",
|
|
4605
|
+
"minimum": 1,
|
|
4606
|
+
"maximum": 100,
|
|
4607
|
+
"default": 20,
|
|
4608
|
+
"description": "Page size, from 1 to 100."
|
|
4609
|
+
},
|
|
4610
|
+
"cursor": {
|
|
4611
|
+
"type": "string",
|
|
4612
|
+
"description": "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page."
|
|
4613
|
+
}
|
|
4614
|
+
},
|
|
4615
|
+
"additionalProperties": false
|
|
4616
|
+
},
|
|
4617
|
+
"operationId": "listenersListListeners",
|
|
4618
|
+
"method": "GET",
|
|
4619
|
+
"path": "/v1/listeners",
|
|
4620
|
+
"scope": "listeners:read",
|
|
4621
|
+
"servedBy": "node",
|
|
4622
|
+
"stage": "preview",
|
|
4623
|
+
"flag": "listeners.api",
|
|
4624
|
+
"pathParams": [],
|
|
4625
|
+
"queryParams": [
|
|
4626
|
+
{
|
|
4627
|
+
"name": "status"
|
|
4628
|
+
},
|
|
4629
|
+
{
|
|
4630
|
+
"name": "limit"
|
|
4631
|
+
},
|
|
4632
|
+
{
|
|
4633
|
+
"name": "cursor"
|
|
4634
|
+
}
|
|
4635
|
+
],
|
|
4636
|
+
"body": "none",
|
|
4637
|
+
"bodyFields": [],
|
|
4638
|
+
"rawFields": [],
|
|
4639
|
+
"toolArgs": [],
|
|
4640
|
+
"bodyDefaults": {},
|
|
4641
|
+
"queryDefaults": {}
|
|
4642
|
+
},
|
|
4643
|
+
{
|
|
4644
|
+
"name": "listener_get",
|
|
4645
|
+
"group": "listeners",
|
|
4646
|
+
"title": "Get a listener",
|
|
4647
|
+
"description": "One listener: its definition, status (and why it failed, when it did), its source's cursor, the budget it has used today and its stats.",
|
|
4648
|
+
"annotations": {
|
|
4649
|
+
"title": "Get a listener",
|
|
4650
|
+
"readOnlyHint": true,
|
|
4651
|
+
"openWorldHint": false
|
|
4652
|
+
},
|
|
4653
|
+
"inputSchema": {
|
|
4654
|
+
"type": "object",
|
|
4655
|
+
"properties": {
|
|
4656
|
+
"listener_id": {
|
|
4657
|
+
"type": "string",
|
|
4658
|
+
"pattern": "^lsn_[0-9a-hjkmnp-tv-z]{26}$",
|
|
4659
|
+
"description": "The listener ID (`lsn_…`)."
|
|
4660
|
+
}
|
|
4661
|
+
},
|
|
4662
|
+
"required": ["listener_id"],
|
|
4663
|
+
"additionalProperties": false
|
|
4664
|
+
},
|
|
4665
|
+
"operationId": "listenersGetListener",
|
|
4666
|
+
"method": "GET",
|
|
4667
|
+
"path": "/v1/listeners/{listener_id}",
|
|
4668
|
+
"scope": "listeners:read",
|
|
4669
|
+
"servedBy": "node",
|
|
4670
|
+
"stage": "preview",
|
|
4671
|
+
"flag": "listeners.api",
|
|
4672
|
+
"pathParams": ["listener_id"],
|
|
4673
|
+
"queryParams": [],
|
|
4674
|
+
"body": "none",
|
|
4675
|
+
"bodyFields": [],
|
|
4676
|
+
"rawFields": [],
|
|
4677
|
+
"toolArgs": [],
|
|
4678
|
+
"bodyDefaults": {},
|
|
4679
|
+
"queryDefaults": {}
|
|
4680
|
+
},
|
|
4681
|
+
{
|
|
4682
|
+
"name": "listener_update",
|
|
4683
|
+
"group": "listeners",
|
|
4684
|
+
"title": "Update a listener",
|
|
4685
|
+
"description": "Pause or resume a listener, or change its filter, sink, budget, lifetime or redact list. The source is fixed.",
|
|
4686
|
+
"annotations": {
|
|
4687
|
+
"title": "Update a listener",
|
|
4688
|
+
"readOnlyHint": false,
|
|
4689
|
+
"idempotentHint": true,
|
|
4690
|
+
"openWorldHint": false
|
|
4691
|
+
},
|
|
4692
|
+
"inputSchema": {
|
|
4693
|
+
"type": "object",
|
|
4694
|
+
"properties": {
|
|
4695
|
+
"listener_id": {
|
|
4696
|
+
"type": "string",
|
|
4697
|
+
"pattern": "^lsn_[0-9a-hjkmnp-tv-z]{26}$",
|
|
4698
|
+
"description": "The listener ID (`lsn_…`)."
|
|
4699
|
+
},
|
|
4700
|
+
"paused": {
|
|
4701
|
+
"type": "boolean"
|
|
4702
|
+
},
|
|
4703
|
+
"ttl_s": {
|
|
4704
|
+
"type": "integer",
|
|
4705
|
+
"minimum": 60,
|
|
4706
|
+
"description": "Seconds from now until the listener ends `expired`. Not with `expires_at`."
|
|
4707
|
+
},
|
|
4708
|
+
"filter": {
|
|
4709
|
+
"type": "object",
|
|
4710
|
+
"description": "{cel, model}."
|
|
4711
|
+
},
|
|
4712
|
+
"budget": {
|
|
4713
|
+
"type": "object",
|
|
4714
|
+
"description": "{events_per_day, model_tokens_per_day}."
|
|
4715
|
+
}
|
|
4716
|
+
},
|
|
4717
|
+
"required": ["listener_id"],
|
|
4718
|
+
"additionalProperties": false
|
|
4719
|
+
},
|
|
4720
|
+
"operationId": "listenersUpdateListener",
|
|
4721
|
+
"method": "PATCH",
|
|
4722
|
+
"path": "/v1/listeners/{listener_id}",
|
|
4723
|
+
"scope": "listeners:write",
|
|
4724
|
+
"servedBy": "node",
|
|
4725
|
+
"stage": "preview",
|
|
4726
|
+
"flag": "listeners.api",
|
|
4727
|
+
"pathParams": ["listener_id"],
|
|
4728
|
+
"queryParams": [],
|
|
4729
|
+
"body": "json",
|
|
4730
|
+
"bodyFields": ["paused", "ttl_s", "filter", "budget"],
|
|
4731
|
+
"rawFields": [],
|
|
4732
|
+
"toolArgs": [],
|
|
4733
|
+
"bodyDefaults": {},
|
|
4734
|
+
"queryDefaults": {}
|
|
4735
|
+
},
|
|
4736
|
+
{
|
|
4737
|
+
"name": "listener_delete",
|
|
4738
|
+
"group": "listeners",
|
|
4739
|
+
"title": "Delete a listener",
|
|
4740
|
+
"description": "Delete a listener: its source closes and its hooks go; its history stays until its retention ends.",
|
|
4741
|
+
"annotations": {
|
|
4742
|
+
"title": "Delete a listener",
|
|
4743
|
+
"readOnlyHint": false,
|
|
4744
|
+
"destructiveHint": true,
|
|
4745
|
+
"idempotentHint": true,
|
|
4746
|
+
"openWorldHint": false
|
|
4747
|
+
},
|
|
4748
|
+
"inputSchema": {
|
|
4749
|
+
"type": "object",
|
|
4750
|
+
"properties": {
|
|
4751
|
+
"listener_id": {
|
|
4752
|
+
"type": "string",
|
|
4753
|
+
"pattern": "^lsn_[0-9a-hjkmnp-tv-z]{26}$",
|
|
4754
|
+
"description": "The listener ID (`lsn_…`)."
|
|
4755
|
+
}
|
|
4756
|
+
},
|
|
4757
|
+
"required": ["listener_id"],
|
|
4758
|
+
"additionalProperties": false
|
|
4759
|
+
},
|
|
4760
|
+
"operationId": "listenersDeleteListener",
|
|
4761
|
+
"method": "DELETE",
|
|
4762
|
+
"path": "/v1/listeners/{listener_id}",
|
|
4763
|
+
"scope": "listeners:write",
|
|
4764
|
+
"servedBy": "node",
|
|
4765
|
+
"stage": "preview",
|
|
4766
|
+
"flag": "listeners.api",
|
|
4767
|
+
"pathParams": ["listener_id"],
|
|
4768
|
+
"queryParams": [],
|
|
4769
|
+
"body": "none",
|
|
4770
|
+
"bodyFields": [],
|
|
4771
|
+
"rawFields": [],
|
|
4772
|
+
"toolArgs": [],
|
|
4773
|
+
"bodyDefaults": {},
|
|
4774
|
+
"queryDefaults": {}
|
|
4775
|
+
},
|
|
4776
|
+
{
|
|
4777
|
+
"name": "listener_events",
|
|
4778
|
+
"group": "listeners",
|
|
4779
|
+
"title": "List a listener's events",
|
|
4780
|
+
"description": "A listener's history, newest first: each event's payload, why the filter kept or dropped it, and its delivery (delivered, filtered, failed, pending, skipped), with gap records where the source could not resume.",
|
|
4781
|
+
"annotations": {
|
|
4782
|
+
"title": "List a listener's events",
|
|
4783
|
+
"readOnlyHint": true,
|
|
4784
|
+
"openWorldHint": false
|
|
4785
|
+
},
|
|
4786
|
+
"inputSchema": {
|
|
4787
|
+
"type": "object",
|
|
4788
|
+
"properties": {
|
|
4789
|
+
"listener_id": {
|
|
4790
|
+
"type": "string",
|
|
4791
|
+
"pattern": "^lsn_[0-9a-hjkmnp-tv-z]{26}$",
|
|
4792
|
+
"description": "The listener ID (`lsn_…`)."
|
|
4793
|
+
},
|
|
4794
|
+
"status": {
|
|
4795
|
+
"type": "string",
|
|
4796
|
+
"enum": ["pending", "delivered", "filtered", "failed", "skipped"],
|
|
4797
|
+
"description": "Only events in this status."
|
|
4798
|
+
},
|
|
4799
|
+
"limit": {
|
|
4800
|
+
"type": "integer",
|
|
4801
|
+
"minimum": 1,
|
|
4802
|
+
"maximum": 100,
|
|
4803
|
+
"default": 20,
|
|
4804
|
+
"description": "Page size, from 1 to 100."
|
|
4805
|
+
},
|
|
4806
|
+
"cursor": {
|
|
4807
|
+
"type": "string",
|
|
4808
|
+
"description": "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page."
|
|
4809
|
+
}
|
|
4810
|
+
},
|
|
4811
|
+
"required": ["listener_id"],
|
|
4812
|
+
"additionalProperties": false
|
|
4813
|
+
},
|
|
4814
|
+
"operationId": "listenersListEvents",
|
|
4815
|
+
"method": "GET",
|
|
4816
|
+
"path": "/v1/listeners/{listener_id}/events",
|
|
4817
|
+
"scope": "listeners:read",
|
|
4818
|
+
"servedBy": "node",
|
|
4819
|
+
"stage": "preview",
|
|
4820
|
+
"flag": "listeners.api",
|
|
4821
|
+
"pathParams": ["listener_id"],
|
|
4822
|
+
"queryParams": [
|
|
4823
|
+
{
|
|
4824
|
+
"name": "status"
|
|
4825
|
+
},
|
|
4826
|
+
{
|
|
4827
|
+
"name": "limit"
|
|
4828
|
+
},
|
|
4829
|
+
{
|
|
4830
|
+
"name": "cursor"
|
|
4831
|
+
}
|
|
4832
|
+
],
|
|
4833
|
+
"body": "none",
|
|
4834
|
+
"bodyFields": [],
|
|
4835
|
+
"rawFields": [],
|
|
4836
|
+
"toolArgs": [],
|
|
4837
|
+
"bodyDefaults": {},
|
|
4838
|
+
"queryDefaults": {}
|
|
4839
|
+
},
|
|
4840
|
+
{
|
|
4841
|
+
"name": "listener_push",
|
|
4842
|
+
"group": "listeners",
|
|
4843
|
+
"title": "Send events to a listener",
|
|
4844
|
+
"description": "Send up to 100 events to a push listener; each goes through its dedupe, filter and sink. Answers once they are in the listener's log.",
|
|
4845
|
+
"annotations": {
|
|
4846
|
+
"title": "Send events to a listener",
|
|
4847
|
+
"readOnlyHint": false,
|
|
4848
|
+
"openWorldHint": false
|
|
4849
|
+
},
|
|
4850
|
+
"inputSchema": {
|
|
4851
|
+
"type": "object",
|
|
4852
|
+
"properties": {
|
|
4853
|
+
"listener_id": {
|
|
4854
|
+
"type": "string",
|
|
4855
|
+
"pattern": "^lsn_[0-9a-hjkmnp-tv-z]{26}$",
|
|
4856
|
+
"description": "The listener ID (`lsn_…`)."
|
|
4857
|
+
},
|
|
4858
|
+
"events": {
|
|
4859
|
+
"type": "array",
|
|
4860
|
+
"items": {
|
|
4861
|
+
"type": "object",
|
|
4862
|
+
"required": ["payload"],
|
|
4863
|
+
"properties": {
|
|
4864
|
+
"payload": {
|
|
4865
|
+
"description": "Any JSON value, at most `listeners.event_bytes_max` when serialized."
|
|
4866
|
+
},
|
|
4867
|
+
"dedupe_key": {
|
|
4868
|
+
"type": "string"
|
|
4869
|
+
}
|
|
4870
|
+
}
|
|
4871
|
+
}
|
|
4872
|
+
}
|
|
4873
|
+
},
|
|
4874
|
+
"required": ["listener_id", "events"],
|
|
4875
|
+
"additionalProperties": false
|
|
4876
|
+
},
|
|
4877
|
+
"operationId": "listenersIngestEvents",
|
|
4878
|
+
"method": "POST",
|
|
4879
|
+
"path": "/v1/listeners/{listener_id}/events",
|
|
4880
|
+
"scope": "listeners:write",
|
|
4881
|
+
"servedBy": "node",
|
|
4882
|
+
"stage": "preview",
|
|
4883
|
+
"flag": "listeners.api",
|
|
4884
|
+
"pathParams": ["listener_id"],
|
|
4885
|
+
"queryParams": [],
|
|
4886
|
+
"body": "json",
|
|
4887
|
+
"bodyFields": ["events"],
|
|
4888
|
+
"rawFields": [],
|
|
4889
|
+
"toolArgs": [],
|
|
4890
|
+
"bodyDefaults": {},
|
|
4891
|
+
"queryDefaults": {}
|
|
4892
|
+
},
|
|
4893
|
+
{
|
|
4894
|
+
"name": "listener_test",
|
|
4895
|
+
"group": "listeners",
|
|
4896
|
+
"title": "Test a listener",
|
|
4897
|
+
"description": "Run a sample event through a listener's dedupe and filter and say whether it would be kept; deliver: true also keeps it and hands it to the sink.",
|
|
4898
|
+
"annotations": {
|
|
4899
|
+
"title": "Test a listener",
|
|
4900
|
+
"readOnlyHint": false,
|
|
4901
|
+
"openWorldHint": false
|
|
4902
|
+
},
|
|
4903
|
+
"inputSchema": {
|
|
4904
|
+
"type": "object",
|
|
4905
|
+
"properties": {
|
|
4906
|
+
"listener_id": {
|
|
4907
|
+
"type": "string",
|
|
4908
|
+
"pattern": "^lsn_[0-9a-hjkmnp-tv-z]{26}$",
|
|
4909
|
+
"description": "The listener ID (`lsn_…`)."
|
|
4910
|
+
},
|
|
4911
|
+
"payload": {
|
|
4912
|
+
"description": "A sample event payload."
|
|
4913
|
+
},
|
|
4914
|
+
"deliver": {
|
|
4915
|
+
"type": "boolean",
|
|
4916
|
+
"default": false
|
|
4917
|
+
}
|
|
4918
|
+
},
|
|
4919
|
+
"required": ["listener_id", "payload"],
|
|
4920
|
+
"additionalProperties": false
|
|
4921
|
+
},
|
|
4922
|
+
"operationId": "listenersTestListener",
|
|
4923
|
+
"method": "POST",
|
|
4924
|
+
"path": "/v1/listeners/{listener_id}/test",
|
|
4925
|
+
"scope": "listeners:write",
|
|
4926
|
+
"servedBy": "node",
|
|
4927
|
+
"stage": "preview",
|
|
4928
|
+
"flag": "listeners.api",
|
|
4929
|
+
"pathParams": ["listener_id"],
|
|
4930
|
+
"queryParams": [],
|
|
4931
|
+
"body": "json",
|
|
4932
|
+
"bodyFields": ["payload", "deliver"],
|
|
4933
|
+
"rawFields": [],
|
|
4934
|
+
"toolArgs": [],
|
|
4935
|
+
"bodyDefaults": {},
|
|
4936
|
+
"queryDefaults": {}
|
|
4937
|
+
},
|
|
4938
|
+
{
|
|
4939
|
+
"name": "agent_send",
|
|
4940
|
+
"group": "agents",
|
|
4941
|
+
"title": "Send a message to an agent instance",
|
|
4942
|
+
"description": "Send one message to the agent's instance for key and wait up to wait_s seconds for the turn. The instance is made on its first message and woken from any sleep tier (woke_from says which); it runs one turn at a time and queues the rest. payload holds your own fields; the harness gets them as message. If the turn is still running, call again with job_id.",
|
|
4943
|
+
"annotations": {
|
|
4944
|
+
"title": "Send a message to an agent instance",
|
|
4945
|
+
"readOnlyHint": false,
|
|
4946
|
+
"destructiveHint": false,
|
|
4947
|
+
"openWorldHint": true
|
|
4948
|
+
},
|
|
4949
|
+
"inputSchema": {
|
|
4950
|
+
"type": "object",
|
|
4951
|
+
"properties": {
|
|
4952
|
+
"agent": {
|
|
4953
|
+
"type": "string",
|
|
4954
|
+
"description": "The agent's name, or its agt_ id."
|
|
4955
|
+
},
|
|
4956
|
+
"key": {
|
|
4957
|
+
"type": "string",
|
|
4958
|
+
"pattern": "^[A-Za-z0-9._:-]{1,128}$",
|
|
4959
|
+
"description": "The instance key: 1 to 128 of A-Z a-z 0-9 . _ : - (a user, a thread, a repository)."
|
|
4960
|
+
},
|
|
4961
|
+
"type": {
|
|
4962
|
+
"type": "string",
|
|
4963
|
+
"pattern": "^[a-z][a-z0-9_.-]{0,63}$",
|
|
4964
|
+
"default": "message",
|
|
4965
|
+
"description": "What kind of message this is (a listener's actor sink sends `listener.event`)."
|
|
4966
|
+
},
|
|
4967
|
+
"conversation": {
|
|
4968
|
+
"type": "string",
|
|
4969
|
+
"description": "Your conversation or thread ID. Default, the `b3os.conversation` baggage."
|
|
4970
|
+
},
|
|
4971
|
+
"subject": {
|
|
4972
|
+
"type": "string",
|
|
4973
|
+
"description": "The end user the turn is for, an opaque ID, never an email. Default, the `b3os.subject` baggage."
|
|
4974
|
+
},
|
|
4975
|
+
"metadata": {
|
|
4976
|
+
"type": "object",
|
|
4977
|
+
"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 _ . : -`."
|
|
4978
|
+
},
|
|
4979
|
+
"create": {
|
|
4980
|
+
"type": "boolean",
|
|
4981
|
+
"default": true,
|
|
4982
|
+
"description": "Make the instance if it does not exist. `false` answers `404 instance_not_found` instead."
|
|
4983
|
+
},
|
|
4984
|
+
"payload": {
|
|
4985
|
+
"type": "object",
|
|
4986
|
+
"description": "The message's own fields (any JSON object), sent beside type, conversation and subject."
|
|
4987
|
+
},
|
|
4988
|
+
"job_id": {
|
|
4989
|
+
"type": "string",
|
|
4990
|
+
"description": "A ses_ id from an earlier call: keep waiting for that turn."
|
|
4991
|
+
},
|
|
4992
|
+
"wait_s": {
|
|
4993
|
+
"type": "integer",
|
|
4994
|
+
"minimum": 0,
|
|
4995
|
+
"maximum": 60,
|
|
4996
|
+
"default": 50,
|
|
4997
|
+
"description": "Seconds to wait for the job before returning its id and status (then call again with job_id)."
|
|
4998
|
+
}
|
|
4999
|
+
},
|
|
5000
|
+
"additionalProperties": false
|
|
5001
|
+
},
|
|
5002
|
+
"operationId": "agentsSendMessage",
|
|
5003
|
+
"method": "POST",
|
|
5004
|
+
"path": "/v1/agents/{agent}/instances/{key}/messages",
|
|
5005
|
+
"scope": "agents:run",
|
|
5006
|
+
"servedBy": "node",
|
|
5007
|
+
"stage": "preview",
|
|
5008
|
+
"flag": "agents.actors",
|
|
5009
|
+
"pathParams": ["agent", "key"],
|
|
5010
|
+
"queryParams": [
|
|
5011
|
+
{
|
|
5012
|
+
"name": "wait",
|
|
5013
|
+
"from": "wait_s"
|
|
5014
|
+
}
|
|
5015
|
+
],
|
|
5016
|
+
"body": "json",
|
|
5017
|
+
"bodyFields": ["type", "conversation", "subject", "metadata", "create"],
|
|
5018
|
+
"rawFields": [],
|
|
5019
|
+
"toolArgs": ["payload", "job_id", "wait_s"],
|
|
5020
|
+
"bodyDefaults": {},
|
|
5021
|
+
"queryDefaults": {},
|
|
5022
|
+
"continueWith": {
|
|
5023
|
+
"arg": "job_id",
|
|
5024
|
+
"operationId": "agentsGetSession",
|
|
5025
|
+
"method": "GET",
|
|
5026
|
+
"path": "/v1/agents/sessions/{session_id}",
|
|
5027
|
+
"pathParam": "session_id"
|
|
5028
|
+
}
|
|
5029
|
+
},
|
|
5030
|
+
{
|
|
5031
|
+
"name": "agent_create",
|
|
5032
|
+
"group": "agents",
|
|
5033
|
+
"title": "Create an agent",
|
|
5034
|
+
"description": "Create an agent: the definition each of its instances starts from (a template and size, the harness command and the port it answers messages on, env, vault secrets, its API grant, egress, sleep and turn settings). Nothing starts until the first message to a key.",
|
|
5035
|
+
"annotations": {
|
|
5036
|
+
"title": "Create an agent",
|
|
5037
|
+
"readOnlyHint": false,
|
|
5038
|
+
"destructiveHint": false,
|
|
5039
|
+
"openWorldHint": false
|
|
5040
|
+
},
|
|
5041
|
+
"inputSchema": {
|
|
5042
|
+
"type": "object",
|
|
5043
|
+
"properties": {
|
|
5044
|
+
"name": {
|
|
5045
|
+
"type": "string",
|
|
5046
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$",
|
|
5047
|
+
"description": "Lowercase letters, digits and `-`, starting with a letter. `sessions` is reserved."
|
|
5048
|
+
},
|
|
5049
|
+
"source": {
|
|
5050
|
+
"type": "object",
|
|
5051
|
+
"description": "What each instance starts from: a template (node templates, or one of your project's image templates) at a size, or one of your project's snapshots.",
|
|
5052
|
+
"properties": {
|
|
5053
|
+
"template": {
|
|
5054
|
+
"type": "string",
|
|
5055
|
+
"default": "agent"
|
|
5056
|
+
},
|
|
5057
|
+
"snapshot": {
|
|
5058
|
+
"type": "string",
|
|
5059
|
+
"pattern": "^snap_[0-9a-hjkmnp-tv-z]{26}$",
|
|
5060
|
+
"description": "Restore this snapshot instead of starting from a template."
|
|
5061
|
+
},
|
|
5062
|
+
"vcpu": {
|
|
5063
|
+
"type": "integer",
|
|
5064
|
+
"minimum": 1
|
|
5065
|
+
},
|
|
5066
|
+
"memory_mib": {
|
|
5067
|
+
"type": "integer",
|
|
5068
|
+
"minimum": 128
|
|
5069
|
+
},
|
|
5070
|
+
"disk_gib": {
|
|
5071
|
+
"type": "integer",
|
|
5072
|
+
"minimum": 1
|
|
5073
|
+
}
|
|
5074
|
+
},
|
|
5075
|
+
"additionalProperties": false
|
|
5076
|
+
},
|
|
5077
|
+
"entry": {
|
|
5078
|
+
"type": "object",
|
|
5079
|
+
"required": ["command", "port"],
|
|
5080
|
+
"description": "The harness. `command` runs in each instance when it is made, and again after a cold boot from its disk.",
|
|
5081
|
+
"properties": {
|
|
5082
|
+
"command": {
|
|
5083
|
+
"type": "array",
|
|
5084
|
+
"items": {
|
|
5085
|
+
"type": "string"
|
|
5086
|
+
}
|
|
5087
|
+
},
|
|
5088
|
+
"port": {
|
|
5089
|
+
"type": "integer",
|
|
5090
|
+
"minimum": 1,
|
|
5091
|
+
"maximum": 65535,
|
|
5092
|
+
"description": "Not 53, 1080, 3128, 7700 or 15001, which the guest agent listens on."
|
|
5093
|
+
},
|
|
5094
|
+
"path": {
|
|
5095
|
+
"type": "string",
|
|
5096
|
+
"pattern": "^/",
|
|
5097
|
+
"default": "/"
|
|
5098
|
+
},
|
|
5099
|
+
"readiness": {
|
|
5100
|
+
"type": "object",
|
|
5101
|
+
"description": "When the sandbox counts as ready: a TCP port inside it accepting connections...",
|
|
5102
|
+
"properties": {
|
|
5103
|
+
"port": {
|
|
5104
|
+
"type": "integer",
|
|
5105
|
+
"minimum": 1,
|
|
5106
|
+
"maximum": 65535
|
|
5107
|
+
},
|
|
5108
|
+
"cmd": {
|
|
5109
|
+
"description": "A shell command line (run with `/bin/sh -c`) or an argv array.",
|
|
5110
|
+
"oneOf": [
|
|
5111
|
+
{
|
|
5112
|
+
"type": "string"
|
|
5113
|
+
},
|
|
5114
|
+
{
|
|
5115
|
+
"type": "array"
|
|
5116
|
+
}
|
|
5117
|
+
]
|
|
5118
|
+
},
|
|
5119
|
+
"interval_ms": {
|
|
5120
|
+
"type": "integer",
|
|
5121
|
+
"minimum": 5,
|
|
5122
|
+
"maximum": 5000,
|
|
5123
|
+
"default": 10
|
|
5124
|
+
},
|
|
5125
|
+
"timeout_s": {
|
|
5126
|
+
"type": "integer",
|
|
5127
|
+
"minimum": 1,
|
|
5128
|
+
"maximum": 600,
|
|
5129
|
+
"default": 60
|
|
5130
|
+
}
|
|
5131
|
+
}
|
|
5132
|
+
},
|
|
5133
|
+
"max_restarts": {
|
|
5134
|
+
"type": "integer",
|
|
5135
|
+
"minimum": 0,
|
|
5136
|
+
"maximum": 20,
|
|
5137
|
+
"default": 5
|
|
5138
|
+
}
|
|
5139
|
+
},
|
|
5140
|
+
"additionalProperties": false
|
|
5141
|
+
},
|
|
5142
|
+
"env": {
|
|
5143
|
+
"type": "object",
|
|
5144
|
+
"additionalProperties": {
|
|
5145
|
+
"type": "string"
|
|
5146
|
+
},
|
|
5147
|
+
"description": "Environment variables of the harness. Returned as given; put credentials in `secrets`."
|
|
5148
|
+
},
|
|
5149
|
+
"secrets": {
|
|
5150
|
+
"type": "object",
|
|
5151
|
+
"additionalProperties": {
|
|
5152
|
+
"description": "A value placed in the environment but never returned or logged.",
|
|
5153
|
+
"oneOf": [
|
|
5154
|
+
{
|
|
5155
|
+
"type": "string"
|
|
5156
|
+
},
|
|
5157
|
+
{
|
|
5158
|
+
"type": "object",
|
|
5159
|
+
"required": ["connection"],
|
|
5160
|
+
"properties": {
|
|
5161
|
+
"connection": {
|
|
5162
|
+
"type": "string",
|
|
5163
|
+
"pattern": "^conn_[0-9a-hjkmnp-tv-z]{26}$"
|
|
5164
|
+
},
|
|
5165
|
+
"field": {
|
|
5166
|
+
"type": "string",
|
|
5167
|
+
"description": "Which secret field of the connection (vault.yaml names)."
|
|
5168
|
+
}
|
|
5169
|
+
}
|
|
5170
|
+
}
|
|
5171
|
+
]
|
|
5172
|
+
},
|
|
5173
|
+
"description": "Environment variables never returned or logged, as a sandbox's `secrets`: code in the instance can read them."
|
|
5174
|
+
},
|
|
5175
|
+
"api": {
|
|
5176
|
+
"type": "object",
|
|
5177
|
+
"description": "What code inside the sandbox may call at `http://127.0.0.1:7700`. Empty by default, revoked when the sandbox stops.",
|
|
5178
|
+
"properties": {
|
|
5179
|
+
"scopes": {
|
|
5180
|
+
"type": "array",
|
|
5181
|
+
"items": {
|
|
5182
|
+
"type": "string",
|
|
5183
|
+
"description": "A scope from the catalog (`vision:run`.",
|
|
5184
|
+
"enum": [
|
|
5185
|
+
"vision:read",
|
|
5186
|
+
"vision:write",
|
|
5187
|
+
"vision:run",
|
|
5188
|
+
"vision:profiles:use",
|
|
5189
|
+
"vision:profiles:export",
|
|
5190
|
+
"render:read",
|
|
5191
|
+
"render:write",
|
|
5192
|
+
"render:run",
|
|
5193
|
+
"sandboxes:read",
|
|
5194
|
+
"sandboxes:write",
|
|
5195
|
+
"sandboxes:run",
|
|
5196
|
+
"agents:read",
|
|
5197
|
+
"agents:write",
|
|
5198
|
+
"agents:run",
|
|
5199
|
+
"routines:read",
|
|
5200
|
+
"routines:write",
|
|
5201
|
+
"routines:run",
|
|
5202
|
+
"listeners:read",
|
|
5203
|
+
"listeners:write",
|
|
5204
|
+
"actions:read",
|
|
5205
|
+
"actions:write",
|
|
5206
|
+
"actions:run",
|
|
5207
|
+
"actions:tools:publish",
|
|
5208
|
+
"infer:read",
|
|
5209
|
+
"infer:write",
|
|
5210
|
+
"infer:run",
|
|
5211
|
+
"vault:read",
|
|
5212
|
+
"vault:write",
|
|
5213
|
+
"vault:run",
|
|
5214
|
+
"vault:connections:reveal",
|
|
5215
|
+
"platform:read",
|
|
5216
|
+
"platform:write",
|
|
5217
|
+
"platform:content:read",
|
|
5218
|
+
"settings:write",
|
|
5219
|
+
"vision:*",
|
|
5220
|
+
"render:*",
|
|
5221
|
+
"sandboxes:*",
|
|
5222
|
+
"agents:*",
|
|
5223
|
+
"routines:*",
|
|
5224
|
+
"listeners:*",
|
|
5225
|
+
"actions:*",
|
|
5226
|
+
"infer:*",
|
|
5227
|
+
"vault:*",
|
|
5228
|
+
"platform:*",
|
|
5229
|
+
"settings:*",
|
|
5230
|
+
"*"
|
|
5231
|
+
]
|
|
5232
|
+
},
|
|
5233
|
+
"description": "A subset of your own scopes."
|
|
5234
|
+
},
|
|
5235
|
+
"spend_cap_usd": {
|
|
5236
|
+
"type": ["number", "null"],
|
|
5237
|
+
"minimum": 0,
|
|
5238
|
+
"description": "Stop the sandbox's own API calls at this spend."
|
|
5239
|
+
},
|
|
5240
|
+
"connections": {
|
|
5241
|
+
"type": "array",
|
|
5242
|
+
"items": {
|
|
5243
|
+
"type": "string",
|
|
5244
|
+
"pattern": "^conn_[0-9a-hjkmnp-tv-z]{26}$"
|
|
5245
|
+
},
|
|
5246
|
+
"description": "Vault connections the sandbox's action calls may use."
|
|
5247
|
+
},
|
|
5248
|
+
"actions": {
|
|
5249
|
+
"type": ["object", "null"],
|
|
5250
|
+
"description": "Which pack actions code in the sandbox may call (`POST /v1/actions/call`) and...",
|
|
5251
|
+
"required": ["allow"],
|
|
5252
|
+
"properties": {
|
|
5253
|
+
"allow": {
|
|
5254
|
+
"type": "array",
|
|
5255
|
+
"items": {
|
|
5256
|
+
"type": "string"
|
|
5257
|
+
},
|
|
5258
|
+
"description": "`<namespace>/<name>/<action>[@<version>]`: `<action>` an action key or `*` (e..."
|
|
5259
|
+
}
|
|
5260
|
+
}
|
|
5261
|
+
}
|
|
5262
|
+
},
|
|
5263
|
+
"additionalProperties": false
|
|
5264
|
+
},
|
|
5265
|
+
"egress": {
|
|
5266
|
+
"type": "object",
|
|
5267
|
+
"description": "Where sandbox traffic may go, enforced by the node's egress guard. `public` (default): any public internet address."
|
|
5268
|
+
},
|
|
5269
|
+
"sleep": {
|
|
5270
|
+
"type": "object",
|
|
5271
|
+
"description": "When an idle instance moves to each sleep tier. Quiet means no turn, no queued message, no open connection through its ports, no exec, file or terminal call...",
|
|
5272
|
+
"properties": {
|
|
5273
|
+
"ram_after_s": {
|
|
5274
|
+
"type": "integer",
|
|
5275
|
+
"minimum": 5,
|
|
5276
|
+
"maximum": 3600,
|
|
5277
|
+
"default": 30,
|
|
5278
|
+
"description": "Quiet this long, it pauses in memory."
|
|
5279
|
+
},
|
|
5280
|
+
"snapshot_after_s": {
|
|
5281
|
+
"type": "integer",
|
|
5282
|
+
"minimum": 60,
|
|
5283
|
+
"maximum": 86400,
|
|
5284
|
+
"default": 600,
|
|
5285
|
+
"description": "Paused this long, its memory goes to a snapshot on the node's disk and its me..."
|
|
5286
|
+
},
|
|
5287
|
+
"snapshot_keep_s": {
|
|
5288
|
+
"type": "integer",
|
|
5289
|
+
"minimum": 3600,
|
|
5290
|
+
"maximum": 604800,
|
|
5291
|
+
"default": 604800,
|
|
5292
|
+
"description": "How long a memory snapshot is kept."
|
|
5293
|
+
}
|
|
5294
|
+
},
|
|
5295
|
+
"additionalProperties": false
|
|
5296
|
+
},
|
|
5297
|
+
"turns": {
|
|
5298
|
+
"type": "object",
|
|
5299
|
+
"description": "How messages become turns. One turn runs at a time per instance.",
|
|
5300
|
+
"properties": {
|
|
5301
|
+
"queue_max": {
|
|
5302
|
+
"type": "integer",
|
|
5303
|
+
"minimum": 1,
|
|
5304
|
+
"maximum": 16,
|
|
5305
|
+
"default": 16,
|
|
5306
|
+
"description": "Messages that may wait for the current turn, at most `agents.queue_max`."
|
|
5307
|
+
},
|
|
5308
|
+
"timeout_s": {
|
|
5309
|
+
"type": "integer",
|
|
5310
|
+
"minimum": 1,
|
|
5311
|
+
"maximum": 3600,
|
|
5312
|
+
"default": 300,
|
|
5313
|
+
"description": "How long a turn may take from its message's acceptance, queue time included."
|
|
5314
|
+
},
|
|
5315
|
+
"redeliver": {
|
|
5316
|
+
"type": "boolean",
|
|
5317
|
+
"default": false,
|
|
5318
|
+
"description": "Deliver a message again after the node restarted while the harness had it."
|
|
5319
|
+
}
|
|
5320
|
+
},
|
|
5321
|
+
"additionalProperties": false
|
|
5322
|
+
},
|
|
5323
|
+
"metadata": {
|
|
5324
|
+
"type": "object",
|
|
5325
|
+
"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 _ . : -`."
|
|
5326
|
+
}
|
|
5327
|
+
},
|
|
5328
|
+
"required": ["name", "entry"],
|
|
5329
|
+
"additionalProperties": false
|
|
5330
|
+
},
|
|
5331
|
+
"operationId": "agentsCreateAgent",
|
|
5332
|
+
"method": "POST",
|
|
5333
|
+
"path": "/v1/agents",
|
|
5334
|
+
"scope": "agents:write",
|
|
5335
|
+
"servedBy": "node",
|
|
5336
|
+
"stage": "preview",
|
|
5337
|
+
"flag": "agents.actors",
|
|
5338
|
+
"pathParams": [],
|
|
5339
|
+
"queryParams": [],
|
|
5340
|
+
"body": "json",
|
|
5341
|
+
"bodyFields": ["name", "source", "entry", "env", "secrets", "api", "egress", "sleep", "turns", "metadata"],
|
|
5342
|
+
"rawFields": [],
|
|
5343
|
+
"toolArgs": [],
|
|
5344
|
+
"bodyDefaults": {},
|
|
5345
|
+
"queryDefaults": {}
|
|
5346
|
+
},
|
|
5347
|
+
{
|
|
5348
|
+
"name": "agent_list",
|
|
5349
|
+
"group": "agents",
|
|
5350
|
+
"title": "List agents",
|
|
5351
|
+
"description": "List the project's agents, newest first, with each one's revision and instance count.",
|
|
5352
|
+
"annotations": {
|
|
5353
|
+
"title": "List agents",
|
|
5354
|
+
"readOnlyHint": true,
|
|
5355
|
+
"openWorldHint": false
|
|
5356
|
+
},
|
|
5357
|
+
"inputSchema": {
|
|
5358
|
+
"type": "object",
|
|
5359
|
+
"properties": {
|
|
5360
|
+
"limit": {
|
|
5361
|
+
"type": "integer",
|
|
5362
|
+
"minimum": 1,
|
|
5363
|
+
"maximum": 100,
|
|
5364
|
+
"default": 20,
|
|
5365
|
+
"description": "Page size, from 1 to 100."
|
|
5366
|
+
},
|
|
5367
|
+
"cursor": {
|
|
5368
|
+
"type": "string",
|
|
5369
|
+
"description": "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page."
|
|
5370
|
+
}
|
|
5371
|
+
},
|
|
5372
|
+
"additionalProperties": false
|
|
5373
|
+
},
|
|
5374
|
+
"operationId": "agentsListAgents",
|
|
5375
|
+
"method": "GET",
|
|
5376
|
+
"path": "/v1/agents",
|
|
5377
|
+
"scope": "agents:read",
|
|
5378
|
+
"servedBy": "node",
|
|
5379
|
+
"stage": "preview",
|
|
5380
|
+
"flag": "agents.actors",
|
|
5381
|
+
"pathParams": [],
|
|
5382
|
+
"queryParams": [
|
|
5383
|
+
{
|
|
5384
|
+
"name": "limit"
|
|
5385
|
+
},
|
|
5386
|
+
{
|
|
5387
|
+
"name": "cursor"
|
|
5388
|
+
}
|
|
5389
|
+
],
|
|
5390
|
+
"body": "none",
|
|
5391
|
+
"bodyFields": [],
|
|
5392
|
+
"rawFields": [],
|
|
5393
|
+
"toolArgs": [],
|
|
5394
|
+
"bodyDefaults": {},
|
|
5395
|
+
"queryDefaults": {
|
|
5396
|
+
"limit": 20
|
|
5397
|
+
}
|
|
5398
|
+
},
|
|
5399
|
+
{
|
|
5400
|
+
"name": "agent_get",
|
|
5401
|
+
"group": "agents",
|
|
5402
|
+
"title": "Get an agent",
|
|
5403
|
+
"description": "Read an agent's definition by name or agt_ id: its source, entry, sleep and turn settings, revision.",
|
|
5404
|
+
"annotations": {
|
|
5405
|
+
"title": "Get an agent",
|
|
5406
|
+
"readOnlyHint": true,
|
|
5407
|
+
"openWorldHint": false
|
|
5408
|
+
},
|
|
5409
|
+
"inputSchema": {
|
|
5410
|
+
"type": "object",
|
|
5411
|
+
"properties": {
|
|
5412
|
+
"agent": {
|
|
5413
|
+
"type": "string",
|
|
5414
|
+
"description": "The agent's name, or its agt_ id."
|
|
5415
|
+
}
|
|
5416
|
+
},
|
|
5417
|
+
"required": ["agent"],
|
|
5418
|
+
"additionalProperties": false
|
|
5419
|
+
},
|
|
5420
|
+
"operationId": "agentsGetAgent",
|
|
5421
|
+
"method": "GET",
|
|
5422
|
+
"path": "/v1/agents/{agent}",
|
|
5423
|
+
"scope": "agents:read",
|
|
5424
|
+
"servedBy": "node",
|
|
5425
|
+
"stage": "preview",
|
|
5426
|
+
"flag": "agents.actors",
|
|
5427
|
+
"pathParams": ["agent"],
|
|
5428
|
+
"queryParams": [],
|
|
5429
|
+
"body": "none",
|
|
5430
|
+
"bodyFields": [],
|
|
5431
|
+
"rawFields": [],
|
|
5432
|
+
"toolArgs": [],
|
|
5433
|
+
"bodyDefaults": {},
|
|
5434
|
+
"queryDefaults": {}
|
|
5435
|
+
},
|
|
5436
|
+
{
|
|
5437
|
+
"name": "agent_update",
|
|
5438
|
+
"group": "agents",
|
|
5439
|
+
"title": "Update an agent",
|
|
5440
|
+
"description": "Change an agent's definition (a new revision). upgrade says when instances take it: new_instances (the default) or on_wake.",
|
|
5441
|
+
"annotations": {
|
|
5442
|
+
"title": "Update an agent",
|
|
5443
|
+
"readOnlyHint": false,
|
|
5444
|
+
"destructiveHint": false,
|
|
5445
|
+
"openWorldHint": false
|
|
5446
|
+
},
|
|
5447
|
+
"inputSchema": {
|
|
5448
|
+
"type": "object",
|
|
5449
|
+
"properties": {
|
|
5450
|
+
"agent": {
|
|
5451
|
+
"type": "string",
|
|
5452
|
+
"description": "The agent's name, or its agt_ id."
|
|
5453
|
+
},
|
|
5454
|
+
"source": {
|
|
5455
|
+
"type": "object",
|
|
5456
|
+
"description": "What each instance starts from: a template (node templates, or one of your project's image templates) at a size, or one of your project's snapshots.",
|
|
5457
|
+
"properties": {
|
|
5458
|
+
"template": {
|
|
5459
|
+
"type": "string",
|
|
5460
|
+
"default": "agent"
|
|
5461
|
+
},
|
|
5462
|
+
"snapshot": {
|
|
5463
|
+
"type": "string",
|
|
5464
|
+
"pattern": "^snap_[0-9a-hjkmnp-tv-z]{26}$",
|
|
5465
|
+
"description": "Restore this snapshot instead of starting from a template."
|
|
5466
|
+
},
|
|
5467
|
+
"vcpu": {
|
|
5468
|
+
"type": "integer",
|
|
5469
|
+
"minimum": 1
|
|
5470
|
+
},
|
|
5471
|
+
"memory_mib": {
|
|
5472
|
+
"type": "integer",
|
|
5473
|
+
"minimum": 128
|
|
5474
|
+
},
|
|
5475
|
+
"disk_gib": {
|
|
5476
|
+
"type": "integer",
|
|
5477
|
+
"minimum": 1
|
|
5478
|
+
}
|
|
5479
|
+
},
|
|
5480
|
+
"additionalProperties": false
|
|
5481
|
+
},
|
|
5482
|
+
"entry": {
|
|
5483
|
+
"type": "object",
|
|
5484
|
+
"required": ["command", "port"],
|
|
5485
|
+
"description": "The harness. `command` runs in each instance when it is made, and again after a cold boot from its disk.",
|
|
5486
|
+
"properties": {
|
|
5487
|
+
"command": {
|
|
5488
|
+
"type": "array",
|
|
5489
|
+
"items": {
|
|
5490
|
+
"type": "string"
|
|
5491
|
+
}
|
|
5492
|
+
},
|
|
5493
|
+
"port": {
|
|
5494
|
+
"type": "integer",
|
|
5495
|
+
"minimum": 1,
|
|
5496
|
+
"maximum": 65535,
|
|
5497
|
+
"description": "Not 53, 1080, 3128, 7700 or 15001, which the guest agent listens on."
|
|
5498
|
+
},
|
|
5499
|
+
"path": {
|
|
5500
|
+
"type": "string",
|
|
5501
|
+
"pattern": "^/",
|
|
5502
|
+
"default": "/"
|
|
5503
|
+
},
|
|
5504
|
+
"readiness": {
|
|
5505
|
+
"type": "object",
|
|
5506
|
+
"description": "When the sandbox counts as ready: a TCP port inside it accepting connections...",
|
|
5507
|
+
"properties": {
|
|
5508
|
+
"port": {
|
|
5509
|
+
"type": "integer",
|
|
5510
|
+
"minimum": 1,
|
|
5511
|
+
"maximum": 65535
|
|
5512
|
+
},
|
|
5513
|
+
"cmd": {
|
|
5514
|
+
"description": "A shell command line (run with `/bin/sh -c`) or an argv array.",
|
|
5515
|
+
"oneOf": [
|
|
5516
|
+
{
|
|
5517
|
+
"type": "string"
|
|
5518
|
+
},
|
|
5519
|
+
{
|
|
5520
|
+
"type": "array"
|
|
5521
|
+
}
|
|
5522
|
+
]
|
|
5523
|
+
},
|
|
5524
|
+
"interval_ms": {
|
|
5525
|
+
"type": "integer",
|
|
5526
|
+
"minimum": 5,
|
|
5527
|
+
"maximum": 5000,
|
|
5528
|
+
"default": 10
|
|
5529
|
+
},
|
|
5530
|
+
"timeout_s": {
|
|
5531
|
+
"type": "integer",
|
|
5532
|
+
"minimum": 1,
|
|
5533
|
+
"maximum": 600,
|
|
5534
|
+
"default": 60
|
|
5535
|
+
}
|
|
5536
|
+
}
|
|
5537
|
+
},
|
|
5538
|
+
"max_restarts": {
|
|
5539
|
+
"type": "integer",
|
|
5540
|
+
"minimum": 0,
|
|
5541
|
+
"maximum": 20,
|
|
5542
|
+
"default": 5
|
|
5543
|
+
}
|
|
5544
|
+
},
|
|
5545
|
+
"additionalProperties": false
|
|
5546
|
+
},
|
|
5547
|
+
"env": {
|
|
5548
|
+
"type": "object",
|
|
5549
|
+
"additionalProperties": {
|
|
5550
|
+
"type": "string"
|
|
5551
|
+
}
|
|
5552
|
+
},
|
|
5553
|
+
"secrets": {
|
|
5554
|
+
"type": "object",
|
|
5555
|
+
"additionalProperties": {
|
|
5556
|
+
"description": "A value placed in the environment but never returned or logged.",
|
|
5557
|
+
"oneOf": [
|
|
5558
|
+
{
|
|
5559
|
+
"type": "string"
|
|
5560
|
+
},
|
|
5561
|
+
{
|
|
5562
|
+
"type": "object",
|
|
5563
|
+
"required": ["connection"],
|
|
5564
|
+
"properties": {
|
|
5565
|
+
"connection": {
|
|
5566
|
+
"type": "string",
|
|
5567
|
+
"pattern": "^conn_[0-9a-hjkmnp-tv-z]{26}$"
|
|
5568
|
+
},
|
|
5569
|
+
"field": {
|
|
5570
|
+
"type": "string",
|
|
5571
|
+
"description": "Which secret field of the connection (vault.yaml names)."
|
|
5572
|
+
}
|
|
5573
|
+
}
|
|
5574
|
+
}
|
|
5575
|
+
]
|
|
5576
|
+
}
|
|
5577
|
+
},
|
|
5578
|
+
"api": {
|
|
5579
|
+
"type": "object",
|
|
5580
|
+
"description": "What code inside the sandbox may call at `http://127.0.0.1:7700`. Empty by default, revoked when the sandbox stops.",
|
|
5581
|
+
"properties": {
|
|
5582
|
+
"scopes": {
|
|
5583
|
+
"type": "array",
|
|
5584
|
+
"items": {
|
|
5585
|
+
"type": "string",
|
|
5586
|
+
"description": "A scope from the catalog (`vision:run`.",
|
|
5587
|
+
"enum": [
|
|
5588
|
+
"vision:read",
|
|
5589
|
+
"vision:write",
|
|
5590
|
+
"vision:run",
|
|
5591
|
+
"vision:profiles:use",
|
|
5592
|
+
"vision:profiles:export",
|
|
5593
|
+
"render:read",
|
|
5594
|
+
"render:write",
|
|
5595
|
+
"render:run",
|
|
5596
|
+
"sandboxes:read",
|
|
5597
|
+
"sandboxes:write",
|
|
5598
|
+
"sandboxes:run",
|
|
5599
|
+
"agents:read",
|
|
5600
|
+
"agents:write",
|
|
5601
|
+
"agents:run",
|
|
5602
|
+
"routines:read",
|
|
5603
|
+
"routines:write",
|
|
5604
|
+
"routines:run",
|
|
5605
|
+
"listeners:read",
|
|
5606
|
+
"listeners:write",
|
|
5607
|
+
"actions:read",
|
|
5608
|
+
"actions:write",
|
|
5609
|
+
"actions:run",
|
|
5610
|
+
"actions:tools:publish",
|
|
5611
|
+
"infer:read",
|
|
5612
|
+
"infer:write",
|
|
5613
|
+
"infer:run",
|
|
5614
|
+
"vault:read",
|
|
5615
|
+
"vault:write",
|
|
5616
|
+
"vault:run",
|
|
5617
|
+
"vault:connections:reveal",
|
|
5618
|
+
"platform:read",
|
|
5619
|
+
"platform:write",
|
|
5620
|
+
"platform:content:read",
|
|
5621
|
+
"settings:write",
|
|
5622
|
+
"vision:*",
|
|
5623
|
+
"render:*",
|
|
5624
|
+
"sandboxes:*",
|
|
5625
|
+
"agents:*",
|
|
5626
|
+
"routines:*",
|
|
5627
|
+
"listeners:*",
|
|
5628
|
+
"actions:*",
|
|
5629
|
+
"infer:*",
|
|
5630
|
+
"vault:*",
|
|
5631
|
+
"platform:*",
|
|
5632
|
+
"settings:*",
|
|
5633
|
+
"*"
|
|
5634
|
+
]
|
|
5635
|
+
},
|
|
5636
|
+
"description": "A subset of your own scopes."
|
|
5637
|
+
},
|
|
5638
|
+
"spend_cap_usd": {
|
|
5639
|
+
"type": ["number", "null"],
|
|
5640
|
+
"minimum": 0,
|
|
5641
|
+
"description": "Stop the sandbox's own API calls at this spend."
|
|
5642
|
+
},
|
|
5643
|
+
"connections": {
|
|
5644
|
+
"type": "array",
|
|
5645
|
+
"items": {
|
|
5646
|
+
"type": "string",
|
|
5647
|
+
"pattern": "^conn_[0-9a-hjkmnp-tv-z]{26}$"
|
|
5648
|
+
},
|
|
5649
|
+
"description": "Vault connections the sandbox's action calls may use."
|
|
5650
|
+
},
|
|
5651
|
+
"actions": {
|
|
5652
|
+
"type": ["object", "null"],
|
|
5653
|
+
"description": "Which pack actions code in the sandbox may call (`POST /v1/actions/call`) and...",
|
|
5654
|
+
"required": ["allow"],
|
|
5655
|
+
"properties": {
|
|
5656
|
+
"allow": {
|
|
5657
|
+
"type": "array",
|
|
5658
|
+
"items": {
|
|
5659
|
+
"type": "string"
|
|
5660
|
+
},
|
|
5661
|
+
"description": "`<namespace>/<name>/<action>[@<version>]`: `<action>` an action key or `*` (e..."
|
|
5662
|
+
}
|
|
5663
|
+
}
|
|
5664
|
+
}
|
|
5665
|
+
},
|
|
5666
|
+
"additionalProperties": false
|
|
5667
|
+
},
|
|
5668
|
+
"egress": {
|
|
5669
|
+
"type": "object",
|
|
5670
|
+
"description": "Where sandbox traffic may go, enforced by the node's egress guard. `public` (default): any public internet address."
|
|
5671
|
+
},
|
|
5672
|
+
"sleep": {
|
|
5673
|
+
"type": "object",
|
|
5674
|
+
"description": "When an idle instance moves to each sleep tier. Quiet means no turn, no queued message, no open connection through its ports, no exec, file or terminal call...",
|
|
5675
|
+
"properties": {
|
|
5676
|
+
"ram_after_s": {
|
|
5677
|
+
"type": "integer",
|
|
5678
|
+
"minimum": 5,
|
|
5679
|
+
"maximum": 3600,
|
|
5680
|
+
"default": 30,
|
|
5681
|
+
"description": "Quiet this long, it pauses in memory."
|
|
5682
|
+
},
|
|
5683
|
+
"snapshot_after_s": {
|
|
5684
|
+
"type": "integer",
|
|
5685
|
+
"minimum": 60,
|
|
5686
|
+
"maximum": 86400,
|
|
5687
|
+
"default": 600,
|
|
5688
|
+
"description": "Paused this long, its memory goes to a snapshot on the node's disk and its me..."
|
|
5689
|
+
},
|
|
5690
|
+
"snapshot_keep_s": {
|
|
5691
|
+
"type": "integer",
|
|
5692
|
+
"minimum": 3600,
|
|
5693
|
+
"maximum": 604800,
|
|
5694
|
+
"default": 604800,
|
|
5695
|
+
"description": "How long a memory snapshot is kept."
|
|
5696
|
+
}
|
|
5697
|
+
},
|
|
5698
|
+
"additionalProperties": false
|
|
5699
|
+
},
|
|
5700
|
+
"turns": {
|
|
5701
|
+
"type": "object",
|
|
5702
|
+
"description": "How messages become turns. One turn runs at a time per instance.",
|
|
5703
|
+
"properties": {
|
|
5704
|
+
"queue_max": {
|
|
5705
|
+
"type": "integer",
|
|
5706
|
+
"minimum": 1,
|
|
5707
|
+
"maximum": 16,
|
|
5708
|
+
"default": 16,
|
|
5709
|
+
"description": "Messages that may wait for the current turn, at most `agents.queue_max`."
|
|
5710
|
+
},
|
|
5711
|
+
"timeout_s": {
|
|
5712
|
+
"type": "integer",
|
|
5713
|
+
"minimum": 1,
|
|
5714
|
+
"maximum": 3600,
|
|
5715
|
+
"default": 300,
|
|
5716
|
+
"description": "How long a turn may take from its message's acceptance, queue time included."
|
|
5717
|
+
},
|
|
5718
|
+
"redeliver": {
|
|
5719
|
+
"type": "boolean",
|
|
5720
|
+
"default": false,
|
|
5721
|
+
"description": "Deliver a message again after the node restarted while the harness had it."
|
|
5722
|
+
}
|
|
5723
|
+
},
|
|
5724
|
+
"additionalProperties": false
|
|
5725
|
+
},
|
|
5726
|
+
"upgrade": {
|
|
5727
|
+
"type": "string",
|
|
5728
|
+
"enum": ["new_instances", "on_wake"],
|
|
5729
|
+
"default": "new_instances",
|
|
5730
|
+
"description": "What happens to instances of earlier revisions: `new_instances` leaves them as they are."
|
|
5731
|
+
},
|
|
5732
|
+
"metadata": {
|
|
5733
|
+
"type": "object",
|
|
5734
|
+
"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 _ . : -`."
|
|
5735
|
+
}
|
|
5736
|
+
},
|
|
5737
|
+
"required": ["agent"],
|
|
5738
|
+
"additionalProperties": false
|
|
5739
|
+
},
|
|
5740
|
+
"operationId": "agentsUpdateAgent",
|
|
5741
|
+
"method": "PATCH",
|
|
5742
|
+
"path": "/v1/agents/{agent}",
|
|
5743
|
+
"scope": "agents:write",
|
|
5744
|
+
"servedBy": "node",
|
|
5745
|
+
"stage": "preview",
|
|
5746
|
+
"flag": "agents.actors",
|
|
5747
|
+
"pathParams": ["agent"],
|
|
5748
|
+
"queryParams": [],
|
|
5749
|
+
"body": "json",
|
|
5750
|
+
"bodyFields": ["source", "entry", "env", "secrets", "api", "egress", "sleep", "turns", "upgrade", "metadata"],
|
|
5751
|
+
"rawFields": [],
|
|
5752
|
+
"toolArgs": [],
|
|
5753
|
+
"bodyDefaults": {},
|
|
5754
|
+
"queryDefaults": {}
|
|
5755
|
+
},
|
|
5756
|
+
{
|
|
5757
|
+
"name": "agent_delete",
|
|
5758
|
+
"group": "agents",
|
|
5759
|
+
"title": "Delete an agent",
|
|
5760
|
+
"description": "Delete an agent and every instance of it, with their microVMs, snapshots and disks.",
|
|
5761
|
+
"annotations": {
|
|
5762
|
+
"title": "Delete an agent",
|
|
5763
|
+
"readOnlyHint": false,
|
|
5764
|
+
"destructiveHint": true,
|
|
5765
|
+
"idempotentHint": true,
|
|
5766
|
+
"openWorldHint": false
|
|
5767
|
+
},
|
|
5768
|
+
"inputSchema": {
|
|
5769
|
+
"type": "object",
|
|
5770
|
+
"properties": {
|
|
5771
|
+
"agent": {
|
|
5772
|
+
"type": "string",
|
|
5773
|
+
"description": "The agent's name, or its agt_ id."
|
|
5774
|
+
}
|
|
5775
|
+
},
|
|
5776
|
+
"required": ["agent"],
|
|
5777
|
+
"additionalProperties": false
|
|
5778
|
+
},
|
|
5779
|
+
"operationId": "agentsDeleteAgent",
|
|
5780
|
+
"method": "DELETE",
|
|
5781
|
+
"path": "/v1/agents/{agent}",
|
|
5782
|
+
"scope": "agents:write",
|
|
5783
|
+
"servedBy": "node",
|
|
5784
|
+
"stage": "preview",
|
|
5785
|
+
"flag": "agents.actors",
|
|
5786
|
+
"pathParams": ["agent"],
|
|
5787
|
+
"queryParams": [],
|
|
5788
|
+
"body": "none",
|
|
5789
|
+
"bodyFields": [],
|
|
5790
|
+
"rawFields": [],
|
|
5791
|
+
"toolArgs": [],
|
|
5792
|
+
"bodyDefaults": {},
|
|
5793
|
+
"queryDefaults": {}
|
|
5794
|
+
},
|
|
5795
|
+
{
|
|
5796
|
+
"name": "agent_list_instances",
|
|
5797
|
+
"group": "agents",
|
|
5798
|
+
"title": "List an agent's instances",
|
|
5799
|
+
"description": "List an agent's instances: each key with its status (running, paused, hibernated, dormant, failed), its resident memory and the bytes it holds on the node's disk.",
|
|
5800
|
+
"annotations": {
|
|
5801
|
+
"title": "List an agent's instances",
|
|
5802
|
+
"readOnlyHint": true,
|
|
5803
|
+
"openWorldHint": false
|
|
5804
|
+
},
|
|
5805
|
+
"inputSchema": {
|
|
5806
|
+
"type": "object",
|
|
5807
|
+
"properties": {
|
|
5808
|
+
"agent": {
|
|
5809
|
+
"type": "string",
|
|
5810
|
+
"description": "The agent's name, or its agt_ id."
|
|
5811
|
+
},
|
|
5812
|
+
"status": {
|
|
5813
|
+
"type": "string",
|
|
5814
|
+
"description": "Only instances with this status.",
|
|
5815
|
+
"enum": ["creating", "running", "paused", "hibernated", "dormant", "waking", "failed"]
|
|
5816
|
+
},
|
|
5817
|
+
"limit": {
|
|
5818
|
+
"type": "integer",
|
|
5819
|
+
"minimum": 1,
|
|
5820
|
+
"maximum": 100,
|
|
5821
|
+
"default": 20,
|
|
5822
|
+
"description": "Page size, from 1 to 100."
|
|
5823
|
+
},
|
|
5824
|
+
"cursor": {
|
|
5825
|
+
"type": "string",
|
|
5826
|
+
"description": "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page."
|
|
5827
|
+
}
|
|
5828
|
+
},
|
|
5829
|
+
"required": ["agent"],
|
|
5830
|
+
"additionalProperties": false
|
|
5831
|
+
},
|
|
5832
|
+
"operationId": "agentsListInstances",
|
|
5833
|
+
"method": "GET",
|
|
5834
|
+
"path": "/v1/agents/{agent}/instances",
|
|
5835
|
+
"scope": "agents:read",
|
|
5836
|
+
"servedBy": "node",
|
|
5837
|
+
"stage": "preview",
|
|
5838
|
+
"flag": "agents.actors",
|
|
5839
|
+
"pathParams": ["agent"],
|
|
5840
|
+
"queryParams": [
|
|
5841
|
+
{
|
|
5842
|
+
"name": "status"
|
|
5843
|
+
},
|
|
5844
|
+
{
|
|
5845
|
+
"name": "limit"
|
|
5846
|
+
},
|
|
5847
|
+
{
|
|
5848
|
+
"name": "cursor"
|
|
5849
|
+
}
|
|
5850
|
+
],
|
|
5851
|
+
"body": "none",
|
|
5852
|
+
"bodyFields": [],
|
|
5853
|
+
"rawFields": [],
|
|
5854
|
+
"toolArgs": [],
|
|
5855
|
+
"bodyDefaults": {},
|
|
5856
|
+
"queryDefaults": {
|
|
5857
|
+
"limit": 20
|
|
5858
|
+
}
|
|
5859
|
+
},
|
|
5860
|
+
{
|
|
5861
|
+
"name": "agent_get_instance",
|
|
5862
|
+
"group": "agents",
|
|
5863
|
+
"title": "Get an agent instance",
|
|
5864
|
+
"description": "Read one instance by its key: status, sandbox id, resident memory, storage, last message, snapshot time.",
|
|
5865
|
+
"annotations": {
|
|
5866
|
+
"title": "Get an agent instance",
|
|
5867
|
+
"readOnlyHint": true,
|
|
5868
|
+
"openWorldHint": false
|
|
5869
|
+
},
|
|
5870
|
+
"inputSchema": {
|
|
5871
|
+
"type": "object",
|
|
5872
|
+
"properties": {
|
|
5873
|
+
"agent": {
|
|
5874
|
+
"type": "string",
|
|
5875
|
+
"description": "The agent's name, or its agt_ id."
|
|
5876
|
+
},
|
|
5877
|
+
"key": {
|
|
5878
|
+
"type": "string",
|
|
5879
|
+
"pattern": "^[A-Za-z0-9._:-]{1,128}$",
|
|
5880
|
+
"description": "The instance key: 1 to 128 of A-Z a-z 0-9 . _ : - (a user, a thread, a repository)."
|
|
5881
|
+
}
|
|
5882
|
+
},
|
|
5883
|
+
"required": ["agent", "key"],
|
|
5884
|
+
"additionalProperties": false
|
|
5885
|
+
},
|
|
5886
|
+
"operationId": "agentsGetInstance",
|
|
5887
|
+
"method": "GET",
|
|
5888
|
+
"path": "/v1/agents/{agent}/instances/{key}",
|
|
5889
|
+
"scope": "agents:read",
|
|
5890
|
+
"servedBy": "node",
|
|
5891
|
+
"stage": "preview",
|
|
5892
|
+
"flag": "agents.actors",
|
|
5893
|
+
"pathParams": ["agent", "key"],
|
|
5894
|
+
"queryParams": [],
|
|
5895
|
+
"body": "none",
|
|
5896
|
+
"bodyFields": [],
|
|
5897
|
+
"rawFields": [],
|
|
5898
|
+
"toolArgs": [],
|
|
5899
|
+
"bodyDefaults": {},
|
|
5900
|
+
"queryDefaults": {}
|
|
5901
|
+
},
|
|
5902
|
+
{
|
|
5903
|
+
"name": "agent_instance_events",
|
|
5904
|
+
"group": "agents",
|
|
5905
|
+
"title": "Read an instance's lifecycle events",
|
|
5906
|
+
"description": "An instance's lifecycle events, newest first: created, paused, hibernated, dormant, woke (and from which tier), recovered, failed, with their reasons.",
|
|
5907
|
+
"annotations": {
|
|
5908
|
+
"title": "Read an instance's lifecycle events",
|
|
5909
|
+
"readOnlyHint": true,
|
|
5910
|
+
"openWorldHint": false
|
|
5911
|
+
},
|
|
5912
|
+
"inputSchema": {
|
|
5913
|
+
"type": "object",
|
|
5914
|
+
"properties": {
|
|
5915
|
+
"agent": {
|
|
5916
|
+
"type": "string",
|
|
5917
|
+
"description": "The agent's name, or its agt_ id."
|
|
5918
|
+
},
|
|
5919
|
+
"key": {
|
|
5920
|
+
"type": "string",
|
|
5921
|
+
"pattern": "^[A-Za-z0-9._:-]{1,128}$",
|
|
5922
|
+
"description": "The instance key: 1 to 128 of A-Z a-z 0-9 . _ : - (a user, a thread, a repository)."
|
|
5923
|
+
},
|
|
5924
|
+
"limit": {
|
|
5925
|
+
"type": "integer",
|
|
5926
|
+
"minimum": 1,
|
|
5927
|
+
"maximum": 100,
|
|
5928
|
+
"default": 20,
|
|
5929
|
+
"description": "Page size, from 1 to 100."
|
|
5930
|
+
},
|
|
5931
|
+
"cursor": {
|
|
5932
|
+
"type": "string",
|
|
5933
|
+
"description": "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page."
|
|
5934
|
+
}
|
|
5935
|
+
},
|
|
5936
|
+
"required": ["agent", "key"],
|
|
5937
|
+
"additionalProperties": false
|
|
5938
|
+
},
|
|
5939
|
+
"operationId": "agentsListInstanceEvents",
|
|
5940
|
+
"method": "GET",
|
|
5941
|
+
"path": "/v1/agents/{agent}/instances/{key}/events",
|
|
5942
|
+
"scope": "agents:read",
|
|
5943
|
+
"servedBy": "node",
|
|
5944
|
+
"stage": "preview",
|
|
5945
|
+
"flag": "agents.actors",
|
|
5946
|
+
"pathParams": ["agent", "key"],
|
|
5947
|
+
"queryParams": [
|
|
5948
|
+
{
|
|
5949
|
+
"name": "limit"
|
|
5950
|
+
},
|
|
5951
|
+
{
|
|
5952
|
+
"name": "cursor"
|
|
5953
|
+
}
|
|
5954
|
+
],
|
|
5955
|
+
"body": "none",
|
|
5956
|
+
"bodyFields": [],
|
|
5957
|
+
"rawFields": [],
|
|
5958
|
+
"toolArgs": [],
|
|
5959
|
+
"bodyDefaults": {},
|
|
5960
|
+
"queryDefaults": {
|
|
5961
|
+
"limit": 20
|
|
5962
|
+
}
|
|
5963
|
+
},
|
|
5964
|
+
{
|
|
5965
|
+
"name": "agent_sleep",
|
|
5966
|
+
"group": "agents",
|
|
5967
|
+
"title": "Put an agent instance to sleep",
|
|
5968
|
+
"description": "Send an instance to a sleep tier now instead of waiting for its timers: ram pauses it in memory, snapshot writes its memory to the node's disk and frees it. A turn in progress finishes first.",
|
|
5969
|
+
"annotations": {
|
|
5970
|
+
"title": "Put an agent instance to sleep",
|
|
5971
|
+
"readOnlyHint": false,
|
|
5972
|
+
"destructiveHint": false,
|
|
5973
|
+
"idempotentHint": true,
|
|
5974
|
+
"openWorldHint": false
|
|
5975
|
+
},
|
|
5976
|
+
"inputSchema": {
|
|
5977
|
+
"type": "object",
|
|
5978
|
+
"properties": {
|
|
5979
|
+
"agent": {
|
|
5980
|
+
"type": "string",
|
|
5981
|
+
"description": "The agent's name, or its agt_ id."
|
|
5982
|
+
},
|
|
5983
|
+
"key": {
|
|
5984
|
+
"type": "string",
|
|
5985
|
+
"pattern": "^[A-Za-z0-9._:-]{1,128}$",
|
|
5986
|
+
"description": "The instance key: 1 to 128 of A-Z a-z 0-9 . _ : - (a user, a thread, a repository)."
|
|
5987
|
+
},
|
|
5988
|
+
"tier": {
|
|
5989
|
+
"type": "string",
|
|
5990
|
+
"enum": ["ram", "snapshot"],
|
|
5991
|
+
"default": "ram"
|
|
5992
|
+
}
|
|
5993
|
+
},
|
|
5994
|
+
"required": ["agent", "key"],
|
|
5995
|
+
"additionalProperties": false
|
|
5996
|
+
},
|
|
5997
|
+
"operationId": "agentsSleepInstance",
|
|
5998
|
+
"method": "POST",
|
|
5999
|
+
"path": "/v1/agents/{agent}/instances/{key}/sleep",
|
|
6000
|
+
"scope": "agents:run",
|
|
6001
|
+
"servedBy": "node",
|
|
6002
|
+
"stage": "preview",
|
|
6003
|
+
"flag": "agents.actors",
|
|
6004
|
+
"pathParams": ["agent", "key"],
|
|
6005
|
+
"queryParams": [],
|
|
6006
|
+
"body": "json",
|
|
6007
|
+
"bodyFields": ["tier"],
|
|
6008
|
+
"rawFields": [],
|
|
6009
|
+
"toolArgs": [],
|
|
6010
|
+
"bodyDefaults": {},
|
|
6011
|
+
"queryDefaults": {}
|
|
6012
|
+
},
|
|
6013
|
+
{
|
|
6014
|
+
"name": "agent_delete_instance",
|
|
6015
|
+
"group": "agents",
|
|
6016
|
+
"title": "Delete an agent instance",
|
|
6017
|
+
"description": "Delete one instance: its microVM, its memory snapshot and its disk. Its key starts fresh next time.",
|
|
6018
|
+
"annotations": {
|
|
6019
|
+
"title": "Delete an agent instance",
|
|
6020
|
+
"readOnlyHint": false,
|
|
6021
|
+
"destructiveHint": true,
|
|
6022
|
+
"idempotentHint": true,
|
|
6023
|
+
"openWorldHint": false
|
|
6024
|
+
},
|
|
6025
|
+
"inputSchema": {
|
|
6026
|
+
"type": "object",
|
|
6027
|
+
"properties": {
|
|
6028
|
+
"agent": {
|
|
6029
|
+
"type": "string",
|
|
6030
|
+
"description": "The agent's name, or its agt_ id."
|
|
6031
|
+
},
|
|
6032
|
+
"key": {
|
|
6033
|
+
"type": "string",
|
|
6034
|
+
"pattern": "^[A-Za-z0-9._:-]{1,128}$",
|
|
6035
|
+
"description": "The instance key: 1 to 128 of A-Z a-z 0-9 . _ : - (a user, a thread, a repository)."
|
|
6036
|
+
}
|
|
6037
|
+
},
|
|
6038
|
+
"required": ["agent", "key"],
|
|
6039
|
+
"additionalProperties": false
|
|
6040
|
+
},
|
|
6041
|
+
"operationId": "agentsDeleteInstance",
|
|
6042
|
+
"method": "DELETE",
|
|
6043
|
+
"path": "/v1/agents/{agent}/instances/{key}",
|
|
6044
|
+
"scope": "agents:write",
|
|
6045
|
+
"servedBy": "node",
|
|
6046
|
+
"stage": "preview",
|
|
6047
|
+
"flag": "agents.actors",
|
|
6048
|
+
"pathParams": ["agent", "key"],
|
|
6049
|
+
"queryParams": [],
|
|
6050
|
+
"body": "none",
|
|
6051
|
+
"bodyFields": [],
|
|
6052
|
+
"rawFields": [],
|
|
6053
|
+
"toolArgs": [],
|
|
6054
|
+
"bodyDefaults": {},
|
|
6055
|
+
"queryDefaults": {}
|
|
6056
|
+
},
|
|
6057
|
+
{
|
|
6058
|
+
"name": "agent_list_sessions",
|
|
6059
|
+
"group": "agents",
|
|
6060
|
+
"title": "List an agent's sessions",
|
|
6061
|
+
"description": "List an agent's sessions (one per turn), newest first, optionally for one key, conversation or status: each with its status, woke_from and timing.",
|
|
6062
|
+
"annotations": {
|
|
6063
|
+
"title": "List an agent's sessions",
|
|
6064
|
+
"readOnlyHint": true,
|
|
6065
|
+
"openWorldHint": false
|
|
6066
|
+
},
|
|
6067
|
+
"inputSchema": {
|
|
6068
|
+
"type": "object",
|
|
6069
|
+
"properties": {
|
|
6070
|
+
"agent": {
|
|
6071
|
+
"type": "string",
|
|
6072
|
+
"description": "The agent's name, or its agt_ id."
|
|
6073
|
+
},
|
|
6074
|
+
"key": {
|
|
6075
|
+
"type": "string",
|
|
6076
|
+
"pattern": "^[A-Za-z0-9._:-]{1,128}$",
|
|
6077
|
+
"description": "Only sessions of this instance."
|
|
6078
|
+
},
|
|
6079
|
+
"conversation": {
|
|
6080
|
+
"type": "string",
|
|
6081
|
+
"description": "Only sessions of this conversation."
|
|
6082
|
+
},
|
|
3180
6083
|
"status": {
|
|
3181
6084
|
"type": "string",
|
|
3182
|
-
"
|
|
6085
|
+
"description": "Only sessions with this status.",
|
|
6086
|
+
"enum": ["queued", "running", "succeeded", "failed", "canceled"]
|
|
3183
6087
|
},
|
|
3184
6088
|
"limit": {
|
|
3185
6089
|
"type": "integer",
|
|
3186
6090
|
"minimum": 1,
|
|
3187
6091
|
"maximum": 100,
|
|
3188
|
-
"default":
|
|
6092
|
+
"default": 10,
|
|
3189
6093
|
"description": "Page size, from 1 to 100."
|
|
3190
6094
|
},
|
|
3191
6095
|
"cursor": {
|
|
@@ -3193,20 +6097,23 @@
|
|
|
3193
6097
|
"description": "Opaque cursor from the previous page's `next_cursor`. Omit it for the first page."
|
|
3194
6098
|
}
|
|
3195
6099
|
},
|
|
6100
|
+
"required": ["agent"],
|
|
3196
6101
|
"additionalProperties": false
|
|
3197
6102
|
},
|
|
3198
|
-
"operationId": "
|
|
6103
|
+
"operationId": "agentsListSessions",
|
|
3199
6104
|
"method": "GET",
|
|
3200
|
-
"path": "/v1/
|
|
3201
|
-
"scope": "
|
|
6105
|
+
"path": "/v1/agents/{agent}/sessions",
|
|
6106
|
+
"scope": "agents:read",
|
|
3202
6107
|
"servedBy": "node",
|
|
3203
|
-
"
|
|
6108
|
+
"stage": "preview",
|
|
6109
|
+
"flag": "agents.actors",
|
|
6110
|
+
"pathParams": ["agent"],
|
|
3204
6111
|
"queryParams": [
|
|
3205
6112
|
{
|
|
3206
|
-
"name": "
|
|
6113
|
+
"name": "key"
|
|
3207
6114
|
},
|
|
3208
6115
|
{
|
|
3209
|
-
"name": "
|
|
6116
|
+
"name": "conversation"
|
|
3210
6117
|
},
|
|
3211
6118
|
{
|
|
3212
6119
|
"name": "status"
|
|
@@ -3223,39 +6130,82 @@
|
|
|
3223
6130
|
"rawFields": [],
|
|
3224
6131
|
"toolArgs": [],
|
|
3225
6132
|
"bodyDefaults": {},
|
|
6133
|
+
"queryDefaults": {
|
|
6134
|
+
"limit": 10
|
|
6135
|
+
}
|
|
6136
|
+
},
|
|
6137
|
+
{
|
|
6138
|
+
"name": "agent_get_session",
|
|
6139
|
+
"group": "agents",
|
|
6140
|
+
"title": "Get an agent session",
|
|
6141
|
+
"description": "Read a session (one turn) by its ses_ id: status, phase, woke_from, the harness's result or the error, and the timing of its queue, wake, delivery and harness.",
|
|
6142
|
+
"annotations": {
|
|
6143
|
+
"title": "Get an agent session",
|
|
6144
|
+
"readOnlyHint": true,
|
|
6145
|
+
"openWorldHint": false
|
|
6146
|
+
},
|
|
6147
|
+
"inputSchema": {
|
|
6148
|
+
"type": "object",
|
|
6149
|
+
"properties": {
|
|
6150
|
+
"session_id": {
|
|
6151
|
+
"type": "string",
|
|
6152
|
+
"pattern": "^ses_[0-9a-hjkmnp-tv-z]{26}$",
|
|
6153
|
+
"description": "The session's `ses_` ID."
|
|
6154
|
+
}
|
|
6155
|
+
},
|
|
6156
|
+
"required": ["session_id"],
|
|
6157
|
+
"additionalProperties": false
|
|
6158
|
+
},
|
|
6159
|
+
"operationId": "agentsGetSession",
|
|
6160
|
+
"method": "GET",
|
|
6161
|
+
"path": "/v1/agents/sessions/{session_id}",
|
|
6162
|
+
"scope": "agents:read",
|
|
6163
|
+
"servedBy": "node",
|
|
6164
|
+
"stage": "preview",
|
|
6165
|
+
"flag": "agents.actors",
|
|
6166
|
+
"pathParams": ["session_id"],
|
|
6167
|
+
"queryParams": [],
|
|
6168
|
+
"body": "none",
|
|
6169
|
+
"bodyFields": [],
|
|
6170
|
+
"rawFields": [],
|
|
6171
|
+
"toolArgs": [],
|
|
6172
|
+
"bodyDefaults": {},
|
|
3226
6173
|
"queryDefaults": {}
|
|
3227
6174
|
},
|
|
3228
6175
|
{
|
|
3229
|
-
"name": "
|
|
3230
|
-
"group": "
|
|
3231
|
-
"title": "
|
|
3232
|
-
"description": "
|
|
6176
|
+
"name": "agent_cancel_session",
|
|
6177
|
+
"group": "agents",
|
|
6178
|
+
"title": "Cancel an agent session",
|
|
6179
|
+
"description": "Cancel a queued or running turn. A queued message is never delivered; a delivered one has its request into the harness closed.",
|
|
3233
6180
|
"annotations": {
|
|
3234
|
-
"title": "
|
|
6181
|
+
"title": "Cancel an agent session",
|
|
3235
6182
|
"readOnlyHint": false,
|
|
3236
|
-
"destructiveHint":
|
|
3237
|
-
"openWorldHint":
|
|
6183
|
+
"destructiveHint": true,
|
|
6184
|
+
"openWorldHint": false
|
|
3238
6185
|
},
|
|
3239
6186
|
"inputSchema": {
|
|
3240
6187
|
"type": "object",
|
|
3241
6188
|
"properties": {
|
|
3242
|
-
"
|
|
6189
|
+
"session_id": {
|
|
3243
6190
|
"type": "string",
|
|
3244
|
-
"
|
|
6191
|
+
"pattern": "^ses_[0-9a-hjkmnp-tv-z]{26}$",
|
|
6192
|
+
"description": "The session's `ses_` ID."
|
|
3245
6193
|
}
|
|
3246
6194
|
},
|
|
3247
|
-
"required": ["
|
|
6195
|
+
"required": ["session_id"],
|
|
3248
6196
|
"additionalProperties": false
|
|
3249
6197
|
},
|
|
3250
|
-
"operationId": "
|
|
6198
|
+
"operationId": "agentsCancelSession",
|
|
3251
6199
|
"method": "POST",
|
|
3252
|
-
"path": "/v1/
|
|
3253
|
-
"scope": "
|
|
6200
|
+
"path": "/v1/agents/sessions/{session_id}/cancel",
|
|
6201
|
+
"scope": "agents:run",
|
|
3254
6202
|
"servedBy": "node",
|
|
3255
|
-
"
|
|
6203
|
+
"stage": "preview",
|
|
6204
|
+
"flag": "agents.actors",
|
|
6205
|
+
"pathParams": ["session_id"],
|
|
3256
6206
|
"queryParams": [],
|
|
3257
|
-
"body": "
|
|
3258
|
-
"bodyFields": [
|
|
6207
|
+
"body": "none",
|
|
6208
|
+
"bodyFields": [],
|
|
3259
6209
|
"rawFields": [],
|
|
3260
6210
|
"toolArgs": [],
|
|
3261
6211
|
"bodyDefaults": {},
|
|
@@ -3287,6 +6237,118 @@
|
|
|
3287
6237
|
"servedBy": "node",
|
|
3288
6238
|
"idempotent": false
|
|
3289
6239
|
},
|
|
6240
|
+
"agentsCancelSession": {
|
|
6241
|
+
"method": "POST",
|
|
6242
|
+
"path": "/v1/agents/sessions/{session_id}/cancel",
|
|
6243
|
+
"pathParams": ["session_id"],
|
|
6244
|
+
"scope": "agents:run",
|
|
6245
|
+
"servedBy": "node",
|
|
6246
|
+
"idempotent": false
|
|
6247
|
+
},
|
|
6248
|
+
"agentsCreateAgent": {
|
|
6249
|
+
"method": "POST",
|
|
6250
|
+
"path": "/v1/agents",
|
|
6251
|
+
"pathParams": [],
|
|
6252
|
+
"scope": "agents:write",
|
|
6253
|
+
"servedBy": "node",
|
|
6254
|
+
"idempotent": true
|
|
6255
|
+
},
|
|
6256
|
+
"agentsDeleteAgent": {
|
|
6257
|
+
"method": "DELETE",
|
|
6258
|
+
"path": "/v1/agents/{agent}",
|
|
6259
|
+
"pathParams": ["agent"],
|
|
6260
|
+
"scope": "agents:write",
|
|
6261
|
+
"servedBy": "node",
|
|
6262
|
+
"idempotent": false
|
|
6263
|
+
},
|
|
6264
|
+
"agentsDeleteInstance": {
|
|
6265
|
+
"method": "DELETE",
|
|
6266
|
+
"path": "/v1/agents/{agent}/instances/{key}",
|
|
6267
|
+
"pathParams": ["agent", "key"],
|
|
6268
|
+
"scope": "agents:write",
|
|
6269
|
+
"servedBy": "node",
|
|
6270
|
+
"idempotent": false
|
|
6271
|
+
},
|
|
6272
|
+
"agentsGetAgent": {
|
|
6273
|
+
"method": "GET",
|
|
6274
|
+
"path": "/v1/agents/{agent}",
|
|
6275
|
+
"pathParams": ["agent"],
|
|
6276
|
+
"scope": "agents:read",
|
|
6277
|
+
"servedBy": "node",
|
|
6278
|
+
"idempotent": false
|
|
6279
|
+
},
|
|
6280
|
+
"agentsGetInstance": {
|
|
6281
|
+
"method": "GET",
|
|
6282
|
+
"path": "/v1/agents/{agent}/instances/{key}",
|
|
6283
|
+
"pathParams": ["agent", "key"],
|
|
6284
|
+
"scope": "agents:read",
|
|
6285
|
+
"servedBy": "node",
|
|
6286
|
+
"idempotent": false
|
|
6287
|
+
},
|
|
6288
|
+
"agentsGetSession": {
|
|
6289
|
+
"method": "GET",
|
|
6290
|
+
"path": "/v1/agents/sessions/{session_id}",
|
|
6291
|
+
"pathParams": ["session_id"],
|
|
6292
|
+
"scope": "agents:read",
|
|
6293
|
+
"servedBy": "node",
|
|
6294
|
+
"idempotent": false
|
|
6295
|
+
},
|
|
6296
|
+
"agentsListAgents": {
|
|
6297
|
+
"method": "GET",
|
|
6298
|
+
"path": "/v1/agents",
|
|
6299
|
+
"pathParams": [],
|
|
6300
|
+
"scope": "agents:read",
|
|
6301
|
+
"servedBy": "node",
|
|
6302
|
+
"idempotent": false
|
|
6303
|
+
},
|
|
6304
|
+
"agentsListInstanceEvents": {
|
|
6305
|
+
"method": "GET",
|
|
6306
|
+
"path": "/v1/agents/{agent}/instances/{key}/events",
|
|
6307
|
+
"pathParams": ["agent", "key"],
|
|
6308
|
+
"scope": "agents:read",
|
|
6309
|
+
"servedBy": "node",
|
|
6310
|
+
"idempotent": false
|
|
6311
|
+
},
|
|
6312
|
+
"agentsListInstances": {
|
|
6313
|
+
"method": "GET",
|
|
6314
|
+
"path": "/v1/agents/{agent}/instances",
|
|
6315
|
+
"pathParams": ["agent"],
|
|
6316
|
+
"scope": "agents:read",
|
|
6317
|
+
"servedBy": "node",
|
|
6318
|
+
"idempotent": false
|
|
6319
|
+
},
|
|
6320
|
+
"agentsListSessions": {
|
|
6321
|
+
"method": "GET",
|
|
6322
|
+
"path": "/v1/agents/{agent}/sessions",
|
|
6323
|
+
"pathParams": ["agent"],
|
|
6324
|
+
"scope": "agents:read",
|
|
6325
|
+
"servedBy": "node",
|
|
6326
|
+
"idempotent": false
|
|
6327
|
+
},
|
|
6328
|
+
"agentsSendMessage": {
|
|
6329
|
+
"method": "POST",
|
|
6330
|
+
"path": "/v1/agents/{agent}/instances/{key}/messages",
|
|
6331
|
+
"pathParams": ["agent", "key"],
|
|
6332
|
+
"scope": "agents:run",
|
|
6333
|
+
"servedBy": "node",
|
|
6334
|
+
"idempotent": true
|
|
6335
|
+
},
|
|
6336
|
+
"agentsSleepInstance": {
|
|
6337
|
+
"method": "POST",
|
|
6338
|
+
"path": "/v1/agents/{agent}/instances/{key}/sleep",
|
|
6339
|
+
"pathParams": ["agent", "key"],
|
|
6340
|
+
"scope": "agents:run",
|
|
6341
|
+
"servedBy": "node",
|
|
6342
|
+
"idempotent": false
|
|
6343
|
+
},
|
|
6344
|
+
"agentsUpdateAgent": {
|
|
6345
|
+
"method": "PATCH",
|
|
6346
|
+
"path": "/v1/agents/{agent}",
|
|
6347
|
+
"pathParams": ["agent"],
|
|
6348
|
+
"scope": "agents:write",
|
|
6349
|
+
"servedBy": "node",
|
|
6350
|
+
"idempotent": false
|
|
6351
|
+
},
|
|
3290
6352
|
"inferCreateChatCompletion": {
|
|
3291
6353
|
"method": "POST",
|
|
3292
6354
|
"path": "/v1/infer/chat/completions",
|
|
@@ -3311,6 +6373,78 @@
|
|
|
3311
6373
|
"servedBy": "node",
|
|
3312
6374
|
"idempotent": false
|
|
3313
6375
|
},
|
|
6376
|
+
"listenersCreateListener": {
|
|
6377
|
+
"method": "POST",
|
|
6378
|
+
"path": "/v1/listeners",
|
|
6379
|
+
"pathParams": [],
|
|
6380
|
+
"scope": "listeners:write",
|
|
6381
|
+
"servedBy": "node",
|
|
6382
|
+
"idempotent": true
|
|
6383
|
+
},
|
|
6384
|
+
"listenersDeleteListener": {
|
|
6385
|
+
"method": "DELETE",
|
|
6386
|
+
"path": "/v1/listeners/{listener_id}",
|
|
6387
|
+
"pathParams": ["listener_id"],
|
|
6388
|
+
"scope": "listeners:write",
|
|
6389
|
+
"servedBy": "node",
|
|
6390
|
+
"idempotent": false
|
|
6391
|
+
},
|
|
6392
|
+
"listenersGetListener": {
|
|
6393
|
+
"method": "GET",
|
|
6394
|
+
"path": "/v1/listeners/{listener_id}",
|
|
6395
|
+
"pathParams": ["listener_id"],
|
|
6396
|
+
"scope": "listeners:read",
|
|
6397
|
+
"servedBy": "node",
|
|
6398
|
+
"idempotent": false
|
|
6399
|
+
},
|
|
6400
|
+
"listenersIngestEvents": {
|
|
6401
|
+
"method": "POST",
|
|
6402
|
+
"path": "/v1/listeners/{listener_id}/events",
|
|
6403
|
+
"pathParams": ["listener_id"],
|
|
6404
|
+
"scope": "listeners:write",
|
|
6405
|
+
"servedBy": "node",
|
|
6406
|
+
"idempotent": false
|
|
6407
|
+
},
|
|
6408
|
+
"listenersListEvents": {
|
|
6409
|
+
"method": "GET",
|
|
6410
|
+
"path": "/v1/listeners/{listener_id}/events",
|
|
6411
|
+
"pathParams": ["listener_id"],
|
|
6412
|
+
"scope": "listeners:read",
|
|
6413
|
+
"servedBy": "node",
|
|
6414
|
+
"idempotent": false
|
|
6415
|
+
},
|
|
6416
|
+
"listenersListListeners": {
|
|
6417
|
+
"method": "GET",
|
|
6418
|
+
"path": "/v1/listeners",
|
|
6419
|
+
"pathParams": [],
|
|
6420
|
+
"scope": "listeners:read",
|
|
6421
|
+
"servedBy": "node",
|
|
6422
|
+
"idempotent": false
|
|
6423
|
+
},
|
|
6424
|
+
"listenersTestListener": {
|
|
6425
|
+
"method": "POST",
|
|
6426
|
+
"path": "/v1/listeners/{listener_id}/test",
|
|
6427
|
+
"pathParams": ["listener_id"],
|
|
6428
|
+
"scope": "listeners:write",
|
|
6429
|
+
"servedBy": "node",
|
|
6430
|
+
"idempotent": false
|
|
6431
|
+
},
|
|
6432
|
+
"listenersUpdateListener": {
|
|
6433
|
+
"method": "PATCH",
|
|
6434
|
+
"path": "/v1/listeners/{listener_id}",
|
|
6435
|
+
"pathParams": ["listener_id"],
|
|
6436
|
+
"scope": "listeners:write",
|
|
6437
|
+
"servedBy": "node",
|
|
6438
|
+
"idempotent": false
|
|
6439
|
+
},
|
|
6440
|
+
"platformCreatePortHost": {
|
|
6441
|
+
"method": "POST",
|
|
6442
|
+
"path": "/v1/sandboxes/{sandbox_id}/ports/{port}/host",
|
|
6443
|
+
"pathParams": ["sandbox_id", "port"],
|
|
6444
|
+
"scope": "sandboxes:run",
|
|
6445
|
+
"servedBy": "edge",
|
|
6446
|
+
"idempotent": false
|
|
6447
|
+
},
|
|
3314
6448
|
"platformGetLimits": {
|
|
3315
6449
|
"method": "GET",
|
|
3316
6450
|
"path": "/v1/limits",
|
|
@@ -3319,6 +6453,22 @@
|
|
|
3319
6453
|
"servedBy": "edge",
|
|
3320
6454
|
"idempotent": false
|
|
3321
6455
|
},
|
|
6456
|
+
"platformGetLlmCall": {
|
|
6457
|
+
"method": "GET",
|
|
6458
|
+
"path": "/v1/llm-calls/{request_id}",
|
|
6459
|
+
"pathParams": ["request_id"],
|
|
6460
|
+
"scope": "platform:read",
|
|
6461
|
+
"servedBy": "node",
|
|
6462
|
+
"idempotent": false
|
|
6463
|
+
},
|
|
6464
|
+
"platformGetLlmCallContent": {
|
|
6465
|
+
"method": "GET",
|
|
6466
|
+
"path": "/v1/llm-calls/{request_id}/content",
|
|
6467
|
+
"pathParams": ["request_id"],
|
|
6468
|
+
"scope": "platform:content:read",
|
|
6469
|
+
"servedBy": "node",
|
|
6470
|
+
"idempotent": false
|
|
6471
|
+
},
|
|
3322
6472
|
"platformGetRequest": {
|
|
3323
6473
|
"method": "GET",
|
|
3324
6474
|
"path": "/v1/requests/{request_id}",
|
|
@@ -3327,6 +6477,14 @@
|
|
|
3327
6477
|
"servedBy": "node",
|
|
3328
6478
|
"idempotent": false
|
|
3329
6479
|
},
|
|
6480
|
+
"platformGetTrace": {
|
|
6481
|
+
"method": "GET",
|
|
6482
|
+
"path": "/v1/traces/{trace_id}",
|
|
6483
|
+
"pathParams": ["trace_id"],
|
|
6484
|
+
"scope": "platform:read",
|
|
6485
|
+
"servedBy": "edge",
|
|
6486
|
+
"idempotent": false
|
|
6487
|
+
},
|
|
3330
6488
|
"platformGetUsage": {
|
|
3331
6489
|
"method": "GET",
|
|
3332
6490
|
"path": "/v1/usage",
|
|
@@ -3335,6 +6493,14 @@
|
|
|
3335
6493
|
"servedBy": "edge",
|
|
3336
6494
|
"idempotent": false
|
|
3337
6495
|
},
|
|
6496
|
+
"platformListLlmCalls": {
|
|
6497
|
+
"method": "GET",
|
|
6498
|
+
"path": "/v1/llm-calls",
|
|
6499
|
+
"pathParams": [],
|
|
6500
|
+
"scope": "platform:read",
|
|
6501
|
+
"servedBy": "node",
|
|
6502
|
+
"idempotent": false
|
|
6503
|
+
},
|
|
3338
6504
|
"platformListRequests": {
|
|
3339
6505
|
"method": "GET",
|
|
3340
6506
|
"path": "/v1/requests",
|
|
@@ -3343,6 +6509,22 @@
|
|
|
3343
6509
|
"servedBy": "node",
|
|
3344
6510
|
"idempotent": false
|
|
3345
6511
|
},
|
|
6512
|
+
"platformListUsageRecords": {
|
|
6513
|
+
"method": "GET",
|
|
6514
|
+
"path": "/v1/usage/records",
|
|
6515
|
+
"pathParams": [],
|
|
6516
|
+
"scope": "platform:read",
|
|
6517
|
+
"servedBy": "edge",
|
|
6518
|
+
"idempotent": false
|
|
6519
|
+
},
|
|
6520
|
+
"renderCreateInspection": {
|
|
6521
|
+
"method": "POST",
|
|
6522
|
+
"path": "/v1/render/inspections",
|
|
6523
|
+
"pathParams": [],
|
|
6524
|
+
"scope": "render:run",
|
|
6525
|
+
"servedBy": "node",
|
|
6526
|
+
"idempotent": true
|
|
6527
|
+
},
|
|
3346
6528
|
"renderCreateScreenshot": {
|
|
3347
6529
|
"method": "POST",
|
|
3348
6530
|
"path": "/v1/render/screenshots",
|
|
@@ -3363,7 +6545,55 @@
|
|
|
3363
6545
|
"method": "GET",
|
|
3364
6546
|
"path": "/v1/render/videos/{video_id}",
|
|
3365
6547
|
"pathParams": ["video_id"],
|
|
3366
|
-
"scope": "
|
|
6548
|
+
"scope": "authenticated",
|
|
6549
|
+
"servedBy": "node",
|
|
6550
|
+
"idempotent": false
|
|
6551
|
+
},
|
|
6552
|
+
"renderListPresets": {
|
|
6553
|
+
"method": "GET",
|
|
6554
|
+
"path": "/v1/render/presets",
|
|
6555
|
+
"pathParams": [],
|
|
6556
|
+
"scope": "public",
|
|
6557
|
+
"servedBy": "node",
|
|
6558
|
+
"idempotent": false
|
|
6559
|
+
},
|
|
6560
|
+
"renderRestyleVideo": {
|
|
6561
|
+
"method": "POST",
|
|
6562
|
+
"path": "/v1/render/videos/{video_id}/restyle",
|
|
6563
|
+
"pathParams": ["video_id"],
|
|
6564
|
+
"scope": "render:run",
|
|
6565
|
+
"servedBy": "node",
|
|
6566
|
+
"idempotent": true
|
|
6567
|
+
},
|
|
6568
|
+
"renderShareAlias": {
|
|
6569
|
+
"method": "POST",
|
|
6570
|
+
"path": "/v1/render/aliases/{alias}/share",
|
|
6571
|
+
"pathParams": ["alias"],
|
|
6572
|
+
"scope": "render:write",
|
|
6573
|
+
"servedBy": "node",
|
|
6574
|
+
"idempotent": false
|
|
6575
|
+
},
|
|
6576
|
+
"renderShareVideo": {
|
|
6577
|
+
"method": "POST",
|
|
6578
|
+
"path": "/v1/render/videos/{video_id}/share",
|
|
6579
|
+
"pathParams": ["video_id"],
|
|
6580
|
+
"scope": "render:write",
|
|
6581
|
+
"servedBy": "node",
|
|
6582
|
+
"idempotent": false
|
|
6583
|
+
},
|
|
6584
|
+
"renderUnshareAlias": {
|
|
6585
|
+
"method": "DELETE",
|
|
6586
|
+
"path": "/v1/render/aliases/{alias}/share",
|
|
6587
|
+
"pathParams": ["alias"],
|
|
6588
|
+
"scope": "render:write",
|
|
6589
|
+
"servedBy": "node",
|
|
6590
|
+
"idempotent": false
|
|
6591
|
+
},
|
|
6592
|
+
"renderUnshareVideo": {
|
|
6593
|
+
"method": "DELETE",
|
|
6594
|
+
"path": "/v1/render/videos/{video_id}/share",
|
|
6595
|
+
"pathParams": ["video_id"],
|
|
6596
|
+
"scope": "render:write",
|
|
3367
6597
|
"servedBy": "node",
|
|
3368
6598
|
"idempotent": false
|
|
3369
6599
|
},
|
|
@@ -3383,6 +6613,22 @@
|
|
|
3383
6613
|
"servedBy": "node",
|
|
3384
6614
|
"idempotent": false
|
|
3385
6615
|
},
|
|
6616
|
+
"routinesListRuns": {
|
|
6617
|
+
"method": "GET",
|
|
6618
|
+
"path": "/v1/routines/{routine}/runs",
|
|
6619
|
+
"pathParams": ["routine"],
|
|
6620
|
+
"scope": "routines:read",
|
|
6621
|
+
"servedBy": "node",
|
|
6622
|
+
"idempotent": false
|
|
6623
|
+
},
|
|
6624
|
+
"routinesRunEvents": {
|
|
6625
|
+
"method": "GET",
|
|
6626
|
+
"path": "/v1/routines/runs/{run_id}/events",
|
|
6627
|
+
"pathParams": ["run_id"],
|
|
6628
|
+
"scope": "routines:read",
|
|
6629
|
+
"servedBy": "node",
|
|
6630
|
+
"idempotent": false
|
|
6631
|
+
},
|
|
3386
6632
|
"routinesSignalRun": {
|
|
3387
6633
|
"method": "POST",
|
|
3388
6634
|
"path": "/v1/routines/runs/{run_id}/signal",
|
|
@@ -3399,6 +6645,14 @@
|
|
|
3399
6645
|
"servedBy": "node",
|
|
3400
6646
|
"idempotent": false
|
|
3401
6647
|
},
|
|
6648
|
+
"sandboxesCancelSwarm": {
|
|
6649
|
+
"method": "POST",
|
|
6650
|
+
"path": "/v1/sandboxes/swarms/{swarm_id}/cancel",
|
|
6651
|
+
"pathParams": ["swarm_id"],
|
|
6652
|
+
"scope": "sandboxes:write",
|
|
6653
|
+
"servedBy": "node",
|
|
6654
|
+
"idempotent": false
|
|
6655
|
+
},
|
|
3402
6656
|
"sandboxesCreatePortUrl": {
|
|
3403
6657
|
"method": "POST",
|
|
3404
6658
|
"path": "/v1/sandboxes/{sandbox_id}/ports/{port}/url",
|
|
@@ -3423,6 +6677,14 @@
|
|
|
3423
6677
|
"servedBy": "node",
|
|
3424
6678
|
"idempotent": true
|
|
3425
6679
|
},
|
|
6680
|
+
"sandboxesCreateSwarm": {
|
|
6681
|
+
"method": "POST",
|
|
6682
|
+
"path": "/v1/sandboxes/swarms",
|
|
6683
|
+
"pathParams": [],
|
|
6684
|
+
"scope": "sandboxes:write",
|
|
6685
|
+
"servedBy": "node",
|
|
6686
|
+
"idempotent": true
|
|
6687
|
+
},
|
|
3426
6688
|
"sandboxesDeleteSandbox": {
|
|
3427
6689
|
"method": "DELETE",
|
|
3428
6690
|
"path": "/v1/sandboxes/{sandbox_id}",
|
|
@@ -3471,6 +6733,14 @@
|
|
|
3471
6733
|
"servedBy": "node",
|
|
3472
6734
|
"idempotent": false
|
|
3473
6735
|
},
|
|
6736
|
+
"sandboxesGetSwarm": {
|
|
6737
|
+
"method": "GET",
|
|
6738
|
+
"path": "/v1/sandboxes/swarms/{swarm_id}",
|
|
6739
|
+
"pathParams": ["swarm_id"],
|
|
6740
|
+
"scope": "sandboxes:read",
|
|
6741
|
+
"servedBy": "node",
|
|
6742
|
+
"idempotent": false
|
|
6743
|
+
},
|
|
3474
6744
|
"sandboxesGetTemplate": {
|
|
3475
6745
|
"method": "GET",
|
|
3476
6746
|
"path": "/v1/sandboxes/templates/{template}",
|