@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,559 @@
1
+ # Open-Meteo
2
+
3
+ > The io.b3os/open-meteo pack: 6 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/open-meteo.md
6
+
7
+ <a id="open-meteo"></a>
8
+
9
+ `io.b3os/open-meteo` 1.0.0 · `weather`, `geocoding` · MIT
10
+
11
+ Weather for any coordinate on Earth from the Open-Meteo API: current conditions, hourly and daily forecasts up to 16 days, historical weather back to 1940, air quality, and place search to turn a name into coordinates. Keyless: no connection needed. Open-Meteo's free tier is for non-commercial use under 10,000 calls a day; commercial use needs your own Open-Meteo plan. For US locations, io.b3os/nws (the National Weather Service) adds official alerts.
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.open-meteo.com`, `geocoding-api.open-meteo.com`, `air-quality-api.open-meteo.com`, `archive-api.open-meteo.com`.
20
+
21
+ ## Actions
22
+
23
+ | Action | Effect | MCP tool | Title |
24
+ |---|---|---|---|
25
+ | [`search-places`](https://docs.beta.b3os.org/actions/catalog/open-meteo#open-meteo-search-places) | read | `open-meteo__search-places` | Search places |
26
+ | [`get-current-weather`](https://docs.beta.b3os.org/actions/catalog/open-meteo#open-meteo-get-current-weather) | read | `open-meteo__get-current-weather` | Get current weather |
27
+ | [`get-daily-forecast`](https://docs.beta.b3os.org/actions/catalog/open-meteo#open-meteo-get-daily-forecast) | read | `open-meteo__get-daily-forecast` | Get daily forecast |
28
+ | [`get-hourly-forecast`](https://docs.beta.b3os.org/actions/catalog/open-meteo#open-meteo-get-hourly-forecast) | read | `open-meteo__get-hourly-forecast` | Get hourly forecast |
29
+ | [`get-historical-weather`](https://docs.beta.b3os.org/actions/catalog/open-meteo#open-meteo-get-historical-weather) | read | `open-meteo__get-historical-weather` | Get historical weather |
30
+ | [`get-air-quality`](https://docs.beta.b3os.org/actions/catalog/open-meteo#open-meteo-get-air-quality) | read | `open-meteo__get-air-quality` | Get air quality |
31
+
32
+ <h3 id="open-meteo-search-places"><code>search-places</code></h3>
33
+
34
+ **Search places.** Find places by name and get their coordinates, country code, region and time zone, best match first. Use it first when you only have a place name: every weather action in this pack takes latitude and longitude.
35
+
36
+ Ref `io.b3os/open-meteo/search-places@1.0.0` · effect `read` · no connection · MCP tool `open-meteo__search-places`
37
+
38
+ **curl**
39
+
40
+ ```bash
41
+ curl -s https://beta-api.b3os.org/v1/actions/call \
42
+ -H "Authorization: Bearer $B3OS_API_KEY" \
43
+ -H "Content-Type: application/json" \
44
+ -d '{
45
+ "ref": "io.b3os/open-meteo/search-places@1",
46
+ "input": {"name": "Eugene", "count": 2}
47
+ }'
48
+ ```
49
+ **TypeScript**
50
+
51
+ ```ts
52
+ import { B3OS } from "@b3os/sdk";
53
+
54
+ const b3os = new B3OS();
55
+ const result = await b3os.actions.call({
56
+ ref: "io.b3os/open-meteo/search-places@1",
57
+ input: { name: "Eugene", count: 2 },
58
+ });
59
+ console.log(result.output);
60
+ ```
61
+ **Python**
62
+
63
+ ```python
64
+ from b3os import B3OS
65
+
66
+ b3os = B3OS()
67
+ result = b3os.actions.call({
68
+ "ref": "io.b3os/open-meteo/search-places@1",
69
+ "input": {"name": "Eugene", "count": 2},
70
+ })
71
+ print(result["output"])
72
+ ```
73
+ **MCP**
74
+
75
+ ```json
76
+ {
77
+ "method": "tools/call",
78
+ "params": {
79
+ "name": "open-meteo__search-places",
80
+ "arguments": {"name": "Eugene", "count": 2}
81
+ }
82
+ }
83
+ ```
84
+
85
+ Expose the pack as tools with `--packs open-meteo` on the local server or `?packs=open-meteo` on the remote URL, and the agent calls `open-meteo__search-places` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
86
+
87
+ Output, labeled `fixture`: Search places (response recorded 2026-10-26). From the bundle's `fixtures/search-places.json`, not a live call.
88
+
89
+ ```json
90
+ {
91
+ "places": [
92
+ {
93
+ "id": 5725846,
94
+ "name": "Eugene",
95
+ "latitude": 44.05207,
96
+ "longitude": -123.08675,
97
+ "country_code": "US",
98
+ "region": "Oregon",
99
+ "timezone": "America/Los_Angeles",
100
+ "population": 176654
101
+ },
102
+ {
103
+ "id": 4385819,
104
+ "name": "Eugene",
105
+ "latitude": 38.35281,
106
+ "longitude": -92.40379,
107
+ "country_code": "US",
108
+ "region": "Missouri",
109
+ "timezone": "America/Chicago",
110
+ "population": 156
111
+ }
112
+ ]
113
+ }
114
+ ```
115
+
116
+ 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:
117
+
118
+ | `pack_error.code` | Service status | Retryable | Message |
119
+ |---|---|---|---|
120
+ | `invalid_request` | 400 | no | built from the service's response |
121
+ | `rate_limited` | 429 | yes | Open-Meteo rate limit reached (the free tier allows 10,000 calls a day per client). |
122
+
123
+ <h3 id="open-meteo-get-current-weather"><code>get-current-weather</code></h3>
124
+
125
+ **Get current weather.** Current conditions at a coordinate: temperature, feels-like temperature, humidity, precipitation, cloud cover, wind and a plain-words description of the WMO weather code. Values are model data updated every 15 minutes, in the units you ask for.
126
+
127
+ Ref `io.b3os/open-meteo/get-current-weather@1.0.0` · effect `read` · no connection · MCP tool `open-meteo__get-current-weather`
128
+
129
+ **curl**
130
+
131
+ ```bash
132
+ curl -s https://beta-api.b3os.org/v1/actions/call \
133
+ -H "Authorization: Bearer $B3OS_API_KEY" \
134
+ -H "Content-Type: application/json" \
135
+ -d '{
136
+ "ref": "io.b3os/open-meteo/get-current-weather@1",
137
+ "input": {"latitude": 44.05, "longitude": -123.09}
138
+ }'
139
+ ```
140
+ **TypeScript**
141
+
142
+ ```ts
143
+ import { B3OS } from "@b3os/sdk";
144
+
145
+ const b3os = new B3OS();
146
+ const result = await b3os.actions.call({
147
+ ref: "io.b3os/open-meteo/get-current-weather@1",
148
+ input: { latitude: 44.05, longitude: -123.09 },
149
+ });
150
+ console.log(result.output);
151
+ ```
152
+ **Python**
153
+
154
+ ```python
155
+ from b3os import B3OS
156
+
157
+ b3os = B3OS()
158
+ result = b3os.actions.call({
159
+ "ref": "io.b3os/open-meteo/get-current-weather@1",
160
+ "input": {"latitude": 44.05, "longitude": -123.09},
161
+ })
162
+ print(result["output"])
163
+ ```
164
+ **MCP**
165
+
166
+ ```json
167
+ {
168
+ "method": "tools/call",
169
+ "params": {
170
+ "name": "open-meteo__get-current-weather",
171
+ "arguments": {"latitude": 44.05, "longitude": -123.09}
172
+ }
173
+ }
174
+ ```
175
+
176
+ Expose the pack as tools with `--packs open-meteo` on the local server or `?packs=open-meteo` on the remote URL, and the agent calls `open-meteo__get-current-weather` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
177
+
178
+ Output, labeled `fixture`: Get current weather (response recorded 2026-10-26). From the bundle's `fixtures/get-current-weather.json`, not a live call.
179
+
180
+ ```json
181
+ {
182
+ "time": "2026-10-26T00:00",
183
+ "timezone": "America/Los_Angeles",
184
+ "temperature": 10.2,
185
+ "apparent_temperature": 8.8,
186
+ "relative_humidity_percent": 90,
187
+ "precipitation": 0,
188
+ "cloud_cover_percent": 100,
189
+ "wind_speed": 7.1,
190
+ "wind_direction_degrees": 149,
191
+ "is_day": false,
192
+ "weather_code": 3,
193
+ "conditions": "Overcast",
194
+ "units": {"temperature": "°C", "precipitation": "mm", "wind_speed": "km/h"}
195
+ }
196
+ ```
197
+
198
+ 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:
199
+
200
+ | `pack_error.code` | Service status | Retryable | Message |
201
+ |---|---|---|---|
202
+ | `invalid_request` | 400 | no | built from the service's response |
203
+ | `rate_limited` | 429 | yes | Open-Meteo rate limit reached (the free tier allows 10,000 calls a day per client). |
204
+
205
+ <h3 id="open-meteo-get-daily-forecast"><code>get-daily-forecast</code></h3>
206
+
207
+ **Get daily forecast.** Daily forecast for up to 16 days at a coordinate: high and low temperature, precipitation total and maximum probability, maximum wind, sunrise, sunset and conditions in words. The days come as parallel arrays: index i of every list in days describes the date days.date[i].
208
+
209
+ Ref `io.b3os/open-meteo/get-daily-forecast@1.0.0` · effect `read` · no connection · MCP tool `open-meteo__get-daily-forecast`
210
+
211
+ **curl**
212
+
213
+ ```bash
214
+ curl -s https://beta-api.b3os.org/v1/actions/call \
215
+ -H "Authorization: Bearer $B3OS_API_KEY" \
216
+ -H "Content-Type: application/json" \
217
+ -d '{
218
+ "ref": "io.b3os/open-meteo/get-daily-forecast@1",
219
+ "input": {"latitude": 52.52, "longitude": 13.41, "days": 3}
220
+ }'
221
+ ```
222
+ **TypeScript**
223
+
224
+ ```ts
225
+ import { B3OS } from "@b3os/sdk";
226
+
227
+ const b3os = new B3OS();
228
+ const result = await b3os.actions.call({
229
+ ref: "io.b3os/open-meteo/get-daily-forecast@1",
230
+ input: { latitude: 52.52, longitude: 13.41, days: 3 },
231
+ });
232
+ console.log(result.output);
233
+ ```
234
+ **Python**
235
+
236
+ ```python
237
+ from b3os import B3OS
238
+
239
+ b3os = B3OS()
240
+ result = b3os.actions.call({
241
+ "ref": "io.b3os/open-meteo/get-daily-forecast@1",
242
+ "input": {"latitude": 52.52, "longitude": 13.41, "days": 3},
243
+ })
244
+ print(result["output"])
245
+ ```
246
+ **MCP**
247
+
248
+ ```json
249
+ {
250
+ "method": "tools/call",
251
+ "params": {
252
+ "name": "open-meteo__get-daily-forecast",
253
+ "arguments": {"latitude": 52.52, "longitude": 13.41, "days": 3}
254
+ }
255
+ }
256
+ ```
257
+
258
+ Expose the pack as tools with `--packs open-meteo` on the local server or `?packs=open-meteo` on the remote URL, and the agent calls `open-meteo__get-daily-forecast` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
259
+
260
+ Output, labeled `fixture`: Get daily forecast (response recorded 2026-10-26). From the bundle's `fixtures/get-daily-forecast.json`, not a live call.
261
+
262
+ ```json
263
+ {
264
+ "timezone": "Europe/Berlin",
265
+ "days": {
266
+ "date": ["2026-10-26", "2026-10-27", "2026-10-28"],
267
+ "temperature_max": [13.2, 15.4, 13.7],
268
+ "temperature_min": [7.7, 7.9, 8.6],
269
+ "precipitation_sum": [0, 0, 2],
270
+ "precipitation_probability_max_percent": [5, 3, 32],
271
+ "wind_speed_max": [17.6, 12.4, 11.3],
272
+ "sunrise": ["2026-10-26T06:51", "2026-10-27T06:53", "2026-10-28T06:55"],
273
+ "sunset": ["2026-10-26T16:48", "2026-10-27T16:46", "2026-10-28T16:44"],
274
+ "weather_code": [3, 3, 61],
275
+ "conditions": ["Overcast", "Overcast", "Slight rain"]
276
+ },
277
+ "units": {"temperature": "°C", "precipitation": "mm", "wind_speed": "km/h"}
278
+ }
279
+ ```
280
+
281
+ 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:
282
+
283
+ | `pack_error.code` | Service status | Retryable | Message |
284
+ |---|---|---|---|
285
+ | `invalid_request` | 400 | no | built from the service's response |
286
+ | `rate_limited` | 429 | yes | Open-Meteo rate limit reached (the free tier allows 10,000 calls a day per client). |
287
+
288
+ <h3 id="open-meteo-get-hourly-forecast"><code>get-hourly-forecast</code></h3>
289
+
290
+ **Get hourly forecast.** Hour-by-hour forecast for the next 1 to 168 hours at a coordinate: temperature, precipitation and its probability, cloud cover, wind and conditions in words. Parallel arrays: index i of every list in hours describes the hour hours.time[i] (local time).
291
+
292
+ Ref `io.b3os/open-meteo/get-hourly-forecast@1.0.0` · effect `read` · no connection · MCP tool `open-meteo__get-hourly-forecast`
293
+
294
+ **curl**
295
+
296
+ ```bash
297
+ curl -s https://beta-api.b3os.org/v1/actions/call \
298
+ -H "Authorization: Bearer $B3OS_API_KEY" \
299
+ -H "Content-Type: application/json" \
300
+ -d '{
301
+ "ref": "io.b3os/open-meteo/get-hourly-forecast@1",
302
+ "input": {"latitude": 35.68, "longitude": 139.69, "hours": 4}
303
+ }'
304
+ ```
305
+ **TypeScript**
306
+
307
+ ```ts
308
+ import { B3OS } from "@b3os/sdk";
309
+
310
+ const b3os = new B3OS();
311
+ const result = await b3os.actions.call({
312
+ ref: "io.b3os/open-meteo/get-hourly-forecast@1",
313
+ input: { latitude: 35.68, longitude: 139.69, hours: 4 },
314
+ });
315
+ console.log(result.output);
316
+ ```
317
+ **Python**
318
+
319
+ ```python
320
+ from b3os import B3OS
321
+
322
+ b3os = B3OS()
323
+ result = b3os.actions.call({
324
+ "ref": "io.b3os/open-meteo/get-hourly-forecast@1",
325
+ "input": {"latitude": 35.68, "longitude": 139.69, "hours": 4},
326
+ })
327
+ print(result["output"])
328
+ ```
329
+ **MCP**
330
+
331
+ ```json
332
+ {
333
+ "method": "tools/call",
334
+ "params": {
335
+ "name": "open-meteo__get-hourly-forecast",
336
+ "arguments": {"latitude": 35.68, "longitude": 139.69, "hours": 4}
337
+ }
338
+ }
339
+ ```
340
+
341
+ Expose the pack as tools with `--packs open-meteo` on the local server or `?packs=open-meteo` on the remote URL, and the agent calls `open-meteo__get-hourly-forecast` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
342
+
343
+ Output, labeled `fixture`: Get hourly forecast (response recorded 2026-10-26). From the bundle's `fixtures/get-hourly-forecast.json`, not a live call.
344
+
345
+ ```json
346
+ {
347
+ "timezone": "Asia/Tokyo",
348
+ "hours": {
349
+ "time": [
350
+ "2026-10-26T16:00",
351
+ "2026-10-26T17:00",
352
+ "2026-10-26T18:00",
353
+ "2026-10-26T19:00"
354
+ ],
355
+ "temperature": [16.7, 16.5, 16.4, 16.3],
356
+ "precipitation_probability_percent": [100, 100, 100, 100],
357
+ "precipitation": [3.3, 3.4, 1.7, 3.8],
358
+ "cloud_cover_percent": [88, 74, 84, 93],
359
+ "wind_speed": [4.6, 3.1, 2.9, 4.4],
360
+ "weather_code": [63, 63, 61, 63],
361
+ "conditions": ["Moderate rain", "Moderate rain", "Slight rain", "Moderate rain"]
362
+ },
363
+ "units": {"temperature": "°C", "precipitation": "mm", "wind_speed": "km/h"}
364
+ }
365
+ ```
366
+
367
+ 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:
368
+
369
+ | `pack_error.code` | Service status | Retryable | Message |
370
+ |---|---|---|---|
371
+ | `invalid_request` | 400 | no | built from the service's response |
372
+ | `rate_limited` | 429 | yes | Open-Meteo rate limit reached (the free tier allows 10,000 calls a day per client). |
373
+
374
+ <h3 id="open-meteo-get-historical-weather"><code>get-historical-weather</code></h3>
375
+
376
+ **Get historical weather.** Daily weather observed (reanalysis) between two past dates at a coordinate, from 1940 up to about five days ago: high and low temperature, precipitation total, maximum wind and conditions in words. At most 366 days per call. Parallel arrays: index i of every list in days describes days.date[i].
377
+
378
+ Ref `io.b3os/open-meteo/get-historical-weather@1.0.0` · effect `read` · no connection · MCP tool `open-meteo__get-historical-weather`
379
+
380
+ **curl**
381
+
382
+ ```bash
383
+ curl -s https://beta-api.b3os.org/v1/actions/call \
384
+ -H "Authorization: Bearer $B3OS_API_KEY" \
385
+ -H "Content-Type: application/json" \
386
+ -d '{
387
+ "ref": "io.b3os/open-meteo/get-historical-weather@1",
388
+ "input": {
389
+ "latitude": 44.05,
390
+ "longitude": -123.09,
391
+ "start_date": "2026-01-01",
392
+ "end_date": "2026-01-03",
393
+ "temperature_unit": "fahrenheit",
394
+ "precipitation_unit": "inch"
395
+ }
396
+ }'
397
+ ```
398
+ **TypeScript**
399
+
400
+ ```ts
401
+ import { B3OS } from "@b3os/sdk";
402
+
403
+ const b3os = new B3OS();
404
+ const result = await b3os.actions.call({
405
+ ref: "io.b3os/open-meteo/get-historical-weather@1",
406
+ input: {
407
+ latitude: 44.05,
408
+ longitude: -123.09,
409
+ start_date: "2026-01-01",
410
+ end_date: "2026-01-03",
411
+ temperature_unit: "fahrenheit",
412
+ precipitation_unit: "inch",
413
+ },
414
+ });
415
+ console.log(result.output);
416
+ ```
417
+ **Python**
418
+
419
+ ```python
420
+ from b3os import B3OS
421
+
422
+ b3os = B3OS()
423
+ result = b3os.actions.call({
424
+ "ref": "io.b3os/open-meteo/get-historical-weather@1",
425
+ "input": {
426
+ "latitude": 44.05,
427
+ "longitude": -123.09,
428
+ "start_date": "2026-01-01",
429
+ "end_date": "2026-01-03",
430
+ "temperature_unit": "fahrenheit",
431
+ "precipitation_unit": "inch",
432
+ },
433
+ })
434
+ print(result["output"])
435
+ ```
436
+ **MCP**
437
+
438
+ ```json
439
+ {
440
+ "method": "tools/call",
441
+ "params": {
442
+ "name": "open-meteo__get-historical-weather",
443
+ "arguments": {
444
+ "latitude": 44.05,
445
+ "longitude": -123.09,
446
+ "start_date": "2026-01-01",
447
+ "end_date": "2026-01-03",
448
+ "temperature_unit": "fahrenheit",
449
+ "precipitation_unit": "inch"
450
+ }
451
+ }
452
+ }
453
+ ```
454
+
455
+ Expose the pack as tools with `--packs open-meteo` on the local server or `?packs=open-meteo` on the remote URL, and the agent calls `open-meteo__get-historical-weather` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
456
+
457
+ Output, labeled `fixture`: Get historical weather (response recorded 2026-10-26). From the bundle's `fixtures/get-historical-weather.json`, not a live call.
458
+
459
+ ```json
460
+ {
461
+ "timezone": "America/Los_Angeles",
462
+ "days": {
463
+ "date": ["2026-01-01", "2026-01-02", "2026-01-03"],
464
+ "temperature_max": [41.5, 51.6, 56.4],
465
+ "temperature_min": [32.2, 40.5, 39.9],
466
+ "precipitation_sum": [0.539, 0.11, 0.602],
467
+ "wind_speed_max": [5.6, 10.2, 22.4],
468
+ "weather_code": [61, 61, 63],
469
+ "conditions": ["Slight rain", "Slight rain", "Moderate rain"]
470
+ },
471
+ "units": {"temperature": "°F", "precipitation": "inch", "wind_speed": "km/h"}
472
+ }
473
+ ```
474
+
475
+ 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:
476
+
477
+ | `pack_error.code` | Service status | Retryable | Message |
478
+ |---|---|---|---|
479
+ | `invalid_request` | 400 | no | built from the service's response |
480
+ | `rate_limited` | 429 | yes | Open-Meteo rate limit reached (the free tier allows 10,000 calls a day per client). |
481
+
482
+ <h3 id="open-meteo-get-air-quality"><code>get-air-quality</code></h3>
483
+
484
+ **Get air quality.** Current air quality at a coordinate from the CAMS models: US and European AQI, PM2.5, PM10, ozone, nitrogen dioxide, sulphur dioxide and carbon monoxide in micrograms per cubic metre. Coverage is global at about 11 km resolution, finer over Europe.
485
+
486
+ Ref `io.b3os/open-meteo/get-air-quality@1.0.0` · effect `read` · no connection · MCP tool `open-meteo__get-air-quality`
487
+
488
+ **curl**
489
+
490
+ ```bash
491
+ curl -s https://beta-api.b3os.org/v1/actions/call \
492
+ -H "Authorization: Bearer $B3OS_API_KEY" \
493
+ -H "Content-Type: application/json" \
494
+ -d '{
495
+ "ref": "io.b3os/open-meteo/get-air-quality@1",
496
+ "input": {"latitude": 34.05, "longitude": -118.24}
497
+ }'
498
+ ```
499
+ **TypeScript**
500
+
501
+ ```ts
502
+ import { B3OS } from "@b3os/sdk";
503
+
504
+ const b3os = new B3OS();
505
+ const result = await b3os.actions.call({
506
+ ref: "io.b3os/open-meteo/get-air-quality@1",
507
+ input: { latitude: 34.05, longitude: -118.24 },
508
+ });
509
+ console.log(result.output);
510
+ ```
511
+ **Python**
512
+
513
+ ```python
514
+ from b3os import B3OS
515
+
516
+ b3os = B3OS()
517
+ result = b3os.actions.call({
518
+ "ref": "io.b3os/open-meteo/get-air-quality@1",
519
+ "input": {"latitude": 34.05, "longitude": -118.24},
520
+ })
521
+ print(result["output"])
522
+ ```
523
+ **MCP**
524
+
525
+ ```json
526
+ {
527
+ "method": "tools/call",
528
+ "params": {
529
+ "name": "open-meteo__get-air-quality",
530
+ "arguments": {"latitude": 34.05, "longitude": -118.24}
531
+ }
532
+ }
533
+ ```
534
+
535
+ Expose the pack as tools with `--packs open-meteo` on the local server or `?packs=open-meteo` on the remote URL, and the agent calls `open-meteo__get-air-quality` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
536
+
537
+ Output, labeled `fixture`: Get air quality (response recorded 2026-10-26). From the bundle's `fixtures/get-air-quality.json`, not a live call.
538
+
539
+ ```json
540
+ {
541
+ "time": "2026-10-26T00:00",
542
+ "timezone": "America/Los_Angeles",
543
+ "us_aqi": 69,
544
+ "european_aqi": 70,
545
+ "pm2_5": 25.1,
546
+ "pm10": 25.8,
547
+ "ozone": 0,
548
+ "nitrogen_dioxide": 80.7,
549
+ "sulphur_dioxide": 4.3,
550
+ "carbon_monoxide": 359
551
+ }
552
+ ```
553
+
554
+ 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:
555
+
556
+ | `pack_error.code` | Service status | Retryable | Message |
557
+ |---|---|---|---|
558
+ | `invalid_request` | 400 | no | built from the service's response |
559
+ | `rate_limited` | 429 | yes | Open-Meteo rate limit reached (the free tier allows 10,000 calls a day per client). |