@b3os/cli 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/README.md +87 -8
  2. package/assets/b3os-run.py +137 -0
  3. package/assets/skill/b3os/SKILL.md +111 -0
  4. package/dist/commands/_agents.d.ts +14 -0
  5. package/dist/commands/_agents.js +33 -0
  6. package/dist/commands/_agents.js.map +1 -0
  7. package/dist/commands/_common.js +6 -2
  8. package/dist/commands/_common.js.map +1 -1
  9. package/dist/commands/_context.d.ts +49 -0
  10. package/dist/commands/_context.js +260 -0
  11. package/dist/commands/_context.js.map +1 -0
  12. package/dist/commands/_next.d.ts +39 -0
  13. package/dist/commands/_next.js +77 -0
  14. package/dist/commands/_next.js.map +1 -0
  15. package/dist/commands/agent.d.ts +42 -0
  16. package/dist/commands/agent.js +218 -0
  17. package/dist/commands/agent.js.map +1 -0
  18. package/dist/commands/app.d.ts +2 -5
  19. package/dist/commands/app.js +229 -69
  20. package/dist/commands/app.js.map +1 -1
  21. package/dist/commands/auth.d.ts +70 -2
  22. package/dist/commands/auth.js +308 -33
  23. package/dist/commands/auth.js.map +1 -1
  24. package/dist/commands/docs.d.ts +54 -0
  25. package/dist/commands/docs.js +202 -0
  26. package/dist/commands/docs.js.map +1 -0
  27. package/dist/commands/doctor.d.ts +23 -0
  28. package/dist/commands/doctor.js +313 -0
  29. package/dist/commands/doctor.js.map +1 -0
  30. package/dist/commands/init.d.ts +38 -1
  31. package/dist/commands/init.js +259 -60
  32. package/dist/commands/init.js.map +1 -1
  33. package/dist/commands/listen.d.ts +30 -0
  34. package/dist/commands/listen.js +194 -0
  35. package/dist/commands/listen.js.map +1 -0
  36. package/dist/commands/manifest.d.ts +13 -1
  37. package/dist/commands/manifest.js +59 -7
  38. package/dist/commands/manifest.js.map +1 -1
  39. package/dist/commands/mcp.d.ts +25 -2
  40. package/dist/commands/mcp.js +120 -11
  41. package/dist/commands/mcp.js.map +1 -1
  42. package/dist/commands/sandbox.d.ts +35 -6
  43. package/dist/commands/sandbox.js +208 -9
  44. package/dist/commands/sandbox.js.map +1 -1
  45. package/dist/commands/setup.d.ts +39 -0
  46. package/dist/commands/setup.js +203 -0
  47. package/dist/commands/setup.js.map +1 -0
  48. package/dist/commands/tool.d.ts +109 -1
  49. package/dist/commands/tool.js +635 -47
  50. package/dist/commands/tool.js.map +1 -1
  51. package/dist/config.d.ts +30 -6
  52. package/dist/config.js +39 -8
  53. package/dist/config.js.map +1 -1
  54. package/dist/ctx.d.ts +5 -45
  55. package/dist/ctx.js +25 -160
  56. package/dist/ctx.js.map +1 -1
  57. package/dist/docs/index.json +1 -0
  58. package/dist/docs/pages/actions/call.md +300 -0
  59. package/dist/docs/pages/actions/catalog/airtable.md +737 -0
  60. package/dist/docs/pages/actions/catalog/arxiv.md +166 -0
  61. package/dist/docs/pages/actions/catalog/chainalysis-sanctions.md +125 -0
  62. package/dist/docs/pages/actions/catalog/coingecko.md +1558 -0
  63. package/dist/docs/pages/actions/catalog/deps-dev.md +465 -0
  64. package/dist/docs/pages/actions/catalog/dexscreener.md +568 -0
  65. package/dist/docs/pages/actions/catalog/discord.md +784 -0
  66. package/dist/docs/pages/actions/catalog/finnhub.md +776 -0
  67. package/dist/docs/pages/actions/catalog/frankfurter.md +438 -0
  68. package/dist/docs/pages/actions/catalog/github.md +1853 -0
  69. package/dist/docs/pages/actions/catalog/gmail.md +575 -0
  70. package/dist/docs/pages/actions/catalog/google-calendar.md +654 -0
  71. package/dist/docs/pages/actions/catalog/google-drive.md +502 -0
  72. package/dist/docs/pages/actions/catalog/google-sheets.md +700 -0
  73. package/dist/docs/pages/actions/catalog/hacker-news.md +542 -0
  74. package/dist/docs/pages/actions/catalog/http.md +824 -0
  75. package/dist/docs/pages/actions/catalog/hyperliquid.md +942 -0
  76. package/dist/docs/pages/actions/catalog/jira.md +920 -0
  77. package/dist/docs/pages/actions/catalog/kalshi.md +917 -0
  78. package/dist/docs/pages/actions/catalog/linear.md +1030 -0
  79. package/dist/docs/pages/actions/catalog/markets.md +21 -0
  80. package/dist/docs/pages/actions/catalog/morpho.md +247 -0
  81. package/dist/docs/pages/actions/catalog/notion.md +1077 -0
  82. package/dist/docs/pages/actions/catalog/nws.md +485 -0
  83. package/dist/docs/pages/actions/catalog/open-meteo.md +559 -0
  84. package/dist/docs/pages/actions/catalog/polymarket.md +1523 -0
  85. package/dist/docs/pages/actions/catalog/pushbullet.md +220 -0
  86. package/dist/docs/pages/actions/catalog/resend.md +307 -0
  87. package/dist/docs/pages/actions/catalog/s3.md +513 -0
  88. package/dist/docs/pages/actions/catalog/sec-edgar.md +487 -0
  89. package/dist/docs/pages/actions/catalog/slack.md +2629 -0
  90. package/dist/docs/pages/actions/catalog/stripe.md +1405 -0
  91. package/dist/docs/pages/actions/catalog/wikipedia.md +379 -0
  92. package/dist/docs/pages/actions/catalog.md +46 -0
  93. package/dist/docs/pages/actions/limits.md +50 -0
  94. package/dist/docs/pages/actions/model-tools.md +225 -0
  95. package/dist/docs/pages/actions/packs.md +148 -0
  96. package/dist/docs/pages/actions/settings.md +69 -0
  97. package/dist/docs/pages/actions/tools.md +244 -0
  98. package/dist/docs/pages/actions/triggers.md +149 -0
  99. package/dist/docs/pages/actions.md +88 -0
  100. package/dist/docs/pages/compat/anthropic.md +168 -0
  101. package/dist/docs/pages/compat/e2b.md +194 -0
  102. package/dist/docs/pages/compat/firecrawl.md +138 -0
  103. package/dist/docs/pages/compat/openai.md +168 -0
  104. package/dist/docs/pages/concepts/auth.md +151 -0
  105. package/dist/docs/pages/concepts/beta.md +55 -0
  106. package/dist/docs/pages/concepts/glossary.md +71 -0
  107. package/dist/docs/pages/concepts/ids.md +98 -0
  108. package/dist/docs/pages/concepts/jobs.md +229 -0
  109. package/dist/docs/pages/concepts/latency.md +138 -0
  110. package/dist/docs/pages/concepts/limits.md +191 -0
  111. package/dist/docs/pages/concepts/stack.md +59 -0
  112. package/dist/docs/pages/concepts/timing.md +86 -0
  113. package/dist/docs/pages/concepts/usage.md +110 -0
  114. package/dist/docs/pages/design/b3os-yaml.md +370 -0
  115. package/dist/docs/pages/design/deploy-from-github.md +122 -0
  116. package/dist/docs/pages/design/observability.md +134 -0
  117. package/dist/docs/pages/errors.md +1824 -0
  118. package/dist/docs/pages/infer/chat.md +570 -0
  119. package/dist/docs/pages/infer/limits.md +55 -0
  120. package/dist/docs/pages/infer/messages.md +185 -0
  121. package/dist/docs/pages/infer/responses.md +173 -0
  122. package/dist/docs/pages/infer/settings.md +154 -0
  123. package/dist/docs/pages/infer/speech.md +323 -0
  124. package/dist/docs/pages/infer.md +154 -0
  125. package/dist/docs/pages/introduction.md +162 -0
  126. package/dist/docs/pages/platform/addresses.md +174 -0
  127. package/dist/docs/pages/platform/call-log.md +99 -0
  128. package/dist/docs/pages/platform/custom-domains.md +104 -0
  129. package/dist/docs/pages/platform/keys.md +79 -0
  130. package/dist/docs/pages/platform/limits.md +57 -0
  131. package/dist/docs/pages/platform/members.md +101 -0
  132. package/dist/docs/pages/platform/requests.md +116 -0
  133. package/dist/docs/pages/platform/settings.md +129 -0
  134. package/dist/docs/pages/platform/webhooks.md +68 -0
  135. package/dist/docs/pages/platform.md +67 -0
  136. package/dist/docs/pages/quickstart/mcp.md +94 -0
  137. package/dist/docs/pages/quickstart/sandbox-agent.md +205 -0
  138. package/dist/docs/pages/quickstart/scrape.md +134 -0
  139. package/dist/docs/pages/quickstart.md +45 -0
  140. package/dist/docs/pages/render/inspections.md +162 -0
  141. package/dist/docs/pages/render/limits.md +72 -0
  142. package/dist/docs/pages/render/screenshots.md +179 -0
  143. package/dist/docs/pages/render/settings.md +431 -0
  144. package/dist/docs/pages/render/styles.md +342 -0
  145. package/dist/docs/pages/render/videos.md +272 -0
  146. package/dist/docs/pages/render.md +118 -0
  147. package/dist/docs/pages/routines/callables.md +174 -0
  148. package/dist/docs/pages/routines/definitions.md +361 -0
  149. package/dist/docs/pages/routines/limits.md +117 -0
  150. package/dist/docs/pages/routines/runs.md +328 -0
  151. package/dist/docs/pages/routines/settings.md +104 -0
  152. package/dist/docs/pages/routines/triggers.md +339 -0
  153. package/dist/docs/pages/routines.md +216 -0
  154. package/dist/docs/pages/sandboxes/agents.md +217 -0
  155. package/dist/docs/pages/sandboxes/commands.md +272 -0
  156. package/dist/docs/pages/sandboxes/images.md +166 -0
  157. package/dist/docs/pages/sandboxes/limits.md +143 -0
  158. package/dist/docs/pages/sandboxes/ports.md +260 -0
  159. package/dist/docs/pages/sandboxes/settings.md +358 -0
  160. package/dist/docs/pages/sandboxes/snapshots.md +423 -0
  161. package/dist/docs/pages/sandboxes/swarms.md +146 -0
  162. package/dist/docs/pages/sandboxes/volumes.md +131 -0
  163. package/dist/docs/pages/sandboxes.md +231 -0
  164. package/dist/docs/pages/sdks/cli.md +121 -0
  165. package/dist/docs/pages/sdks/mcp.md +169 -0
  166. package/dist/docs/pages/sdks/python.md +146 -0
  167. package/dist/docs/pages/sdks/typescript.md +202 -0
  168. package/dist/docs/pages/sdks.md +282 -0
  169. package/dist/docs/pages/settings.md +33 -0
  170. package/dist/docs/pages/vault/limits.md +46 -0
  171. package/dist/docs/pages/vault.md +133 -0
  172. package/dist/docs/pages/vision/agent-browser.md +115 -0
  173. package/dist/docs/pages/vision/crawl.md +333 -0
  174. package/dist/docs/pages/vision/extract.md +152 -0
  175. package/dist/docs/pages/vision/fetcher.md +15 -0
  176. package/dist/docs/pages/vision/limits.md +79 -0
  177. package/dist/docs/pages/vision/profiles.md +111 -0
  178. package/dist/docs/pages/vision/proxy.md +131 -0
  179. package/dist/docs/pages/vision/scrape.md +356 -0
  180. package/dist/docs/pages/vision/sessions.md +311 -0
  181. package/dist/docs/pages/vision/settings.md +656 -0
  182. package/dist/docs/pages/vision.md +175 -0
  183. package/dist/errors.d.ts +129 -0
  184. package/dist/errors.js +326 -0
  185. package/dist/errors.js.map +1 -0
  186. package/dist/main.d.ts +1 -1
  187. package/dist/main.js +26 -13
  188. package/dist/main.js.map +1 -1
  189. package/dist/manifest/domains.d.ts +50 -0
  190. package/dist/manifest/domains.js +159 -0
  191. package/dist/manifest/domains.js.map +1 -0
  192. package/dist/manifest/link.d.ts +20 -0
  193. package/dist/manifest/link.js +24 -0
  194. package/dist/manifest/link.js.map +1 -0
  195. package/dist/manifest/record.d.ts +1 -1
  196. package/dist/tool/archive.d.ts +33 -0
  197. package/dist/tool/archive.js +174 -0
  198. package/dist/tool/archive.js.map +1 -0
  199. package/dist/tool/calls.d.ts +46 -0
  200. package/dist/tool/calls.js +274 -0
  201. package/dist/tool/calls.js.map +1 -0
  202. package/dist/tool/checks.d.ts +21 -0
  203. package/dist/tool/checks.js +145 -0
  204. package/dist/tool/checks.js.map +1 -0
  205. package/dist/tool/elf.d.ts +19 -0
  206. package/dist/tool/elf.js +107 -0
  207. package/dist/tool/elf.js.map +1 -0
  208. package/dist/tool/predict.d.ts +8 -0
  209. package/dist/tool/predict.js +38 -0
  210. package/dist/tool/predict.js.map +1 -0
  211. package/dist/tool/ustar.d.ts +5 -0
  212. package/dist/tool/ustar.js +220 -0
  213. package/dist/tool/ustar.js.map +1 -0
  214. package/package.json +6 -5
