@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,379 @@
1
+ # Wikipedia
2
+
3
+ > The io.b3os/wikipedia pack: 4 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/wikipedia.md
6
+
7
+ <a id="wikipedia"></a>
8
+
9
+ `io.b3os/wikipedia` 1.0.0 · `knowledge`, `reference`, `search` · MIT
10
+
11
+ Search Wikipedia in any language edition, read an article's summary or its full plain text, and get the events, births and deaths that happened on a calendar day. Uses the public MediaWiki Action API and the Wikimedia REST API. Keyless and read-only; content is CC BY-SA 4.0, so cite the article URL when you reuse text.
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: `*.wikipedia.org`.
20
+
21
+ ## Actions
22
+
23
+ | Action | Effect | MCP tool | Title |
24
+ |---|---|---|---|
25
+ | [`search`](https://docs.beta.b3os.org/actions/catalog/wikipedia#wikipedia-search) | read | `wikipedia__search` | Search articles |
26
+ | [`get-summary`](https://docs.beta.b3os.org/actions/catalog/wikipedia#wikipedia-get-summary) | read | `wikipedia__get-summary` | Get article summary |
27
+ | [`get-article-text`](https://docs.beta.b3os.org/actions/catalog/wikipedia#wikipedia-get-article-text) | read | `wikipedia__get-article-text` | Get article text |
28
+ | [`get-on-this-day`](https://docs.beta.b3os.org/actions/catalog/wikipedia#wikipedia-get-on-this-day) | read | `wikipedia__get-on-this-day` | Get on this day |
29
+
30
+ <h3 id="wikipedia-search"><code>search</code></h3>
31
+
32
+ **Search articles.** Full-text search of one Wikipedia edition. Returns matching articles with a short snippet (HTML, matches wrapped in <span class="searchmatch">), word count and last edit time, best match first; use offset with next_offset to page. Follow up with get-summary or get-article-text for the content.
33
+
34
+ Ref `io.b3os/wikipedia/search@1.0.0` · effect `read` · no connection · MCP tool `wikipedia__search`
35
+
36
+ **curl**
37
+
38
+ ```bash
39
+ curl -s https://beta-api.b3os.org/v1/actions/call \
40
+ -H "Authorization: Bearer $B3OS_API_KEY" \
41
+ -H "Content-Type: application/json" \
42
+ -d '{
43
+ "ref": "io.b3os/wikipedia/search@1",
44
+ "input": {"query": "microVM hypervisor", "limit": 3}
45
+ }'
46
+ ```
47
+ **TypeScript**
48
+
49
+ ```ts
50
+ import { B3OS } from "@b3os/sdk";
51
+
52
+ const b3os = new B3OS();
53
+ const result = await b3os.actions.call({
54
+ ref: "io.b3os/wikipedia/search@1",
55
+ input: { query: "microVM hypervisor", limit: 3 },
56
+ });
57
+ console.log(result.output);
58
+ ```
59
+ **Python**
60
+
61
+ ```python
62
+ from b3os import B3OS
63
+
64
+ b3os = B3OS()
65
+ result = b3os.actions.call({
66
+ "ref": "io.b3os/wikipedia/search@1",
67
+ "input": {"query": "microVM hypervisor", "limit": 3},
68
+ })
69
+ print(result["output"])
70
+ ```
71
+ **MCP**
72
+
73
+ ```json
74
+ {
75
+ "method": "tools/call",
76
+ "params": {
77
+ "name": "wikipedia__search",
78
+ "arguments": {"query": "microVM hypervisor", "limit": 3}
79
+ }
80
+ }
81
+ ```
82
+
83
+ Expose the pack as tools with `--packs wikipedia` on the local server or `?packs=wikipedia` on the remote URL, and the agent calls `wikipedia__search` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
84
+
85
+ Output, labeled `fixture`: Search articles (response recorded 2026-10-26). From the bundle's `fixtures/search.json`, not a live call.
86
+
87
+ ```json
88
+ {
89
+ "results": [
90
+ {
91
+ "title": "Comparison of platform virtualization software",
92
+ "pageid": 1582833,
93
+ "url": "https://en.wikipedia.org/?curid=1582833",
94
+ "snippet": "Platform virtualization software, specifically emulators and <span class=\"searchmatch\">hypervisors</span>, are software packages that emulate the whole physical computer machine, often",
95
+ "wordcount": 1315,
96
+ "last_edited": "2026-09-19T22:04:39Z"
97
+ },
98
+ {
99
+ "title": "Harvester (HCI)",
100
+ "pageid": 72682245,
101
+ "url": "https://en.wikipedia.org/?curid=72682245",
102
+ "snippet": "allowing PCI devices on the <span class=\"searchmatch\">hypervisor</span> host to be passed directly to a <span class=\"searchmatch\">VM</span>. Devices not in use directly by the <span class=\"searchmatch\">hypervisor</span> can be used. This is useful for",
103
+ "wordcount": 492,
104
+ "last_edited": "2026-10-17T22:10:02Z"
105
+ },
106
+ {
107
+ "title": "OpenNebula",
108
+ "pageid": 30174309,
109
+ "url": "https://en.wikipedia.org/?curid=30174309",
110
+ "snippet": "virtualization and cloud deployments based on the KVM <span class=\"searchmatch\">hypervisor</span>, LXC system containers, and AWS Firecracker <span class=\"searchmatch\">micro</span>VMs. The platform is also capable of offering",
111
+ "wordcount": 2552,
112
+ "last_edited": "2026-09-10T07:01:56Z"
113
+ }
114
+ ],
115
+ "total": 39,
116
+ "next_offset": 3
117
+ }
118
+ ```
119
+
120
+ 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:
121
+
122
+ | `pack_error.code` | Service status | Retryable | Message |
123
+ |---|---|---|---|
124
+ | `invalid_request` | 200 | no | built from the service's response |
125
+ | `not_found` | 404 | no | No Wikipedia article with this title in this language. |
126
+ | `rate_limited` | 429 | yes | Wikimedia rate limit reached; slow down. |
127
+
128
+ <h3 id="wikipedia-get-summary"><code>get-summary</code></h3>
129
+
130
+ **Get article summary.** The lead of one article: a one-line description, the first paragraph as plain text, a thumbnail and the canonical URL. Follows redirects (US to United States). type is disambiguation when the title is ambiguous; search for a more precise title then.
131
+
132
+ Ref `io.b3os/wikipedia/get-summary@1.0.0` · effect `read` · no connection · MCP tool `wikipedia__get-summary`
133
+
134
+ **curl**
135
+
136
+ ```bash
137
+ curl -s https://beta-api.b3os.org/v1/actions/call \
138
+ -H "Authorization: Bearer $B3OS_API_KEY" \
139
+ -H "Content-Type: application/json" \
140
+ -d '{
141
+ "ref": "io.b3os/wikipedia/get-summary@1",
142
+ "input": {"title": "Eugene, Oregon"}
143
+ }'
144
+ ```
145
+ **TypeScript**
146
+
147
+ ```ts
148
+ import { B3OS } from "@b3os/sdk";
149
+
150
+ const b3os = new B3OS();
151
+ const result = await b3os.actions.call({
152
+ ref: "io.b3os/wikipedia/get-summary@1",
153
+ input: { title: "Eugene, Oregon" },
154
+ });
155
+ console.log(result.output);
156
+ ```
157
+ **Python**
158
+
159
+ ```python
160
+ from b3os import B3OS
161
+
162
+ b3os = B3OS()
163
+ result = b3os.actions.call({
164
+ "ref": "io.b3os/wikipedia/get-summary@1",
165
+ "input": {"title": "Eugene, Oregon"},
166
+ })
167
+ print(result["output"])
168
+ ```
169
+ **MCP**
170
+
171
+ ```json
172
+ {
173
+ "method": "tools/call",
174
+ "params": {
175
+ "name": "wikipedia__get-summary",
176
+ "arguments": {"title": "Eugene, Oregon"}
177
+ }
178
+ }
179
+ ```
180
+
181
+ Expose the pack as tools with `--packs wikipedia` on the local server or `?packs=wikipedia` on the remote URL, and the agent calls `wikipedia__get-summary` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
182
+
183
+ Output, labeled `fixture`: Get article summary (response recorded 2026-10-26). From the bundle's `fixtures/get-summary.json`, not a live call.
184
+
185
+ ```json
186
+ {
187
+ "title": "Eugene, Oregon",
188
+ "description": "City in Oregon, United States",
189
+ "extract": "Eugene is a city in and the county seat of Lane County, Oregon, United States. It is located at the southern end of the Willamette Valley, near the confluence of the McKenzie and Willamette rivers, about 50 miles (80 km) east of the Oregon Coast and approximately 110 miles south of Portland.",
190
+ "type": "standard",
191
+ "url": "https://en.wikipedia.org/wiki/Eugene%2C_Oregon",
192
+ "thumbnail_url": "https://thumb.wikimedia.org/wikipedia/commons/thumb/1/14/102707-Oregon-Autzen-USC-UO-Sanchezpass.jpg/330px-102707-Oregon-Autzen-USC-UO-Sanchezpass.jpg?utm_source=en.wikipedia.org&utm_campaign=api&utm_content=thumbnail",
193
+ "last_modified": "2026-10-14T18:13:28Z",
194
+ "pageid": 9623
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
+ | `not_found` | 404 | no | No Wikipedia article with this title in this language. |
203
+ | `rate_limited` | 429 | yes | Wikimedia rate limit reached; slow down. |
204
+
205
+ <h3 id="wikipedia-get-article-text"><code>get-article-text</code></h3>
206
+
207
+ **Get article text.** An article's text as plain text, with section headings kept as == Heading == lines. Long articles produce long text; set intro_only to get only the part before the first heading. Follows redirects. For a short overview use get-summary.
208
+
209
+ Ref `io.b3os/wikipedia/get-article-text@1.0.0` · effect `read` · no connection · MCP tool `wikipedia__get-article-text`
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/wikipedia/get-article-text@1",
219
+ "input": {"title": "Firecracker (software)", "intro_only": true}
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/wikipedia/get-article-text@1",
230
+ input: { title: "Firecracker (software)", intro_only: true },
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/wikipedia/get-article-text@1",
242
+ "input": {"title": "Firecracker (software)", "intro_only": True},
243
+ })
244
+ print(result["output"])
245
+ ```
246
+ **MCP**
247
+
248
+ ```json
249
+ {
250
+ "method": "tools/call",
251
+ "params": {
252
+ "name": "wikipedia__get-article-text",
253
+ "arguments": {"title": "Firecracker (software)", "intro_only": true}
254
+ }
255
+ }
256
+ ```
257
+
258
+ Expose the pack as tools with `--packs wikipedia` on the local server or `?packs=wikipedia` on the remote URL, and the agent calls `wikipedia__get-article-text` 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 article text (response recorded 2026-10-26). From the bundle's `fixtures/get-article-text.json`, not a live call.
261
+
262
+ ```json
263
+ {
264
+ "title": "Firecracker (software)",
265
+ "pageid": 67903918,
266
+ "url": "https://en.wikipedia.org/?curid=67903918",
267
+ "text": "Firecracker is virtualization software developed by Amazon Web Services for its AWS Lambda serverless computing platform. It makes use of KVM."
268
+ }
269
+ ```
270
+
271
+ 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:
272
+
273
+ | `pack_error.code` | Service status | Retryable | Message |
274
+ |---|---|---|---|
275
+ | `not_found` | 200, 404 | no | No Wikipedia article with this title in this language. |
276
+ | `rate_limited` | 429 | yes | Wikimedia rate limit reached; slow down. |
277
+
278
+ <h3 id="wikipedia-get-on-this-day"><code>get-on-this-day</code></h3>
279
+
280
+ **Get on this day.** What happened on a calendar day in any year, from Wikipedia's On this day feed: selected anniversaries, all events, births, deaths or holidays. Each item has the year (null for holidays), a one-line description and the articles it links to.
281
+
282
+ Ref `io.b3os/wikipedia/get-on-this-day@1.0.0` · effect `read` · no connection · MCP tool `wikipedia__get-on-this-day`
283
+
284
+ **curl**
285
+
286
+ ```bash
287
+ curl -s https://beta-api.b3os.org/v1/actions/call \
288
+ -H "Authorization: Bearer $B3OS_API_KEY" \
289
+ -H "Content-Type: application/json" \
290
+ -d '{
291
+ "ref": "io.b3os/wikipedia/get-on-this-day@1",
292
+ "input": {"month": 10, "day": 26, "type": "selected"}
293
+ }'
294
+ ```
295
+ **TypeScript**
296
+
297
+ ```ts
298
+ import { B3OS } from "@b3os/sdk";
299
+
300
+ const b3os = new B3OS();
301
+ const result = await b3os.actions.call({
302
+ ref: "io.b3os/wikipedia/get-on-this-day@1",
303
+ input: { month: 10, day: 26, type: "selected" },
304
+ });
305
+ console.log(result.output);
306
+ ```
307
+ **Python**
308
+
309
+ ```python
310
+ from b3os import B3OS
311
+
312
+ b3os = B3OS()
313
+ result = b3os.actions.call({
314
+ "ref": "io.b3os/wikipedia/get-on-this-day@1",
315
+ "input": {"month": 10, "day": 26, "type": "selected"},
316
+ })
317
+ print(result["output"])
318
+ ```
319
+ **MCP**
320
+
321
+ ```json
322
+ {
323
+ "method": "tools/call",
324
+ "params": {
325
+ "name": "wikipedia__get-on-this-day",
326
+ "arguments": {"month": 10, "day": 26, "type": "selected"}
327
+ }
328
+ }
329
+ ```
330
+
331
+ Expose the pack as tools with `--packs wikipedia` on the local server or `?packs=wikipedia` on the remote URL, and the agent calls `wikipedia__get-on-this-day` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
332
+
333
+ Output, labeled `fixture`: Get on this day (response recorded 2026-10-26). From the bundle's `fixtures/get-on-this-day.json`, not a live call.
334
+
335
+ ```json
336
+ {
337
+ "items": [
338
+ {
339
+ "year": 2004,
340
+ "text": "Rockstar Games released Grand Theft Auto: San Andreas, considered one of the best video games ever made, in North America.",
341
+ "pages": [
342
+ {
343
+ "title": "Rockstar Games",
344
+ "url": "https://en.wikipedia.org/wiki/Rockstar_Games"
345
+ },
346
+ {
347
+ "title": "Grand Theft Auto: San Andreas",
348
+ "url": "https://en.wikipedia.org/wiki/Grand_Theft_Auto%3A_San_Andreas"
349
+ },
350
+ {
351
+ "title": "List of video games listed among the best",
352
+ "url": "https://en.wikipedia.org/wiki/List_of_video_games_listed_among_the_best"
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ "year": 2001,
358
+ "text": "President George W. Bush signed the Patriot Act into law, significantly expanding the authority of United States law enforcement agencies.",
359
+ "pages": [
360
+ {
361
+ "title": "George W. Bush",
362
+ "url": "https://en.wikipedia.org/wiki/George_W._Bush"
363
+ },
364
+ {
365
+ "title": "Patriot Act",
366
+ "url": "https://en.wikipedia.org/wiki/Patriot_Act"
367
+ }
368
+ ]
369
+ }
370
+ ]
371
+ }
372
+ ```
373
+
374
+ 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:
375
+
376
+ | `pack_error.code` | Service status | Retryable | Message |
377
+ |---|---|---|---|
378
+ | `not_found` | 404 | no | No Wikipedia article with this title in this language. |
379
+ | `rate_limited` | 429 | yes | Wikimedia rate limit reached; slow down. |
@@ -0,0 +1,46 @@
1
+ # Pack catalog
2
+
3
+ > The 32 first-party B3OS packs, 246 actions and 7 triggers, with a page per pack generated from the published pack versions.
4
+
5
+ Source: https://docs.beta.b3os.org/actions/catalog.md
6
+
7
+ Every first-party pack, generated from the pack index that `packages/packs` builds: 32 packs with 246 actions and 7 triggers. 15 need no credential; the others take one you store as a [vault connection](https://docs.beta.b3os.org/vault). Call an action as `<pack>/<action>@<version>` with [`POST /v1/actions/call`](https://docs.beta.b3os.org/actions/call), or let an agent find it with `actions_search`. `GET /v1/actions/packs` lists the packs your node serves.
8
+
9
+ A pack version is served once it is published to the registry and signed with the B3OS release key, which a person holds outside every automated system; nodes check each version's content hash and signature before they load it ([signing](https://docs.beta.b3os.org/actions/packs#signing-and-verification)).
10
+
11
+ Each pack's page has, per action, call snippets for curl, TypeScript, Python and MCP built from the pack's own fixture, the fixture's output labeled `fixture`, the MCP tool name and the error codes; per trigger, its config keys, a routine snippet and an event payload. [Markets](https://docs.beta.b3os.org/actions/catalog/markets) groups the prediction-market, market-data and DeFi packs with the sanctions check.
12
+
13
+ | Pack | Ref | Actions | Triggers | Connection | Domain |
14
+ |---|---|---|---|---|---|
15
+ | [Airtable](https://docs.beta.b3os.org/actions/catalog/airtable) | `io.b3os/airtable@1.0.0` | 7 (4 read, 2 write, 1 irreversible) | 0 | `token` (bearer) | `databases`, `productivity` |
16
+ | [arXiv](https://docs.beta.b3os.org/actions/catalog/arxiv) | `io.b3os/arxiv@1.0.0` | 2 (2 read) | 0 | none | `research`, `science`, `search` |
17
+ | [Chainalysis sanctions screening](https://docs.beta.b3os.org/actions/catalog/chainalysis-sanctions) | `io.b3os/chainalysis-sanctions@1.0.0` | 1 (1 read) | 0 | `chainalysis` (api_key) | `compliance`, `crypto`, `security` |
18
+ | [CoinGecko](https://docs.beta.b3os.org/actions/catalog/coingecko) | `io.b3os/coingecko@1.0.0` | 14 (14 read) | 0 | `coingecko` (api_key) | `crypto`, `market-data`, `prices` |
19
+ | [DEX Screener](https://docs.beta.b3os.org/actions/catalog/dexscreener) | `io.b3os/dexscreener@1.0.0` | 5 (5 read) | 0 | none | `crypto`, `market-data`, `defi` |
20
+ | [Discord](https://docs.beta.b3os.org/actions/catalog/discord) | `io.b3os/discord@1.0.0` | 8 (3 read, 4 write, 1 irreversible) | 0 | `bot` (api_key) | `messaging`, `community` |
21
+ | [Finnhub](https://docs.beta.b3os.org/actions/catalog/finnhub) | `io.b3os/finnhub@1.0.0` | 8 (8 read) | 0 | `finnhub` (api_key) | `finance`, `stocks`, `market-data` |
22
+ | [Frankfurter exchange rates](https://docs.beta.b3os.org/actions/catalog/frankfurter) | `io.b3os/frankfurter@1.0.0` | 5 (5 read) | 0 | none | `finance`, `currency`, `open-data` |
23
+ | [GitHub](https://docs.beta.b3os.org/actions/catalog/github) | `io.b3os/github@1.0.0` | 17 (11 read, 5 write, 1 irreversible) | 2 | `token` (bearer) | `developer-tools`, `issue-tracking`, `source-control` |
24
+ | [Gmail](https://docs.beta.b3os.org/actions/catalog/gmail) | `io.b3os/gmail@1.0.0` | 6 (3 read, 3 write) | 0 | `google` (oauth2) | `email`, `productivity` |
25
+ | [Google Calendar](https://docs.beta.b3os.org/actions/catalog/google-calendar) | `io.b3os/google-calendar@1.0.0` | 6 (4 read, 1 write, 1 irreversible) | 0 | `google` (oauth2) | `calendar`, `scheduling`, `productivity` |
26
+ | [Google Drive](https://docs.beta.b3os.org/actions/catalog/google-drive) | `io.b3os/google-drive@1.0.0` | 5 (4 read, 1 write) | 0 | `google` (oauth2) | `files`, `documents`, `productivity` |
27
+ | [Google Sheets](https://docs.beta.b3os.org/actions/catalog/google-sheets) | `io.b3os/google-sheets@1.0.0` | 7 (3 read, 4 write) | 0 | `google` (oauth2) | `spreadsheets`, `productivity` |
28
+ | [Hacker News](https://docs.beta.b3os.org/actions/catalog/hacker-news) | `io.b3os/hacker-news@1.0.0` | 5 (5 read) | 1 | none | `news`, `developer-tools`, `social` |
29
+ | [HTTP](https://docs.beta.b3os.org/actions/catalog/http) | `io.b3os/http@1.0.0` | 8 (2 read, 6 irreversible) | 0 | none | `http`, `developer-tools`, `webhooks` |
30
+ | [Hyperliquid (read-only)](https://docs.beta.b3os.org/actions/catalog/hyperliquid) | `io.b3os/hyperliquid@1.0.0` | 10 (10 read) | 0 | none | `crypto`, `market-data`, `derivatives` |
31
+ | [Jira](https://docs.beta.b3os.org/actions/catalog/jira) | `io.b3os/jira@1.0.0` | 10 (6 read, 4 write) | 0 | `jira` (basic) | `issue-tracking`, `project-management` |
32
+ | [Kalshi (read-only)](https://docs.beta.b3os.org/actions/catalog/kalshi) | `io.b3os/kalshi@1.0.0` | 9 (9 read) | 0 | none | `prediction-markets`, `market-data` |
33
+ | [Linear](https://docs.beta.b3os.org/actions/catalog/linear) | `io.b3os/linear@1.0.0` | 11 (7 read, 4 write) | 0 | `api_key` (api_key) | `issue-tracking`, `project-management` |
34
+ | [Morpho vaults](https://docs.beta.b3os.org/actions/catalog/morpho) | `io.b3os/morpho@1.0.0` | 2 (2 read) | 0 | none | `defi`, `crypto`, `yield` |
35
+ | [National Weather Service](https://docs.beta.b3os.org/actions/catalog/nws) | `io.b3os/nws@1.0.0` | 5 (5 read) | 0 | none | `weather`, `government-data` |
36
+ | [Notion](https://docs.beta.b3os.org/actions/catalog/notion) | `io.b3os/notion@1.0.0` | 10 (5 read, 5 write) | 0 | `token` (bearer) | `knowledge`, `documents`, `productivity` |
37
+ | [Open source packages (deps.dev)](https://docs.beta.b3os.org/actions/catalog/deps-dev) | `io.b3os/deps-dev@1.0.0` | 5 (5 read) | 0 | none | `developer-tools`, `security`, `open-source` |
38
+ | [Open-Meteo](https://docs.beta.b3os.org/actions/catalog/open-meteo) | `io.b3os/open-meteo@1.0.0` | 6 (6 read) | 0 | none | `weather`, `geocoding` |
39
+ | [Polymarket (read-only)](https://docs.beta.b3os.org/actions/catalog/polymarket) | `io.b3os/polymarket@1.2.0` | 14 (14 read) | 1 | none | `prediction-markets`, `market-data` |
40
+ | [Pushbullet](https://docs.beta.b3os.org/actions/catalog/pushbullet) | `io.b3os/pushbullet@1.0.0` | 2 (1 read, 1 irreversible) | 0 | `pushbullet` (api_key) | `notifications`, `messaging`, `mobile` |
41
+ | [Resend](https://docs.beta.b3os.org/actions/catalog/resend) | `io.b3os/resend@1.0.0` | 3 (2 read, 1 irreversible) | 0 | `resend` (bearer) | `email`, `messaging`, `notifications` |
42
+ | [S3-compatible storage](https://docs.beta.b3os.org/actions/catalog/s3) | `io.b3os/s3@1.0.0` | 6 (4 read, 1 write, 1 irreversible) | 0 | none | `storage`, `files`, `open-data` |
43
+ | [SEC EDGAR](https://docs.beta.b3os.org/actions/catalog/sec-edgar) | `io.b3os/sec-edgar@1.0.0` | 4 (4 read) | 0 | `sec` (none) | `finance`, `filings`, `open-data` |
44
+ | [Slack](https://docs.beta.b3os.org/actions/catalog/slack) | `io.b3os/slack@1.0.0` | 27 (11 read, 14 write, 2 irreversible) | 1 | `token` (bearer) | `messaging`, `collaboration` |
45
+ | [Stripe (read-only)](https://docs.beta.b3os.org/actions/catalog/stripe) | `io.b3os/stripe@1.0.0` | 14 (14 read) | 2 | `secret_key` (bearer) | `payments`, `billing` |
46
+ | [Wikipedia](https://docs.beta.b3os.org/actions/catalog/wikipedia) | `io.b3os/wikipedia@1.0.0` | 4 (4 read) | 0 | none | `knowledge`, `reference`, `search` |
@@ -0,0 +1,50 @@
1
+ # Actions limits and FAQ
2
+
3
+ > Rate and size limits for action calls in the beta, and answers to common questions about credentials, retries, effect classes and pack safety.
4
+
5
+ Source: https://docs.beta.b3os.org/actions/limits.md
6
+
7
+ ## Limits
8
+
9
+ | Limit | Value |
10
+ |---|---|
11
+ | Action calls per minute per organization (`actions.rpm`) | 300 |
12
+ | Call time limit (`timeout_ms`) | Up to 60 seconds; the action's own default otherwise |
13
+ | Call request body | 1 MiB |
14
+ | Connections named in one call | 8 |
15
+ | Search results per request | 50 |
16
+ | Memory of a JavaScript action | Set per action by the pack, 128 MB by default |
17
+
18
+ A JavaScript action that runs out of memory is stopped and fails with [`action_memory_exceeded`](https://docs.beta.b3os.org/errors#action_memory_exceeded); the same input fails the same way.
19
+
20
+ ## Fixed in the beta
21
+
22
+ No request field changes these in the beta.
23
+
24
+ - [**Response size**](https://docs.beta.b3os.org/actions/settings#response-size): 5 MiB per upstream response. An action reads at most 5 MiB of each response from the service it calls. A larger response fails the call with `502 upstream_too_large`, and retrying does not help.
25
+ - [**Retries**](https://docs.beta.b3os.org/actions/settings#retries): Pure and read actions only. B3OS retries a failed `pure` or `read` action on its own and never a `write` or `irreversible` one, which could repeat its effect. Send an `Idempotency-Key` and retry yourself.
26
+ - [**Publishers**](https://docs.beta.b3os.org/actions/settings#publishers): B3OS only. Only first-party B3OS packs (`io.b3os`) are in the catalog during the beta.
27
+
28
+ ## FAQ
29
+
30
+ **Does my agent ever see my credentials?**
31
+
32
+ No. Credentials live in the vault and are added to requests at the egress proxy, only for the hosts the pack declares. The action's template, a JavaScript action's code, your agent, the model and the logs never see them.
33
+ **Why was my write action not retried?**
34
+
35
+ B3OS retries only `pure` and `read` actions on its own, because repeating a write can repeat its effect. Send an `Idempotency-Key` and retry yourself; packs that support it pass the key to the service.
36
+ **What do the effect classes mean?**
37
+
38
+ `pure` computes from its input only, `read` reads from the world, `write` changes it, and `irreversible` changes it in a way that cannot be undone. They decide retries and the hints MCP clients show, such as `readOnlyHint` and `destructiveHint`.
39
+ **Can I publish my own pack?**
40
+
41
+ A command-line tool, yes, when your organization holds the preview flag `actions.tools_publish` (in the beta, only B3's organizations do): `b3os tool init` and `b3os tool publish` put your binary into your organization's own `org.` namespace, where only your organization can call it (both come with CLI 0.2.2, the **next** release). See [Hosted tools](https://docs.beta.b3os.org/actions/tools). Packs of HTTP actions, and tools listed for other organizations to call, are first-party only in the beta. For your own API, a routine's `core/http@1` step covers requests that need no credential.
42
+ **Are credentials ever sent over plain http?**
43
+
44
+ No. Declarative and JavaScript actions get a credential only on `https` requests: one that would carry it over plain `http`, at the start or after a redirect, is refused with `403 egress_denied`, reason `scheme`.
45
+ **Can a pack reach any host it likes?**
46
+
47
+ No. Each pack declares every host it may reach, the egress guard enforces the list on every request, and a version that adds a host is a major version.
48
+ **How do I use an action from a routine?**
49
+
50
+ Make it a step: `uses: <namespace>/<pack>/<action>@<version>`, the input as `with`, and the credentials bound under `connections`. See [definitions](https://docs.beta.b3os.org/routines/definitions).