@b3os/cli 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/README.md +87 -7
  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 -0
  19. package/dist/commands/app.js +559 -54
  20. package/dist/commands/app.js.map +1 -1
  21. package/dist/commands/auth.d.ts +88 -2
  22. package/dist/commands/auth.js +354 -44
  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 +81 -18
  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 +154 -0
  49. package/dist/commands/tool.js +785 -0
  50. package/dist/commands/tool.js.map +1 -0
  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/apply.d.ts +4 -0
  190. package/dist/manifest/apply.js +2 -0
  191. package/dist/manifest/apply.js.map +1 -1
  192. package/dist/manifest/domains.d.ts +50 -0
  193. package/dist/manifest/domains.js +159 -0
  194. package/dist/manifest/domains.js.map +1 -0
  195. package/dist/manifest/link.d.ts +20 -0
  196. package/dist/manifest/link.js +24 -0
  197. package/dist/manifest/link.js.map +1 -0
  198. package/dist/manifest/record.d.ts +1 -1
  199. package/dist/tool/archive.d.ts +33 -0
  200. package/dist/tool/archive.js +174 -0
  201. package/dist/tool/archive.js.map +1 -0
  202. package/dist/tool/calls.d.ts +46 -0
  203. package/dist/tool/calls.js +274 -0
  204. package/dist/tool/calls.js.map +1 -0
  205. package/dist/tool/checks.d.ts +21 -0
  206. package/dist/tool/checks.js +145 -0
  207. package/dist/tool/checks.js.map +1 -0
  208. package/dist/tool/elf.d.ts +19 -0
  209. package/dist/tool/elf.js +107 -0
  210. package/dist/tool/elf.js.map +1 -0
  211. package/dist/tool/predict.d.ts +8 -0
  212. package/dist/tool/predict.js +38 -0
  213. package/dist/tool/predict.js.map +1 -0
  214. package/dist/tool/ustar.d.ts +5 -0
  215. package/dist/tool/ustar.js +220 -0
  216. package/dist/tool/ustar.js.map +1 -0
  217. package/package.json +6 -5