@@ -0,0 +1,824 @@
1
+ # HTTP
2
+
3
+ > The io.b3os/http pack: 8 actions with call snippets, fixture outputs, connection setup and error codes, generated from version 1.0.0.
4
+
5
+ Source: https://docs.beta.b3os.org/actions/catalog/http.md
6
+
7
+ <a id="http"></a>
8
+
9
+ `io.b3os/http` 1.0.0 · `http`, `developer-tools`, `webhooks` · MIT
10
+
11
+ Plain HTTP requests to public URLs: GET and HEAD, and POST, PUT, PATCH or DELETE with a JSON, form or text body. For public APIs without a pack and for URLs that carry their own authorization, such as webhook URLs and presigned links. No credentials are ever attached; private and loopback addresses are refused. Prefer a provider pack when one exists: it has typed inputs and outputs.
12
+
13
+ Every call's result carries `upstream_status` and `timing`: `validate_ms`, `inject_ms`, `render_ms`, `upstream_ms`, `map_ms` and `total_ms`. `upstream` is the service's time; the others are B3OS's own ([call actions](https://docs.beta.b3os.org/actions/call)). The snippets below show no timing values, because a fixture records none.
14
+
15
+ ## Connection
16
+
17
+ No credential: a keyless public API. Calls name no connection.
18
+
19
+ Hosts it reaches: `*`.
20
+
21
+ ## Actions
22
+
23
+ | Action | Effect | MCP tool | Title |
24
+ |---|---|---|---|
25
+ | [`get`](https://docs.beta.b3os.org/actions/catalog/http#http-get) | read | `http__get` | GET a URL |
26
+ | [`head`](https://docs.beta.b3os.org/actions/catalog/http#http-head) | read | `http__head` | HEAD a URL |
27
+ | [`post-json`](https://docs.beta.b3os.org/actions/catalog/http#http-post-json) | irreversible | `http__post-json` | POST JSON |
28
+ | [`post-form`](https://docs.beta.b3os.org/actions/catalog/http#http-post-form) | irreversible | `http__post-form` | POST form |
29
+ | [`post-text`](https://docs.beta.b3os.org/actions/catalog/http#http-post-text) | irreversible | `http__post-text` | POST text |
30
+ | [`put-json`](https://docs.beta.b3os.org/actions/catalog/http#http-put-json) | irreversible | `http__put-json` | PUT JSON |
31
+ | [`patch-json`](https://docs.beta.b3os.org/actions/catalog/http#http-patch-json) | irreversible | `http__patch-json` | PATCH JSON |
32
+ | [`delete`](https://docs.beta.b3os.org/actions/catalog/http#http-delete) | irreversible | `http__delete` | DELETE a URL |
33
+
34
+ <h3 id="http-get"><code>get</code></h3>
35
+
36
+ **GET a URL.** Fetch a URL with GET and return the status, content type, Location and ETag headers, and the body (parsed JSON when the response is JSON, otherwise text). Non-2xx statuses fail with an error code unless fail_on_error_status is false.
37
+
38
+ Ref `io.b3os/http/get@1.0.0` · effect `read` · no connection · MCP tool `http__get`
39
+
40
+ **curl**
41
+
42
+ ```bash
43
+ curl -s https://beta-api.b3os.org/v1/actions/call \
44
+ -H "Authorization: Bearer $B3OS_API_KEY" \
45
+ -H "Content-Type: application/json" \
46
+ -d '{
47
+ "ref": "io.b3os/http/get@1",
48
+ "input": {"url": "https://httpbin.org/json"}
49
+ }'
50
+ ```
51
+ **TypeScript**
52
+
53
+ ```ts
54
+ import { B3OS } from "@b3os/sdk";
55
+
56
+ const b3os = new B3OS();
57
+ const result = await b3os.actions.call({
58
+ ref: "io.b3os/http/get@1",
59
+ input: { url: "https://httpbin.org/json" },
60
+ });
61
+ console.log(result.output);
62
+ ```
63
+ **Python**
64
+
65
+ ```python
66
+ from b3os import B3OS
67
+
68
+ b3os = B3OS()
69
+ result = b3os.actions.call({
70
+ "ref": "io.b3os/http/get@1",
71
+ "input": {"url": "https://httpbin.org/json"},
72
+ })
73
+ print(result["output"])
74
+ ```
75
+ **MCP**
76
+
77
+ ```json
78
+ {
79
+ "method": "tools/call",
80
+ "params": {
81
+ "name": "http__get",
82
+ "arguments": {"url": "https://httpbin.org/json"}
83
+ }
84
+ }
85
+ ```
86
+
87
+ Expose the pack as tools with `--packs http` on the local server or `?packs=http` on the remote URL, and the agent calls `http__get` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
88
+
89
+ Output, labeled `fixture`: GET a URL (response recorded 2026-10-26). From the bundle's `fixtures/get-json.json`, not a live call.
90
+
91
+ ```json
92
+ {
93
+ "status": 200,
94
+ "content_type": "application/json",
95
+ "location": null,
96
+ "etag": null,
97
+ "body": {
98
+ "slideshow": {
99
+ "author": "Yours Truly",
100
+ "date": "date of publication",
101
+ "slides": [
102
+ {"title": "Wake up to WonderWidgets!", "type": "all"},
103
+ {
104
+ "items": [
105
+ "Why <em>WonderWidgets</em> are great",
106
+ "Who <em>buys</em> WonderWidgets"
107
+ ],
108
+ "title": "Overview",
109
+ "type": "all"
110
+ }
111
+ ],
112
+ "title": "Sample Slide Show"
113
+ }
114
+ }
115
+ }
116
+ ```
117
+
118
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
119
+
120
+ | `pack_error.code` | Service status | Retryable | Message |
121
+ |---|---|---|---|
122
+ | `not_found` | 404, 410 | no | built from the service's response |
123
+ | `forbidden` | 401, 403 | no | built from the service's response |
124
+ | `rate_limited` | 429 | yes | rate limited (429); retry later |
125
+ | `invalid_request` | matched on the response body | no | built from the service's response |
126
+
127
+ <h3 id="http-head"><code>head</code></h3>
128
+
129
+ **HEAD a URL.** Check a URL without downloading it: status, content type, content length, ETag, Last-Modified and Location (for redirects).
130
+
131
+ Ref `io.b3os/http/head@1.0.0` · effect `read` · no connection · MCP tool `http__head`
132
+
133
+ **curl**
134
+
135
+ ```bash
136
+ curl -s https://beta-api.b3os.org/v1/actions/call \
137
+ -H "Authorization: Bearer $B3OS_API_KEY" \
138
+ -H "Content-Type: application/json" \
139
+ -d '{
140
+ "ref": "io.b3os/http/head@1",
141
+ "input": {"url": "https://httpbin.org/robots.txt"}
142
+ }'
143
+ ```
144
+ **TypeScript**
145
+
146
+ ```ts
147
+ import { B3OS } from "@b3os/sdk";
148
+
149
+ const b3os = new B3OS();
150
+ const result = await b3os.actions.call({
151
+ ref: "io.b3os/http/head@1",
152
+ input: { url: "https://httpbin.org/robots.txt" },
153
+ });
154
+ console.log(result.output);
155
+ ```
156
+ **Python**
157
+
158
+ ```python
159
+ from b3os import B3OS
160
+
161
+ b3os = B3OS()
162
+ result = b3os.actions.call({
163
+ "ref": "io.b3os/http/head@1",
164
+ "input": {"url": "https://httpbin.org/robots.txt"},
165
+ })
166
+ print(result["output"])
167
+ ```
168
+ **MCP**
169
+
170
+ ```json
171
+ {
172
+ "method": "tools/call",
173
+ "params": {
174
+ "name": "http__head",
175
+ "arguments": {"url": "https://httpbin.org/robots.txt"}
176
+ }
177
+ }
178
+ ```
179
+
180
+ Expose the pack as tools with `--packs http` on the local server or `?packs=http` on the remote URL, and the agent calls `http__head` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
181
+
182
+ Output, labeled `fixture`: HEAD a URL (response recorded 2026-10-26). From the bundle's `fixtures/head.json`, not a live call.
183
+
184
+ ```json
185
+ {
186
+ "status": 200,
187
+ "content_type": "text/plain",
188
+ "content_length": "30",
189
+ "etag": null,
190
+ "last_modified": null,
191
+ "location": null
192
+ }
193
+ ```
194
+
195
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
196
+
197
+ | `pack_error.code` | Service status | Retryable | Message |
198
+ |---|---|---|---|
199
+ | `not_found` | 404, 410 | no | built from the service's response |
200
+ | `forbidden` | 401, 403 | no | built from the service's response |
201
+ | `rate_limited` | 429 | yes | rate limited (429); retry later |
202
+ | `invalid_request` | matched on the response body | no | built from the service's response |
203
+
204
+ <h3 id="http-post-json"><code>post-json</code></h3>
205
+
206
+ **POST JSON.** POST a JSON body to a URL (a webhook, an API endpoint without a pack) and return the status and the response body. Not idempotent: retrying may repeat the effect.
207
+
208
+ Ref `io.b3os/http/post-json@1.0.0` · effect `irreversible` · no connection · MCP tool `http__post-json`
209
+
210
+ **curl**
211
+
212
+ ```bash
213
+ curl -s https://beta-api.b3os.org/v1/actions/call \
214
+ -H "Authorization: Bearer $B3OS_API_KEY" \
215
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
216
+ -H "Content-Type: application/json" \
217
+ -d '{
218
+ "ref": "io.b3os/http/post-json@1",
219
+ "input": {
220
+ "url": "https://httpbin.org/anything/hooks/deploy",
221
+ "body": {"event": "deploy", "version": "2.4.1", "ok": true}
222
+ }
223
+ }'
224
+ ```
225
+ **TypeScript**
226
+
227
+ ```ts
228
+ import { B3OS } from "@b3os/sdk";
229
+
230
+ const b3os = new B3OS();
231
+ const result = await b3os.actions.call({
232
+ ref: "io.b3os/http/post-json@1",
233
+ input: {
234
+ url: "https://httpbin.org/anything/hooks/deploy",
235
+ body: { event: "deploy", version: "2.4.1", ok: true },
236
+ },
237
+ }, { idempotencyKey: crypto.randomUUID() });
238
+ console.log(result.output);
239
+ ```
240
+ **Python**
241
+
242
+ ```python
243
+ import uuid
244
+ from b3os import B3OS
245
+
246
+ b3os = B3OS()
247
+ result = b3os.actions.call({
248
+ "ref": "io.b3os/http/post-json@1",
249
+ "input": {
250
+ "url": "https://httpbin.org/anything/hooks/deploy",
251
+ "body": {"event": "deploy", "version": "2.4.1", "ok": True},
252
+ },
253
+ }, idempotency_key=str(uuid.uuid4()))
254
+ print(result["output"])
255
+ ```
256
+ **MCP**
257
+
258
+ ```json
259
+ {
260
+ "method": "tools/call",
261
+ "params": {
262
+ "name": "http__post-json",
263
+ "arguments": {
264
+ "url": "https://httpbin.org/anything/hooks/deploy",
265
+ "body": {"event": "deploy", "version": "2.4.1", "ok": true}
266
+ }
267
+ }
268
+ }
269
+ ```
270
+
271
+ Expose the pack as tools with `--packs http` on the local server or `?packs=http` on the remote URL, and the agent calls `http__post-json` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
272
+
273
+ Output, labeled `fixture`: POST JSON (response recorded 2026-10-26). From the bundle's `fixtures/post-json.json`, not a live call.
274
+
275
+ ```json
276
+ {
277
+ "status": 200,
278
+ "content_type": "application/json",
279
+ "location": null,
280
+ "etag": null,
281
+ "body": {
282
+ "args": {},
283
+ "data": "{\"event\":\"deploy\",\"version\":\"2.4.1\",\"ok\":true}",
284
+ "files": {},
285
+ "form": {},
286
+ "headers": {
287
+ "Accept": "application/json, text/*;q=0.9, */*;q=0.8",
288
+ "Accept-Encoding": "br, gzip, deflate",
289
+ "Accept-Language": "*",
290
+ "Content-Length": "46",
291
+ "Content-Type": "application/json",
292
+ "Host": "httpbin.org",
293
+ "Sec-Fetch-Mode": "cors",
294
+ "User-Agent": "b3os-actions/1 (+https://beta.b3os.org)"
295
+ },
296
+ "json": {"event": "deploy", "ok": true, "version": "2.4.1"},
297
+ "method": "POST",
298
+ "url": "https://httpbin.org/anything/hooks/deploy"
299
+ }
300
+ }
301
+ ```
302
+
303
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
304
+
305
+ | `pack_error.code` | Service status | Retryable | Message |
306
+ |---|---|---|---|
307
+ | `not_found` | 404, 410 | no | built from the service's response |
308
+ | `forbidden` | 401, 403 | no | built from the service's response |
309
+ | `rate_limited` | 429 | yes | rate limited (429); retry later |
310
+ | `invalid_request` | matched on the response body | no | built from the service's response |
311
+
312
+ <h3 id="http-post-form"><code>post-form</code></h3>
313
+
314
+ **POST form.** POST form fields (application/x-www-form-urlencoded) to a URL and return the status and the response body. Not idempotent.
315
+
316
+ Ref `io.b3os/http/post-form@1.0.0` · effect `irreversible` · no connection · MCP tool `http__post-form`
317
+
318
+ **curl**
319
+
320
+ ```bash
321
+ curl -s https://beta-api.b3os.org/v1/actions/call \
322
+ -H "Authorization: Bearer $B3OS_API_KEY" \
323
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
324
+ -H "Content-Type: application/json" \
325
+ -d '{
326
+ "ref": "io.b3os/http/post-form@1",
327
+ "input": {
328
+ "url": "https://httpbin.org/post",
329
+ "body": {"name": "Ada", "tags": ["a", "b"], "count": 2}
330
+ }
331
+ }'
332
+ ```
333
+ **TypeScript**
334
+
335
+ ```ts
336
+ import { B3OS } from "@b3os/sdk";
337
+
338
+ const b3os = new B3OS();
339
+ const result = await b3os.actions.call({
340
+ ref: "io.b3os/http/post-form@1",
341
+ input: {
342
+ url: "https://httpbin.org/post",
343
+ body: { name: "Ada", tags: ["a", "b"], count: 2 },
344
+ },
345
+ }, { idempotencyKey: crypto.randomUUID() });
346
+ console.log(result.output);
347
+ ```
348
+ **Python**
349
+
350
+ ```python
351
+ import uuid
352
+ from b3os import B3OS
353
+
354
+ b3os = B3OS()
355
+ result = b3os.actions.call({
356
+ "ref": "io.b3os/http/post-form@1",
357
+ "input": {
358
+ "url": "https://httpbin.org/post",
359
+ "body": {"name": "Ada", "tags": ["a", "b"], "count": 2},
360
+ },
361
+ }, idempotency_key=str(uuid.uuid4()))
362
+ print(result["output"])
363
+ ```
364
+ **MCP**
365
+
366
+ ```json
367
+ {
368
+ "method": "tools/call",
369
+ "params": {
370
+ "name": "http__post-form",
371
+ "arguments": {
372
+ "url": "https://httpbin.org/post",
373
+ "body": {"name": "Ada", "tags": ["a", "b"], "count": 2}
374
+ }
375
+ }
376
+ }
377
+ ```
378
+
379
+ Expose the pack as tools with `--packs http` on the local server or `?packs=http` on the remote URL, and the agent calls `http__post-form` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
380
+
381
+ Output, labeled `fixture`: POST form (response recorded 2026-10-26). From the bundle's `fixtures/post-form.json`, not a live call.
382
+
383
+ ```json
384
+ {
385
+ "status": 200,
386
+ "content_type": "application/json",
387
+ "location": null,
388
+ "etag": null,
389
+ "body": {
390
+ "args": {},
391
+ "data": "",
392
+ "files": {},
393
+ "form": {"count": "2", "name": "Ada", "tags": ["a", "b"]},
394
+ "headers": {
395
+ "Accept": "application/json, text/*;q=0.9, */*;q=0.8",
396
+ "Accept-Encoding": "br, gzip, deflate",
397
+ "Accept-Language": "*",
398
+ "Content-Length": "30",
399
+ "Content-Type": "application/x-www-form-urlencoded",
400
+ "Host": "httpbin.org",
401
+ "Sec-Fetch-Mode": "cors",
402
+ "User-Agent": "b3os-actions/1 (+https://beta.b3os.org)"
403
+ },
404
+ "json": null,
405
+ "url": "https://httpbin.org/post"
406
+ }
407
+ }
408
+ ```
409
+
410
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
411
+
412
+ | `pack_error.code` | Service status | Retryable | Message |
413
+ |---|---|---|---|
414
+ | `not_found` | 404, 410 | no | built from the service's response |
415
+ | `forbidden` | 401, 403 | no | built from the service's response |
416
+ | `rate_limited` | 429 | yes | rate limited (429); retry later |
417
+ | `invalid_request` | matched on the response body | no | built from the service's response |
418
+
419
+ <h3 id="http-post-text"><code>post-text</code></h3>
420
+
421
+ **POST text.** POST a text body (plain text, CSV, XML, NDJSON, ...) with the content type you give and return the status and the response body. Not idempotent.
422
+
423
+ Ref `io.b3os/http/post-text@1.0.0` · effect `irreversible` · no connection · MCP tool `http__post-text`
424
+
425
+ **curl**
426
+
427
+ ```bash
428
+ curl -s https://beta-api.b3os.org/v1/actions/call \
429
+ -H "Authorization: Bearer $B3OS_API_KEY" \
430
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
431
+ -H "Content-Type: application/json" \
432
+ -d '{
433
+ "ref": "io.b3os/http/post-text@1",
434
+ "input": {
435
+ "url": "https://httpbin.org/anything/ingest",
436
+ "body": "id,value\n1,42\n",
437
+ "content_type": "text/csv"
438
+ }
439
+ }'
440
+ ```
441
+ **TypeScript**
442
+
443
+ ```ts
444
+ import { B3OS } from "@b3os/sdk";
445
+
446
+ const b3os = new B3OS();
447
+ const result = await b3os.actions.call({
448
+ ref: "io.b3os/http/post-text@1",
449
+ input: {
450
+ url: "https://httpbin.org/anything/ingest",
451
+ body: "id,value\n1,42\n",
452
+ content_type: "text/csv",
453
+ },
454
+ }, { idempotencyKey: crypto.randomUUID() });
455
+ console.log(result.output);
456
+ ```
457
+ **Python**
458
+
459
+ ```python
460
+ import uuid
461
+ from b3os import B3OS
462
+
463
+ b3os = B3OS()
464
+ result = b3os.actions.call({
465
+ "ref": "io.b3os/http/post-text@1",
466
+ "input": {
467
+ "url": "https://httpbin.org/anything/ingest",
468
+ "body": "id,value\n1,42\n",
469
+ "content_type": "text/csv",
470
+ },
471
+ }, idempotency_key=str(uuid.uuid4()))
472
+ print(result["output"])
473
+ ```
474
+ **MCP**
475
+
476
+ ```json
477
+ {
478
+ "method": "tools/call",
479
+ "params": {
480
+ "name": "http__post-text",
481
+ "arguments": {
482
+ "url": "https://httpbin.org/anything/ingest",
483
+ "body": "id,value\n1,42\n",
484
+ "content_type": "text/csv"
485
+ }
486
+ }
487
+ }
488
+ ```
489
+
490
+ Expose the pack as tools with `--packs http` on the local server or `?packs=http` on the remote URL, and the agent calls `http__post-text` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
491
+
492
+ Output, labeled `fixture`: POST text (response recorded 2026-10-26). From the bundle's `fixtures/post-text.json`, not a live call.
493
+
494
+ ```json
495
+ {
496
+ "status": 200,
497
+ "content_type": "application/json",
498
+ "location": null,
499
+ "etag": null,
500
+ "body": {
501
+ "args": {},
502
+ "data": "id,value\n1,42\n",
503
+ "files": {},
504
+ "form": {},
505
+ "headers": {
506
+ "Accept": "application/json, text/*;q=0.9, */*;q=0.8",
507
+ "Accept-Encoding": "br, gzip, deflate",
508
+ "Accept-Language": "*",
509
+ "Content-Length": "14",
510
+ "Content-Type": "text/csv",
511
+ "Host": "httpbin.org",
512
+ "Sec-Fetch-Mode": "cors",
513
+ "User-Agent": "b3os-actions/1 (+https://beta.b3os.org)"
514
+ },
515
+ "json": null,
516
+ "method": "POST",
517
+ "url": "https://httpbin.org/anything/ingest"
518
+ }
519
+ }
520
+ ```
521
+
522
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
523
+
524
+ | `pack_error.code` | Service status | Retryable | Message |
525
+ |---|---|---|---|
526
+ | `not_found` | 404, 410 | no | built from the service's response |
527
+ | `forbidden` | 401, 403 | no | built from the service's response |
528
+ | `rate_limited` | 429 | yes | rate limited (429); retry later |
529
+ | `invalid_request` | matched on the response body | no | built from the service's response |
530
+
531
+ <h3 id="http-put-json"><code>put-json</code></h3>
532
+
533
+ **PUT JSON.** PUT a JSON body to a URL (replace a resource) and return the status and the response body.
534
+
535
+ Ref `io.b3os/http/put-json@1.0.0` · effect `irreversible` · no connection · MCP tool `http__put-json`
536
+
537
+ **curl**
538
+
539
+ ```bash
540
+ curl -s https://beta-api.b3os.org/v1/actions/call \
541
+ -H "Authorization: Bearer $B3OS_API_KEY" \
542
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
543
+ -H "Content-Type: application/json" \
544
+ -d '{
545
+ "ref": "io.b3os/http/put-json@1",
546
+ "input": {
547
+ "url": "https://httpbin.org/put",
548
+ "body": {"name": "widget", "size": 3}
549
+ }
550
+ }'
551
+ ```
552
+ **TypeScript**
553
+
554
+ ```ts
555
+ import { B3OS } from "@b3os/sdk";
556
+
557
+ const b3os = new B3OS();
558
+ const result = await b3os.actions.call({
559
+ ref: "io.b3os/http/put-json@1",
560
+ input: {
561
+ url: "https://httpbin.org/put",
562
+ body: { name: "widget", size: 3 },
563
+ },
564
+ }, { idempotencyKey: crypto.randomUUID() });
565
+ console.log(result.output);
566
+ ```
567
+ **Python**
568
+
569
+ ```python
570
+ import uuid
571
+ from b3os import B3OS
572
+
573
+ b3os = B3OS()
574
+ result = b3os.actions.call({
575
+ "ref": "io.b3os/http/put-json@1",
576
+ "input": {
577
+ "url": "https://httpbin.org/put",
578
+ "body": {"name": "widget", "size": 3},
579
+ },
580
+ }, idempotency_key=str(uuid.uuid4()))
581
+ print(result["output"])
582
+ ```
583
+ **MCP**
584
+
585
+ ```json
586
+ {
587
+ "method": "tools/call",
588
+ "params": {
589
+ "name": "http__put-json",
590
+ "arguments": {
591
+ "url": "https://httpbin.org/put",
592
+ "body": {"name": "widget", "size": 3}
593
+ }
594
+ }
595
+ }
596
+ ```
597
+
598
+ Expose the pack as tools with `--packs http` on the local server or `?packs=http` on the remote URL, and the agent calls `http__put-json` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
599
+
600
+ Output, labeled `fixture`: PUT JSON (response recorded 2026-10-26). From the bundle's `fixtures/put-json.json`, not a live call.
601
+
602
+ ```json
603
+ {
604
+ "status": 200,
605
+ "content_type": "application/json",
606
+ "location": null,
607
+ "etag": null,
608
+ "body": {
609
+ "args": {},
610
+ "data": "{\"name\":\"widget\",\"size\":3}",
611
+ "files": {},
612
+ "form": {},
613
+ "headers": {
614
+ "Accept": "application/json, text/*;q=0.9, */*;q=0.8",
615
+ "Accept-Encoding": "br, gzip, deflate",
616
+ "Accept-Language": "*",
617
+ "Content-Length": "26",
618
+ "Content-Type": "application/json",
619
+ "Host": "httpbin.org",
620
+ "Sec-Fetch-Mode": "cors",
621
+ "User-Agent": "b3os-actions/1 (+https://beta.b3os.org)"
622
+ },
623
+ "json": {"name": "widget", "size": 3},
624
+ "url": "https://httpbin.org/put"
625
+ }
626
+ }
627
+ ```
628
+
629
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
630
+
631
+ | `pack_error.code` | Service status | Retryable | Message |
632
+ |---|---|---|---|
633
+ | `not_found` | 404, 410 | no | built from the service's response |
634
+ | `forbidden` | 401, 403 | no | built from the service's response |
635
+ | `rate_limited` | 429 | yes | rate limited (429); retry later |
636
+ | `invalid_request` | matched on the response body | no | built from the service's response |
637
+
638
+ <h3 id="http-patch-json"><code>patch-json</code></h3>
639
+
640
+ **PATCH JSON.** PATCH a URL with a JSON body (partial update) and return the status and the response body.
641
+
642
+ Ref `io.b3os/http/patch-json@1.0.0` · effect `irreversible` · no connection · MCP tool `http__patch-json`
643
+
644
+ **curl**
645
+
646
+ ```bash
647
+ curl -s https://beta-api.b3os.org/v1/actions/call \
648
+ -H "Authorization: Bearer $B3OS_API_KEY" \
649
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
650
+ -H "Content-Type: application/json" \
651
+ -d '{
652
+ "ref": "io.b3os/http/patch-json@1",
653
+ "input": {"url": "https://httpbin.org/patch", "body": {"size": 4}}
654
+ }'
655
+ ```
656
+ **TypeScript**
657
+
658
+ ```ts
659
+ import { B3OS } from "@b3os/sdk";
660
+
661
+ const b3os = new B3OS();
662
+ const result = await b3os.actions.call({
663
+ ref: "io.b3os/http/patch-json@1",
664
+ input: { url: "https://httpbin.org/patch", body: { size: 4 } },
665
+ }, { idempotencyKey: crypto.randomUUID() });
666
+ console.log(result.output);
667
+ ```
668
+ **Python**
669
+
670
+ ```python
671
+ import uuid
672
+ from b3os import B3OS
673
+
674
+ b3os = B3OS()
675
+ result = b3os.actions.call({
676
+ "ref": "io.b3os/http/patch-json@1",
677
+ "input": {"url": "https://httpbin.org/patch", "body": {"size": 4}},
678
+ }, idempotency_key=str(uuid.uuid4()))
679
+ print(result["output"])
680
+ ```
681
+ **MCP**
682
+
683
+ ```json
684
+ {
685
+ "method": "tools/call",
686
+ "params": {
687
+ "name": "http__patch-json",
688
+ "arguments": {"url": "https://httpbin.org/patch", "body": {"size": 4}}
689
+ }
690
+ }
691
+ ```
692
+
693
+ Expose the pack as tools with `--packs http` on the local server or `?packs=http` on the remote URL, and the agent calls `http__patch-json` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
694
+
695
+ Output, labeled `fixture`: PATCH JSON (response recorded 2026-10-26). From the bundle's `fixtures/patch-json.json`, not a live call.
696
+
697
+ ```json
698
+ {
699
+ "status": 200,
700
+ "content_type": "application/json",
701
+ "location": null,
702
+ "etag": null,
703
+ "body": {
704
+ "args": {},
705
+ "data": "{\"size\":4}",
706
+ "files": {},
707
+ "form": {},
708
+ "headers": {
709
+ "Accept": "application/json, text/*;q=0.9, */*;q=0.8",
710
+ "Accept-Encoding": "br, gzip, deflate",
711
+ "Accept-Language": "*",
712
+ "Content-Length": "10",
713
+ "Content-Type": "application/json",
714
+ "Host": "httpbin.org",
715
+ "Sec-Fetch-Mode": "cors",
716
+ "User-Agent": "b3os-actions/1 (+https://beta.b3os.org)"
717
+ },
718
+ "json": {"size": 4},
719
+ "url": "https://httpbin.org/patch"
720
+ }
721
+ }
722
+ ```
723
+
724
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
725
+
726
+ | `pack_error.code` | Service status | Retryable | Message |
727
+ |---|---|---|---|
728
+ | `not_found` | 404, 410 | no | built from the service's response |
729
+ | `forbidden` | 401, 403 | no | built from the service's response |
730
+ | `rate_limited` | 429 | yes | rate limited (429); retry later |
731
+ | `invalid_request` | matched on the response body | no | built from the service's response |
732
+
733
+ <h3 id="http-delete"><code>delete</code></h3>
734
+
735
+ **DELETE a URL.** Send DELETE to a URL and return the status and the response body. Deleting cannot be undone.
736
+
737
+ Ref `io.b3os/http/delete@1.0.0` · effect `irreversible` · no connection · MCP tool `http__delete`
738
+
739
+ **curl**
740
+
741
+ ```bash
742
+ curl -s https://beta-api.b3os.org/v1/actions/call \
743
+ -H "Authorization: Bearer $B3OS_API_KEY" \
744
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
745
+ -H "Content-Type: application/json" \
746
+ -d '{
747
+ "ref": "io.b3os/http/delete@1",
748
+ "input": {"url": "https://httpbin.org/delete"}
749
+ }'
750
+ ```
751
+ **TypeScript**
752
+
753
+ ```ts
754
+ import { B3OS } from "@b3os/sdk";
755
+
756
+ const b3os = new B3OS();
757
+ const result = await b3os.actions.call({
758
+ ref: "io.b3os/http/delete@1",
759
+ input: { url: "https://httpbin.org/delete" },
760
+ }, { idempotencyKey: crypto.randomUUID() });
761
+ console.log(result.output);
762
+ ```
763
+ **Python**
764
+
765
+ ```python
766
+ import uuid
767
+ from b3os import B3OS
768
+
769
+ b3os = B3OS()
770
+ result = b3os.actions.call({
771
+ "ref": "io.b3os/http/delete@1",
772
+ "input": {"url": "https://httpbin.org/delete"},
773
+ }, idempotency_key=str(uuid.uuid4()))
774
+ print(result["output"])
775
+ ```
776
+ **MCP**
777
+
778
+ ```json
779
+ {
780
+ "method": "tools/call",
781
+ "params": {
782
+ "name": "http__delete",
783
+ "arguments": {"url": "https://httpbin.org/delete"}
784
+ }
785
+ }
786
+ ```
787
+
788
+ Expose the pack as tools with `--packs http` on the local server or `?packs=http` on the remote URL, and the agent calls `http__delete` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
789
+
790
+ Output, labeled `fixture`: DELETE a URL (response recorded 2026-10-26). From the bundle's `fixtures/delete.json`, not a live call.
791
+
792
+ ```json
793
+ {
794
+ "status": 200,
795
+ "content_type": "application/json",
796
+ "location": null,
797
+ "etag": null,
798
+ "body": {
799
+ "args": {},
800
+ "data": "",
801
+ "files": {},
802
+ "form": {},
803
+ "headers": {
804
+ "Accept": "application/json, text/*;q=0.9, */*;q=0.8",
805
+ "Accept-Encoding": "br, gzip, deflate",
806
+ "Accept-Language": "*",
807
+ "Host": "httpbin.org",
808
+ "Sec-Fetch-Mode": "cors",
809
+ "User-Agent": "b3os-actions/1 (+https://beta.b3os.org)"
810
+ },
811
+ "json": null,
812
+ "url": "https://httpbin.org/delete"
813
+ }
814
+ }
815
+ ```
816
+
817
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
818
+
819
+ | `pack_error.code` | Service status | Retryable | Message |
820
+ |---|---|---|---|
821
+ | `not_found` | 404, 410 | no | built from the service's response |
822
+ | `forbidden` | 401, 403 | no | built from the service's response |
823
+ | `rate_limited` | 429 | yes | rate limited (429); retry later |
824
+ | `invalid_request` | matched on the response body | no | built from the service's response |