@@ -0,0 +1,438 @@
1
+ # Frankfurter exchange rates
2
+
3
+ > The io.b3os/frankfurter pack: 5 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/frankfurter.md
6
+
7
+ <a id="frankfurter"></a>
8
+
9
+ `io.b3os/frankfurter` 1.0.0 · `finance`, `currency`, `open-data` · MIT
10
+
11
+ Foreign exchange reference rates published by the European Central Bank, through the free Frankfurter API (no key): latest and historical rates for the currencies the ECB publishes, time series between two dates, conversions and the currency list. Rates are published on working days only; weekends and holidays return the previous working day.
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: `api.frankfurter.dev`.
20
+
21
+ ## Actions
22
+
23
+ | Action | Effect | MCP tool | Title |
24
+ |---|---|---|---|
25
+ | [`latest-rates`](https://docs.beta.b3os.org/actions/catalog/frankfurter#frankfurter-latest-rates) | read | `frankfurter__latest-rates` | Latest rates |
26
+ | [`historical-rates`](https://docs.beta.b3os.org/actions/catalog/frankfurter#frankfurter-historical-rates) | read | `frankfurter__historical-rates` | Rates on a date |
27
+ | [`time-series`](https://docs.beta.b3os.org/actions/catalog/frankfurter#frankfurter-time-series) | read | `frankfurter__time-series` | Rates time series |
28
+ | [`convert`](https://docs.beta.b3os.org/actions/catalog/frankfurter#frankfurter-convert) | read | `frankfurter__convert` | Convert currency |
29
+ | [`list-currencies`](https://docs.beta.b3os.org/actions/catalog/frankfurter#frankfurter-list-currencies) | read | `frankfurter__list-currencies` | List currencies |
30
+
31
+ <h3 id="frankfurter-latest-rates"><code>latest-rates</code></h3>
32
+
33
+ **Latest rates.** The most recent ECB reference rates from a base currency to all others (or the symbols you list), multiplied by amount.
34
+
35
+ Ref `io.b3os/frankfurter/latest-rates@1.0.0` · effect `read` · no connection · MCP tool `frankfurter__latest-rates`
36
+
37
+ **curl**
38
+
39
+ ```bash
40
+ curl -s https://beta-api.b3os.org/v1/actions/call \
41
+ -H "Authorization: Bearer $B3OS_API_KEY" \
42
+ -H "Content-Type: application/json" \
43
+ -d '{
44
+ "ref": "io.b3os/frankfurter/latest-rates@1",
45
+ "input": {"base": "USD", "symbols": ["EUR", "GBP", "JPY"]}
46
+ }'
47
+ ```
48
+ **TypeScript**
49
+
50
+ ```ts
51
+ import { B3OS } from "@b3os/sdk";
52
+
53
+ const b3os = new B3OS();
54
+ const result = await b3os.actions.call({
55
+ ref: "io.b3os/frankfurter/latest-rates@1",
56
+ input: { base: "USD", symbols: ["EUR", "GBP", "JPY"] },
57
+ });
58
+ console.log(result.output);
59
+ ```
60
+ **Python**
61
+
62
+ ```python
63
+ from b3os import B3OS
64
+
65
+ b3os = B3OS()
66
+ result = b3os.actions.call({
67
+ "ref": "io.b3os/frankfurter/latest-rates@1",
68
+ "input": {"base": "USD", "symbols": ["EUR", "GBP", "JPY"]},
69
+ })
70
+ print(result["output"])
71
+ ```
72
+ **MCP**
73
+
74
+ ```json
75
+ {
76
+ "method": "tools/call",
77
+ "params": {
78
+ "name": "frankfurter__latest-rates",
79
+ "arguments": {"base": "USD", "symbols": ["EUR", "GBP", "JPY"]}
80
+ }
81
+ }
82
+ ```
83
+
84
+ Expose the pack as tools with `--packs frankfurter` on the local server or `?packs=frankfurter` on the remote URL, and the agent calls `frankfurter__latest-rates` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
85
+
86
+ Output, labeled `fixture`: Latest rates (response recorded 2026-10-26). From the bundle's `fixtures/latest-rates.json`, not a live call.
87
+
88
+ ```json
89
+ {
90
+ "base": "USD",
91
+ "date": "2026-10-23",
92
+ "amount": 1,
93
+ "rates": {"EUR": 0.89342, "GBP": 0.74804, "JPY": 156.8}
94
+ }
95
+ ```
96
+
97
+ 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:
98
+
99
+ | `pack_error.code` | Service status | Retryable | Message |
100
+ |---|---|---|---|
101
+ | `not_found` | 404 | no | Unknown currency, or no rates for that date (rates start on 1999-01-04). |
102
+ | `rate_limited` | 429 | yes | Frankfurter is rate limiting this address; retry shortly. |
103
+
104
+ <h3 id="frankfurter-historical-rates"><code>historical-rates</code></h3>
105
+
106
+ **Rates on a date.** ECB reference rates on a past date (the last working day on or before it), from a base currency to all others or the symbols you list.
107
+
108
+ Ref `io.b3os/frankfurter/historical-rates@1.0.0` · effect `read` · no connection · MCP tool `frankfurter__historical-rates`
109
+
110
+ **curl**
111
+
112
+ ```bash
113
+ curl -s https://beta-api.b3os.org/v1/actions/call \
114
+ -H "Authorization: Bearer $B3OS_API_KEY" \
115
+ -H "Content-Type: application/json" \
116
+ -d '{
117
+ "ref": "io.b3os/frankfurter/historical-rates@1",
118
+ "input": {"date": "2024-01-02", "base": "EUR", "symbols": ["USD", "CHF"]}
119
+ }'
120
+ ```
121
+ **TypeScript**
122
+
123
+ ```ts
124
+ import { B3OS } from "@b3os/sdk";
125
+
126
+ const b3os = new B3OS();
127
+ const result = await b3os.actions.call({
128
+ ref: "io.b3os/frankfurter/historical-rates@1",
129
+ input: { date: "2024-01-02", base: "EUR", symbols: ["USD", "CHF"] },
130
+ });
131
+ console.log(result.output);
132
+ ```
133
+ **Python**
134
+
135
+ ```python
136
+ from b3os import B3OS
137
+
138
+ b3os = B3OS()
139
+ result = b3os.actions.call({
140
+ "ref": "io.b3os/frankfurter/historical-rates@1",
141
+ "input": {"date": "2024-01-02", "base": "EUR", "symbols": ["USD", "CHF"]},
142
+ })
143
+ print(result["output"])
144
+ ```
145
+ **MCP**
146
+
147
+ ```json
148
+ {
149
+ "method": "tools/call",
150
+ "params": {
151
+ "name": "frankfurter__historical-rates",
152
+ "arguments": {"date": "2024-01-02", "base": "EUR", "symbols": ["USD", "CHF"]}
153
+ }
154
+ }
155
+ ```
156
+
157
+ Expose the pack as tools with `--packs frankfurter` on the local server or `?packs=frankfurter` on the remote URL, and the agent calls `frankfurter__historical-rates` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
158
+
159
+ Output, labeled `fixture`: Rates on a date (response recorded 2026-10-26). From the bundle's `fixtures/historical-rates.json`, not a live call.
160
+
161
+ ```json
162
+ {
163
+ "base": "EUR",
164
+ "date": "2024-01-02",
165
+ "amount": 1,
166
+ "rates": {"CHF": 0.9305, "USD": 1.0956}
167
+ }
168
+ ```
169
+
170
+ 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:
171
+
172
+ | `pack_error.code` | Service status | Retryable | Message |
173
+ |---|---|---|---|
174
+ | `not_found` | 404 | no | Unknown currency, or no rates for that date (rates start on 1999-01-04). |
175
+ | `rate_limited` | 429 | yes | Frankfurter is rate limiting this address; retry shortly. |
176
+
177
+ <h3 id="frankfurter-time-series"><code>time-series</code></h3>
178
+
179
+ **Rates time series.** Daily ECB reference rates between two dates (end defaults to the latest), keyed by date, for the symbols you list. List few symbols over long ranges: every working day is one entry.
180
+
181
+ Ref `io.b3os/frankfurter/time-series@1.0.0` · effect `read` · no connection · MCP tool `frankfurter__time-series`
182
+
183
+ **curl**
184
+
185
+ ```bash
186
+ curl -s https://beta-api.b3os.org/v1/actions/call \
187
+ -H "Authorization: Bearer $B3OS_API_KEY" \
188
+ -H "Content-Type: application/json" \
189
+ -d '{
190
+ "ref": "io.b3os/frankfurter/time-series@1",
191
+ "input": {
192
+ "start_date": "2026-10-19",
193
+ "end_date": "2026-10-23",
194
+ "base": "USD",
195
+ "symbols": ["EUR"]
196
+ }
197
+ }'
198
+ ```
199
+ **TypeScript**
200
+
201
+ ```ts
202
+ import { B3OS } from "@b3os/sdk";
203
+
204
+ const b3os = new B3OS();
205
+ const result = await b3os.actions.call({
206
+ ref: "io.b3os/frankfurter/time-series@1",
207
+ input: {
208
+ start_date: "2026-10-19",
209
+ end_date: "2026-10-23",
210
+ base: "USD",
211
+ symbols: ["EUR"],
212
+ },
213
+ });
214
+ console.log(result.output);
215
+ ```
216
+ **Python**
217
+
218
+ ```python
219
+ from b3os import B3OS
220
+
221
+ b3os = B3OS()
222
+ result = b3os.actions.call({
223
+ "ref": "io.b3os/frankfurter/time-series@1",
224
+ "input": {
225
+ "start_date": "2026-10-19",
226
+ "end_date": "2026-10-23",
227
+ "base": "USD",
228
+ "symbols": ["EUR"],
229
+ },
230
+ })
231
+ print(result["output"])
232
+ ```
233
+ **MCP**
234
+
235
+ ```json
236
+ {
237
+ "method": "tools/call",
238
+ "params": {
239
+ "name": "frankfurter__time-series",
240
+ "arguments": {
241
+ "start_date": "2026-10-19",
242
+ "end_date": "2026-10-23",
243
+ "base": "USD",
244
+ "symbols": ["EUR"]
245
+ }
246
+ }
247
+ }
248
+ ```
249
+
250
+ Expose the pack as tools with `--packs frankfurter` on the local server or `?packs=frankfurter` on the remote URL, and the agent calls `frankfurter__time-series` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
251
+
252
+ Output, labeled `fixture`: Rates time series (response recorded 2026-10-26). From the bundle's `fixtures/time-series.json`, not a live call.
253
+
254
+ ```json
255
+ {
256
+ "base": "USD",
257
+ "start_date": "2026-10-19",
258
+ "end_date": "2026-10-23",
259
+ "rates": {
260
+ "2026-10-19": {"EUR": 0.89087},
261
+ "2026-10-20": {"EUR": 0.89166},
262
+ "2026-10-21": {"EUR": 0.89015},
263
+ "2026-10-22": {"EUR": 0.89246},
264
+ "2026-10-23": {"EUR": 0.89342}
265
+ }
266
+ }
267
+ ```
268
+
269
+ 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:
270
+
271
+ | `pack_error.code` | Service status | Retryable | Message |
272
+ |---|---|---|---|
273
+ | `not_found` | 404 | no | Unknown currency, or no rates for that date (rates start on 1999-01-04). |
274
+ | `rate_limited` | 429 | yes | Frankfurter is rate limiting this address; retry shortly. |
275
+
276
+ <h3 id="frankfurter-convert"><code>convert</code></h3>
277
+
278
+ **Convert currency.** Convert an amount from one currency to another at the latest ECB reference rate (or on a past date), returning the converted amount and the rate.
279
+
280
+ Ref `io.b3os/frankfurter/convert@1.0.0` · effect `read` · no connection · MCP tool `frankfurter__convert`
281
+
282
+ **curl**
283
+
284
+ ```bash
285
+ curl -s https://beta-api.b3os.org/v1/actions/call \
286
+ -H "Authorization: Bearer $B3OS_API_KEY" \
287
+ -H "Content-Type: application/json" \
288
+ -d '{
289
+ "ref": "io.b3os/frankfurter/convert@1",
290
+ "input": {"amount": 250, "from": "GBP", "to": "USD"}
291
+ }'
292
+ ```
293
+ **TypeScript**
294
+
295
+ ```ts
296
+ import { B3OS } from "@b3os/sdk";
297
+
298
+ const b3os = new B3OS();
299
+ const result = await b3os.actions.call({
300
+ ref: "io.b3os/frankfurter/convert@1",
301
+ input: { amount: 250, from: "GBP", to: "USD" },
302
+ });
303
+ console.log(result.output);
304
+ ```
305
+ **Python**
306
+
307
+ ```python
308
+ from b3os import B3OS
309
+
310
+ b3os = B3OS()
311
+ result = b3os.actions.call({
312
+ "ref": "io.b3os/frankfurter/convert@1",
313
+ "input": {"amount": 250, "from": "GBP", "to": "USD"},
314
+ })
315
+ print(result["output"])
316
+ ```
317
+ **MCP**
318
+
319
+ ```json
320
+ {
321
+ "method": "tools/call",
322
+ "params": {
323
+ "name": "frankfurter__convert",
324
+ "arguments": {"amount": 250, "from": "GBP", "to": "USD"}
325
+ }
326
+ }
327
+ ```
328
+
329
+ Expose the pack as tools with `--packs frankfurter` on the local server or `?packs=frankfurter` on the remote URL, and the agent calls `frankfurter__convert` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
330
+
331
+ Output, labeled `fixture`: Convert currency (response recorded 2026-10-26). From the bundle's `fixtures/convert.json`, not a live call.
332
+
333
+ ```json
334
+ {
335
+ "amount": 250,
336
+ "from": "GBP",
337
+ "to": "USD",
338
+ "date": "2026-10-23",
339
+ "result": 334.2,
340
+ "rate": 1.3368
341
+ }
342
+ ```
343
+
344
+ 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:
345
+
346
+ | `pack_error.code` | Service status | Retryable | Message |
347
+ |---|---|---|---|
348
+ | `not_found` | 404 | no | Unknown currency, or no rates for that date (rates start on 1999-01-04). |
349
+ | `rate_limited` | 429 | yes | Frankfurter is rate limiting this address; retry shortly. |
350
+
351
+ <h3 id="frankfurter-list-currencies"><code>list-currencies</code></h3>
352
+
353
+ **List currencies.** Every currency Frankfurter has ECB rates for, as ISO 4217 code to English name.
354
+
355
+ Ref `io.b3os/frankfurter/list-currencies@1.0.0` · effect `read` · no connection · MCP tool `frankfurter__list-currencies`
356
+
357
+ **curl**
358
+
359
+ ```bash
360
+ curl -s https://beta-api.b3os.org/v1/actions/call \
361
+ -H "Authorization: Bearer $B3OS_API_KEY" \
362
+ -H "Content-Type: application/json" \
363
+ -d '{"ref": "io.b3os/frankfurter/list-currencies@1", "input": {}}'
364
+ ```
365
+ **TypeScript**
366
+
367
+ ```ts
368
+ import { B3OS } from "@b3os/sdk";
369
+
370
+ const b3os = new B3OS();
371
+ const result = await b3os.actions.call({ ref: "io.b3os/frankfurter/list-currencies@1", input: {} });
372
+ console.log(result.output);
373
+ ```
374
+ **Python**
375
+
376
+ ```python
377
+ from b3os import B3OS
378
+
379
+ b3os = B3OS()
380
+ result = b3os.actions.call({"ref": "io.b3os/frankfurter/list-currencies@1", "input": {}})
381
+ print(result["output"])
382
+ ```
383
+ **MCP**
384
+
385
+ ```json
386
+ {
387
+ "method": "tools/call",
388
+ "params": {"name": "frankfurter__list-currencies", "arguments": {}}
389
+ }
390
+ ```
391
+
392
+ Expose the pack as tools with `--packs frankfurter` on the local server or `?packs=frankfurter` on the remote URL, and the agent calls `frankfurter__list-currencies` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
393
+
394
+ Output, labeled `fixture`: List currencies (response recorded 2026-10-26). From the bundle's `fixtures/list-currencies.json`, not a live call.
395
+
396
+ ```json
397
+ {
398
+ "currencies": {
399
+ "AUD": "Australian Dollar",
400
+ "BRL": "Brazilian Real",
401
+ "CAD": "Canadian Dollar",
402
+ "CHF": "Swiss Franc",
403
+ "CNY": "Chinese Renminbi Yuan",
404
+ "CZK": "Czech Koruna",
405
+ "DKK": "Danish Krone",
406
+ "EUR": "Euro",
407
+ "GBP": "British Pound",
408
+ "HKD": "Hong Kong Dollar",
409
+ "HUF": "Hungarian Forint",
410
+ "IDR": "Indonesian Rupiah",
411
+ "ILS": "Israeli New Shekel",
412
+ "INR": "Indian Rupee",
413
+ "ISK": "Icelandic Króna",
414
+ "JPY": "Japanese Yen",
415
+ "KRW": "South Korean Won",
416
+ "MXN": "Mexican Peso",
417
+ "MYR": "Malaysian Ringgit",
418
+ "NOK": "Norwegian Krone",
419
+ "NZD": "New Zealand Dollar",
420
+ "PHP": "Philippine Peso",
421
+ "PLN": "Polish Złoty",
422
+ "RON": "Romanian Leu",
423
+ "SEK": "Swedish Krona",
424
+ "SGD": "Singapore Dollar",
425
+ "THB": "Thai Baht",
426
+ "TRY": "Turkish Lira",
427
+ "USD": "United States Dollar",
428
+ "ZAR": "South African Rand"
429
+ }
430
+ }
431
+ ```
432
+
433
+ 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:
434
+
435
+ | `pack_error.code` | Service status | Retryable | Message |
436
+ |---|---|---|---|
437
+ | `not_found` | 404 | no | Unknown currency, or no rates for that date (rates start on 1999-01-04). |
438
+ | `rate_limited` | 429 | yes | Frankfurter is rate limiting this address; retry shortly. |