@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,2629 @@
1
+ # Slack
2
+
3
+ > The io.b3os/slack pack: 27 actions and 1 trigger 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/slack.md
6
+
7
+ <a id="slack"></a>
8
+
9
+ `io.b3os/slack` 1.0.0 · `messaging`, `collaboration` · MIT
10
+
11
+ Post, reply to, edit and delete messages, react, search, manage channels, members, user groups, reminders and status in a Slack workspace through the Web API, with your own Slack app's bot or user token. Converted from the original B3OS Slack actions: same inputs and the same {success, data: {ret}} envelope, where ret is Slack's own response. Bot tokens (xoxb-) cover most actions; search, reminders and status need a user token (xoxp-). The event trigger receives Events API deliveries for your app, verified with its signing secret.
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
+ `token`, type `bearer`: Slack token.
18
+
19
+ A bot token (xoxb-) or user token (xoxp-) from your own Slack app, with the scopes the actions you use need: chat:write, channels:read, groups:read, channels:manage, reactions:write, users:read, users:read.email, files:read, files:write, usergroups:read, usergroups:write; user tokens add search:read, reminders:write, users.profile:write.
20
+
21
+ How to get one: [api.slack.com](https://api.slack.com/authentication/token-types).
22
+
23
+ The credential is sent only to `slack.com`.
24
+
25
+ Store the credential once as a [vault connection](https://docs.beta.b3os.org/vault) for this pack and key, then name its id in a call's `connections`. Leave the key out and B3OS uses the project's newest connection for the pack and key without a `subject` ([connections](https://docs.beta.b3os.org/actions/call#connections)).
26
+
27
+ Hosts it reaches: `slack.com`.
28
+
29
+ ## Actions
30
+
31
+ | Action | Effect | MCP tool | Title |
32
+ |---|---|---|---|
33
+ | [`send-message`](https://docs.beta.b3os.org/actions/catalog/slack#slack-send-message) | write | `slack__send-message` | Slack: Send Message |
34
+ | [`reply-to-message`](https://docs.beta.b3os.org/actions/catalog/slack#slack-reply-to-message) | write | `slack__reply-to-message` | Slack: Reply to Message |
35
+ | [`send-block-kit-message`](https://docs.beta.b3os.org/actions/catalog/slack#slack-send-block-kit-message) | write | `slack__send-block-kit-message` | Slack: Send Block Kit Message |
36
+ | [`update-message`](https://docs.beta.b3os.org/actions/catalog/slack#slack-update-message) | write | `slack__update-message` | Slack: Update Message |
37
+ | [`delete-message`](https://docs.beta.b3os.org/actions/catalog/slack#slack-delete-message) | irreversible | `slack__delete-message` | Slack: Delete Message |
38
+ | [`add-reaction`](https://docs.beta.b3os.org/actions/catalog/slack#slack-add-reaction) | write | `slack__add-reaction` | Slack: Add Reaction |
39
+ | [`list-channels`](https://docs.beta.b3os.org/actions/catalog/slack#slack-list-channels) | read | `slack__list-channels` | Slack: List Channels |
40
+ | [`get-channel-info`](https://docs.beta.b3os.org/actions/catalog/slack#slack-get-channel-info) | read | `slack__get-channel-info` | Slack: Get Channel Info |
41
+ | [`create-channel`](https://docs.beta.b3os.org/actions/catalog/slack#slack-create-channel) | write | `slack__create-channel` | Slack: Create Channel |
42
+ | [`archive-channel`](https://docs.beta.b3os.org/actions/catalog/slack#slack-archive-channel) | write | `slack__archive-channel` | Slack: Archive Channel |
43
+ | [`set-channel-topic`](https://docs.beta.b3os.org/actions/catalog/slack#slack-set-channel-topic) | write | `slack__set-channel-topic` | Slack: Set Channel Topic |
44
+ | [`set-channel-description`](https://docs.beta.b3os.org/actions/catalog/slack#slack-set-channel-description) | write | `slack__set-channel-description` | Slack: Set Channel Description |
45
+ | [`invite-user-to-channel`](https://docs.beta.b3os.org/actions/catalog/slack#slack-invite-user-to-channel) | write | `slack__invite-user-to-channel` | Slack: Invite User to Channel |
46
+ | [`kick-user`](https://docs.beta.b3os.org/actions/catalog/slack#slack-kick-user) | write | `slack__kick-user` | Slack: Remove User from Channel |
47
+ | [`list-members-in-channel`](https://docs.beta.b3os.org/actions/catalog/slack#slack-list-members-in-channel) | read | `slack__list-members-in-channel` | Slack: List Members in Channel |
48
+ | [`list-replies`](https://docs.beta.b3os.org/actions/catalog/slack#slack-list-replies) | read | `slack__list-replies` | Slack: List Thread Replies |
49
+ | [`find-message`](https://docs.beta.b3os.org/actions/catalog/slack#slack-find-message) | read | `slack__find-message` | Slack: Find Message |
50
+ | [`find-user-by-email`](https://docs.beta.b3os.org/actions/catalog/slack#slack-find-user-by-email) | read | `slack__find-user-by-email` | Slack: Find User by Email |
51
+ | [`list-users`](https://docs.beta.b3os.org/actions/catalog/slack#slack-list-users) | read | `slack__list-users` | Slack: List Users |
52
+ | [`get-current-user`](https://docs.beta.b3os.org/actions/catalog/slack#slack-get-current-user) | read | `slack__get-current-user` | Slack: Get Current User |
53
+ | [`get-file`](https://docs.beta.b3os.org/actions/catalog/slack#slack-get-file) | read | `slack__get-file` | Slack: Get File Info |
54
+ | [`list-files`](https://docs.beta.b3os.org/actions/catalog/slack#slack-list-files) | read | `slack__list-files` | Slack: List Files |
55
+ | [`delete-file`](https://docs.beta.b3os.org/actions/catalog/slack#slack-delete-file) | irreversible | `slack__delete-file` | Slack: Delete File |
56
+ | [`create-reminder`](https://docs.beta.b3os.org/actions/catalog/slack#slack-create-reminder) | write | `slack__create-reminder` | Slack: Create Reminder |
57
+ | [`set-status`](https://docs.beta.b3os.org/actions/catalog/slack#slack-set-status) | write | `slack__set-status` | Slack: Set Status |
58
+ | [`list-group-members`](https://docs.beta.b3os.org/actions/catalog/slack#slack-list-group-members) | read | `slack__list-group-members` | Slack: List Group Members |
59
+ | [`update-group-members`](https://docs.beta.b3os.org/actions/catalog/slack#slack-update-group-members) | write | `slack__update-group-members` | Slack: Update Group Members |
60
+
61
+ <h3 id="slack-send-message"><code>send-message</code></h3>
62
+
63
+ **Slack: Send Message.** Post a message to a channel, a DM (pass a user id as channel) or a thread (pass thread_ts). The bot must be a member of private channels. Returns the message ts, which identifies it for replies, edits, reactions and deletes. Not idempotent: two calls post twice.
64
+
65
+ Ref `io.b3os/slack/send-message@1.0.0` · effect `write` · connection `token` · MCP tool `slack__send-message`
66
+
67
+ **curl**
68
+
69
+ ```bash
70
+ curl -s https://beta-api.b3os.org/v1/actions/call \
71
+ -H "Authorization: Bearer $B3OS_API_KEY" \
72
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
73
+ -H "Content-Type: application/json" \
74
+ -d '{
75
+ "ref": "io.b3os/slack/send-message@1",
76
+ "input": {
77
+ "channel": "C0123ABCDEF",
78
+ "text": "Deploy finished: *v2.4.0* is live."
79
+ },
80
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
81
+ }'
82
+ ```
83
+ **TypeScript**
84
+
85
+ ```ts
86
+ import { B3OS } from "@b3os/sdk";
87
+
88
+ const b3os = new B3OS();
89
+ const result = await b3os.actions.call({
90
+ ref: "io.b3os/slack/send-message@1",
91
+ input: {
92
+ channel: "C0123ABCDEF",
93
+ text: "Deploy finished: *v2.4.0* is live.",
94
+ },
95
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
96
+ }, { idempotencyKey: crypto.randomUUID() });
97
+ console.log(result.output);
98
+ ```
99
+ **Python**
100
+
101
+ ```python
102
+ import uuid
103
+ from b3os import B3OS
104
+
105
+ b3os = B3OS()
106
+ result = b3os.actions.call({
107
+ "ref": "io.b3os/slack/send-message@1",
108
+ "input": {
109
+ "channel": "C0123ABCDEF",
110
+ "text": "Deploy finished: *v2.4.0* is live.",
111
+ },
112
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
113
+ }, idempotency_key=str(uuid.uuid4()))
114
+ print(result["output"])
115
+ ```
116
+ **MCP**
117
+
118
+ ```json
119
+ {
120
+ "method": "tools/call",
121
+ "params": {
122
+ "name": "slack__send-message",
123
+ "arguments": {
124
+ "channel": "C0123ABCDEF",
125
+ "text": "Deploy finished: *v2.4.0* is live."
126
+ }
127
+ }
128
+ }
129
+ ```
130
+
131
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__send-message` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
132
+
133
+ Output, labeled `fixture`: Slack: Send Message (documented response shape, example values). From the bundle's `fixtures/send-message.json`, not a live call.
134
+
135
+ ```json
136
+ {
137
+ "success": true,
138
+ "data": {
139
+ "ret": {
140
+ "ok": true,
141
+ "channel": "C0123ABCDEF",
142
+ "ts": "1730000000.000100",
143
+ "message": {
144
+ "type": "message",
145
+ "user": "U0BOTUSER1",
146
+ "bot_id": "B0BOTID123",
147
+ "app_id": "A0APPID1234",
148
+ "text": "Deploy finished: *v2.4.0* is live.",
149
+ "ts": "1730000000.000100",
150
+ "team": "T0TEAM12345"
151
+ }
152
+ }
153
+ }
154
+ }
155
+ ```
156
+
157
+ 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:
158
+
159
+ | `pack_error.code` | Service status | Retryable | Message |
160
+ |---|---|---|---|
161
+ | `connection_unauthorized` | 200 | no | built from the service's response |
162
+ | `forbidden` | 200 | no | built from the service's response |
163
+ | `not_found` | 200 | no | built from the service's response |
164
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
165
+ | `invalid_request` | 200 | no | built from the service's response |
166
+
167
+ <h3 id="slack-reply-to-message"><code>reply-to-message</code></h3>
168
+
169
+ **Slack: Reply to Message.** Reply in the thread of an existing message (thread_ts is the parent message's ts). Returns the reply's ts. Not idempotent.
170
+
171
+ Ref `io.b3os/slack/reply-to-message@1.0.0` · effect `write` · connection `token` · MCP tool `slack__reply-to-message`
172
+
173
+ **curl**
174
+
175
+ ```bash
176
+ curl -s https://beta-api.b3os.org/v1/actions/call \
177
+ -H "Authorization: Bearer $B3OS_API_KEY" \
178
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
179
+ -H "Content-Type: application/json" \
180
+ -d '{
181
+ "ref": "io.b3os/slack/reply-to-message@1",
182
+ "input": {
183
+ "channel": "C0123ABCDEF",
184
+ "thread_ts": "1730000000.000100",
185
+ "text": "Rolled back; looking into it."
186
+ },
187
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
188
+ }'
189
+ ```
190
+ **TypeScript**
191
+
192
+ ```ts
193
+ import { B3OS } from "@b3os/sdk";
194
+
195
+ const b3os = new B3OS();
196
+ const result = await b3os.actions.call({
197
+ ref: "io.b3os/slack/reply-to-message@1",
198
+ input: {
199
+ channel: "C0123ABCDEF",
200
+ thread_ts: "1730000000.000100",
201
+ text: "Rolled back; looking into it.",
202
+ },
203
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
204
+ }, { idempotencyKey: crypto.randomUUID() });
205
+ console.log(result.output);
206
+ ```
207
+ **Python**
208
+
209
+ ```python
210
+ import uuid
211
+ from b3os import B3OS
212
+
213
+ b3os = B3OS()
214
+ result = b3os.actions.call({
215
+ "ref": "io.b3os/slack/reply-to-message@1",
216
+ "input": {
217
+ "channel": "C0123ABCDEF",
218
+ "thread_ts": "1730000000.000100",
219
+ "text": "Rolled back; looking into it.",
220
+ },
221
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
222
+ }, idempotency_key=str(uuid.uuid4()))
223
+ print(result["output"])
224
+ ```
225
+ **MCP**
226
+
227
+ ```json
228
+ {
229
+ "method": "tools/call",
230
+ "params": {
231
+ "name": "slack__reply-to-message",
232
+ "arguments": {
233
+ "channel": "C0123ABCDEF",
234
+ "thread_ts": "1730000000.000100",
235
+ "text": "Rolled back; looking into it."
236
+ }
237
+ }
238
+ }
239
+ ```
240
+
241
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__reply-to-message` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
242
+
243
+ Output, labeled `fixture`: Slack: Reply to Message (documented response shape, example values). From the bundle's `fixtures/reply-to-message.json`, not a live call.
244
+
245
+ ```json
246
+ {
247
+ "success": true,
248
+ "data": {
249
+ "ret": {
250
+ "ok": true,
251
+ "channel": "C0123ABCDEF",
252
+ "ts": "1730000060.000200",
253
+ "message": {
254
+ "type": "message",
255
+ "user": "U0BOTUSER1",
256
+ "bot_id": "B0BOTID123",
257
+ "app_id": "A0APPID1234",
258
+ "text": "Rolled back; looking into it.",
259
+ "ts": "1730000060.000200",
260
+ "team": "T0TEAM12345",
261
+ "thread_ts": "1730000000.000100"
262
+ }
263
+ }
264
+ }
265
+ }
266
+ ```
267
+
268
+ 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:
269
+
270
+ | `pack_error.code` | Service status | Retryable | Message |
271
+ |---|---|---|---|
272
+ | `connection_unauthorized` | 200 | no | built from the service's response |
273
+ | `forbidden` | 200 | no | built from the service's response |
274
+ | `not_found` | 200 | no | built from the service's response |
275
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
276
+ | `invalid_request` | 200 | no | built from the service's response |
277
+
278
+ <h3 id="slack-send-block-kit-message"><code>send-block-kit-message</code></h3>
279
+
280
+ **Slack: Send Block Kit Message.** Post a Block Kit message: blocks is the JSON array of layout blocks (sections, buttons, images, ...) as a string, and text is the plain fallback shown in notifications. Build and preview layouts in Slack's Block Kit Builder. Not idempotent.
281
+
282
+ Ref `io.b3os/slack/send-block-kit-message@1.0.0` · effect `write` · connection `token` · MCP tool `slack__send-block-kit-message`
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 "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
290
+ -H "Content-Type: application/json" \
291
+ -d '{
292
+ "ref": "io.b3os/slack/send-block-kit-message@1",
293
+ "input": {
294
+ "channel": "C0123ABCDEF",
295
+ "blocks": "[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"*Build 812* failed on `main`\"}}]",
296
+ "text": "Build 812 failed on main"
297
+ },
298
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
299
+ }'
300
+ ```
301
+ **TypeScript**
302
+
303
+ ```ts
304
+ import { B3OS } from "@b3os/sdk";
305
+
306
+ const b3os = new B3OS();
307
+ const result = await b3os.actions.call({
308
+ ref: "io.b3os/slack/send-block-kit-message@1",
309
+ input: {
310
+ channel: "C0123ABCDEF",
311
+ blocks: "[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"*Build 812* failed on `main`\"}}]",
312
+ text: "Build 812 failed on main",
313
+ },
314
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
315
+ }, { idempotencyKey: crypto.randomUUID() });
316
+ console.log(result.output);
317
+ ```
318
+ **Python**
319
+
320
+ ```python
321
+ import uuid
322
+ from b3os import B3OS
323
+
324
+ b3os = B3OS()
325
+ result = b3os.actions.call({
326
+ "ref": "io.b3os/slack/send-block-kit-message@1",
327
+ "input": {
328
+ "channel": "C0123ABCDEF",
329
+ "blocks": "[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"*Build 812* failed on `main`\"}}]",
330
+ "text": "Build 812 failed on main",
331
+ },
332
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
333
+ }, idempotency_key=str(uuid.uuid4()))
334
+ print(result["output"])
335
+ ```
336
+ **MCP**
337
+
338
+ ```json
339
+ {
340
+ "method": "tools/call",
341
+ "params": {
342
+ "name": "slack__send-block-kit-message",
343
+ "arguments": {
344
+ "channel": "C0123ABCDEF",
345
+ "blocks": "[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"*Build 812* failed on `main`\"}}]",
346
+ "text": "Build 812 failed on main"
347
+ }
348
+ }
349
+ }
350
+ ```
351
+
352
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__send-block-kit-message` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
353
+
354
+ Output, labeled `fixture`: Slack: Send Block Kit Message (documented response shape, example values). From the bundle's `fixtures/send-block-kit-message.json`, not a live call.
355
+
356
+ ```json
357
+ {
358
+ "success": true,
359
+ "data": {
360
+ "ret": {
361
+ "ok": true,
362
+ "channel": "C0123ABCDEF",
363
+ "ts": "1730000100.000300",
364
+ "message": {
365
+ "type": "message",
366
+ "user": "U0BOTUSER1",
367
+ "bot_id": "B0BOTID123",
368
+ "app_id": "A0APPID1234",
369
+ "text": "Build 812 failed on main",
370
+ "ts": "1730000100.000300",
371
+ "team": "T0TEAM12345"
372
+ }
373
+ }
374
+ }
375
+ }
376
+ ```
377
+
378
+ 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:
379
+
380
+ | `pack_error.code` | Service status | Retryable | Message |
381
+ |---|---|---|---|
382
+ | `connection_unauthorized` | 200 | no | built from the service's response |
383
+ | `forbidden` | 200 | no | built from the service's response |
384
+ | `not_found` | 200 | no | built from the service's response |
385
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
386
+ | `invalid_request` | 200 | no | built from the service's response |
387
+
388
+ <h3 id="slack-update-message"><code>update-message</code></h3>
389
+
390
+ **Slack: Update Message.** Replace the text of a message the token's user or bot posted. Returns the updated message.
391
+
392
+ Ref `io.b3os/slack/update-message@1.0.0` · effect `write` · connection `token` · MCP tool `slack__update-message`
393
+
394
+ **curl**
395
+
396
+ ```bash
397
+ curl -s https://beta-api.b3os.org/v1/actions/call \
398
+ -H "Authorization: Bearer $B3OS_API_KEY" \
399
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
400
+ -H "Content-Type: application/json" \
401
+ -d '{
402
+ "ref": "io.b3os/slack/update-message@1",
403
+ "input": {
404
+ "channel": "C0123ABCDEF",
405
+ "ts": "1730000000.000100",
406
+ "text": "Deploy finished: *v2.4.1* is live."
407
+ },
408
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
409
+ }'
410
+ ```
411
+ **TypeScript**
412
+
413
+ ```ts
414
+ import { B3OS } from "@b3os/sdk";
415
+
416
+ const b3os = new B3OS();
417
+ const result = await b3os.actions.call({
418
+ ref: "io.b3os/slack/update-message@1",
419
+ input: {
420
+ channel: "C0123ABCDEF",
421
+ ts: "1730000000.000100",
422
+ text: "Deploy finished: *v2.4.1* is live.",
423
+ },
424
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
425
+ }, { idempotencyKey: crypto.randomUUID() });
426
+ console.log(result.output);
427
+ ```
428
+ **Python**
429
+
430
+ ```python
431
+ import uuid
432
+ from b3os import B3OS
433
+
434
+ b3os = B3OS()
435
+ result = b3os.actions.call({
436
+ "ref": "io.b3os/slack/update-message@1",
437
+ "input": {
438
+ "channel": "C0123ABCDEF",
439
+ "ts": "1730000000.000100",
440
+ "text": "Deploy finished: *v2.4.1* is live.",
441
+ },
442
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
443
+ }, idempotency_key=str(uuid.uuid4()))
444
+ print(result["output"])
445
+ ```
446
+ **MCP**
447
+
448
+ ```json
449
+ {
450
+ "method": "tools/call",
451
+ "params": {
452
+ "name": "slack__update-message",
453
+ "arguments": {
454
+ "channel": "C0123ABCDEF",
455
+ "ts": "1730000000.000100",
456
+ "text": "Deploy finished: *v2.4.1* is live."
457
+ }
458
+ }
459
+ }
460
+ ```
461
+
462
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__update-message` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
463
+
464
+ Output, labeled `fixture`: Slack: Update Message (documented response shape, example values). From the bundle's `fixtures/update-message.json`, not a live call.
465
+
466
+ ```json
467
+ {
468
+ "success": true,
469
+ "data": {
470
+ "ret": {
471
+ "ok": true,
472
+ "channel": "C0123ABCDEF",
473
+ "ts": "1730000000.000100",
474
+ "text": "Deploy finished: *v2.4.1* is live.",
475
+ "message": {
476
+ "type": "message",
477
+ "user": "U0BOTUSER1",
478
+ "bot_id": "B0BOTID123",
479
+ "app_id": "A0APPID1234",
480
+ "text": "Deploy finished: *v2.4.1* is live.",
481
+ "ts": "1730000000.000100",
482
+ "team": "T0TEAM12345"
483
+ }
484
+ }
485
+ }
486
+ }
487
+ ```
488
+
489
+ 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:
490
+
491
+ | `pack_error.code` | Service status | Retryable | Message |
492
+ |---|---|---|---|
493
+ | `connection_unauthorized` | 200 | no | built from the service's response |
494
+ | `forbidden` | 200 | no | built from the service's response |
495
+ | `not_found` | 200 | no | built from the service's response |
496
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
497
+ | `invalid_request` | 200 | no | built from the service's response |
498
+
499
+ <h3 id="slack-delete-message"><code>delete-message</code></h3>
500
+
501
+ **Slack: Delete Message.** Delete a message. Bot tokens can delete the bot's own messages; user tokens their user's messages (admins more). Cannot be undone.
502
+
503
+ Ref `io.b3os/slack/delete-message@1.0.0` · effect `irreversible` · connection `token` · MCP tool `slack__delete-message`
504
+
505
+ **curl**
506
+
507
+ ```bash
508
+ curl -s https://beta-api.b3os.org/v1/actions/call \
509
+ -H "Authorization: Bearer $B3OS_API_KEY" \
510
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
511
+ -H "Content-Type: application/json" \
512
+ -d '{
513
+ "ref": "io.b3os/slack/delete-message@1",
514
+ "input": {"channel": "C0123ABCDEF", "ts": "1730000000.000100"},
515
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
516
+ }'
517
+ ```
518
+ **TypeScript**
519
+
520
+ ```ts
521
+ import { B3OS } from "@b3os/sdk";
522
+
523
+ const b3os = new B3OS();
524
+ const result = await b3os.actions.call({
525
+ ref: "io.b3os/slack/delete-message@1",
526
+ input: { channel: "C0123ABCDEF", ts: "1730000000.000100" },
527
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
528
+ }, { idempotencyKey: crypto.randomUUID() });
529
+ console.log(result.output);
530
+ ```
531
+ **Python**
532
+
533
+ ```python
534
+ import uuid
535
+ from b3os import B3OS
536
+
537
+ b3os = B3OS()
538
+ result = b3os.actions.call({
539
+ "ref": "io.b3os/slack/delete-message@1",
540
+ "input": {"channel": "C0123ABCDEF", "ts": "1730000000.000100"},
541
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
542
+ }, idempotency_key=str(uuid.uuid4()))
543
+ print(result["output"])
544
+ ```
545
+ **MCP**
546
+
547
+ ```json
548
+ {
549
+ "method": "tools/call",
550
+ "params": {
551
+ "name": "slack__delete-message",
552
+ "arguments": {"channel": "C0123ABCDEF", "ts": "1730000000.000100"}
553
+ }
554
+ }
555
+ ```
556
+
557
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__delete-message` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
558
+
559
+ Output, labeled `fixture`: Slack: Delete Message (documented response shape, example values). From the bundle's `fixtures/delete-message.json`, not a live call.
560
+
561
+ ```json
562
+ {
563
+ "success": true,
564
+ "data": {
565
+ "ret": {"ok": true, "channel": "C0123ABCDEF", "ts": "1730000000.000100"}
566
+ }
567
+ }
568
+ ```
569
+
570
+ 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:
571
+
572
+ | `pack_error.code` | Service status | Retryable | Message |
573
+ |---|---|---|---|
574
+ | `connection_unauthorized` | 200 | no | built from the service's response |
575
+ | `forbidden` | 200 | no | built from the service's response |
576
+ | `not_found` | 200 | no | built from the service's response |
577
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
578
+ | `invalid_request` | 200 | no | built from the service's response |
579
+
580
+ <h3 id="slack-add-reaction"><code>add-reaction</code></h3>
581
+
582
+ **Slack: Add Reaction.** Add an emoji reaction to a message, by emoji name without colons (thumbsup, eyes, white_check_mark).
583
+
584
+ Ref `io.b3os/slack/add-reaction@1.0.0` · effect `write` · connection `token` · MCP tool `slack__add-reaction`
585
+
586
+ **curl**
587
+
588
+ ```bash
589
+ curl -s https://beta-api.b3os.org/v1/actions/call \
590
+ -H "Authorization: Bearer $B3OS_API_KEY" \
591
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
592
+ -H "Content-Type: application/json" \
593
+ -d '{
594
+ "ref": "io.b3os/slack/add-reaction@1",
595
+ "input": {
596
+ "channel": "C0123ABCDEF",
597
+ "timestamp": "1730000000.000100",
598
+ "name": "white_check_mark"
599
+ },
600
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
601
+ }'
602
+ ```
603
+ **TypeScript**
604
+
605
+ ```ts
606
+ import { B3OS } from "@b3os/sdk";
607
+
608
+ const b3os = new B3OS();
609
+ const result = await b3os.actions.call({
610
+ ref: "io.b3os/slack/add-reaction@1",
611
+ input: {
612
+ channel: "C0123ABCDEF",
613
+ timestamp: "1730000000.000100",
614
+ name: "white_check_mark",
615
+ },
616
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
617
+ }, { idempotencyKey: crypto.randomUUID() });
618
+ console.log(result.output);
619
+ ```
620
+ **Python**
621
+
622
+ ```python
623
+ import uuid
624
+ from b3os import B3OS
625
+
626
+ b3os = B3OS()
627
+ result = b3os.actions.call({
628
+ "ref": "io.b3os/slack/add-reaction@1",
629
+ "input": {
630
+ "channel": "C0123ABCDEF",
631
+ "timestamp": "1730000000.000100",
632
+ "name": "white_check_mark",
633
+ },
634
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
635
+ }, idempotency_key=str(uuid.uuid4()))
636
+ print(result["output"])
637
+ ```
638
+ **MCP**
639
+
640
+ ```json
641
+ {
642
+ "method": "tools/call",
643
+ "params": {
644
+ "name": "slack__add-reaction",
645
+ "arguments": {
646
+ "channel": "C0123ABCDEF",
647
+ "timestamp": "1730000000.000100",
648
+ "name": "white_check_mark"
649
+ }
650
+ }
651
+ }
652
+ ```
653
+
654
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__add-reaction` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
655
+
656
+ Output, labeled `fixture`: Slack: Add Reaction (documented response shape, example values). From the bundle's `fixtures/add-reaction.json`, not a live call.
657
+
658
+ ```json
659
+ {"success": true, "data": {"ret": {"ok": true}}}
660
+ ```
661
+
662
+ 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:
663
+
664
+ | `pack_error.code` | Service status | Retryable | Message |
665
+ |---|---|---|---|
666
+ | `connection_unauthorized` | 200 | no | built from the service's response |
667
+ | `forbidden` | 200 | no | built from the service's response |
668
+ | `not_found` | 200 | no | built from the service's response |
669
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
670
+ | `invalid_request` | 200 | no | built from the service's response |
671
+
672
+ <h3 id="slack-list-channels"><code>list-channels</code></h3>
673
+
674
+ **Slack: List Channels.** List channels the token can see: public by default, or any of public_channel, private_channel, mpim, im (comma-separated). Each channel has id, name, privacy, membership, topic, purpose and member count. Page with next_cursor (empty on the last page).
675
+
676
+ Ref `io.b3os/slack/list-channels@1.0.0` · effect `read` · connection `token` · MCP tool `slack__list-channels`
677
+
678
+ **curl**
679
+
680
+ ```bash
681
+ curl -s https://beta-api.b3os.org/v1/actions/call \
682
+ -H "Authorization: Bearer $B3OS_API_KEY" \
683
+ -H "Content-Type: application/json" \
684
+ -d '{
685
+ "ref": "io.b3os/slack/list-channels@1",
686
+ "input": {"types": "public_channel,private_channel", "limit": 2},
687
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
688
+ }'
689
+ ```
690
+ **TypeScript**
691
+
692
+ ```ts
693
+ import { B3OS } from "@b3os/sdk";
694
+
695
+ const b3os = new B3OS();
696
+ const result = await b3os.actions.call({
697
+ ref: "io.b3os/slack/list-channels@1",
698
+ input: { types: "public_channel,private_channel", limit: 2 },
699
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
700
+ });
701
+ console.log(result.output);
702
+ ```
703
+ **Python**
704
+
705
+ ```python
706
+ from b3os import B3OS
707
+
708
+ b3os = B3OS()
709
+ result = b3os.actions.call({
710
+ "ref": "io.b3os/slack/list-channels@1",
711
+ "input": {"types": "public_channel,private_channel", "limit": 2},
712
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
713
+ })
714
+ print(result["output"])
715
+ ```
716
+ **MCP**
717
+
718
+ ```json
719
+ {
720
+ "method": "tools/call",
721
+ "params": {
722
+ "name": "slack__list-channels",
723
+ "arguments": {"types": "public_channel,private_channel", "limit": 2}
724
+ }
725
+ }
726
+ ```
727
+
728
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__list-channels` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
729
+
730
+ Output, labeled `fixture`: Slack: List Channels (documented response shape, example values). From the bundle's `fixtures/list-channels.json`, not a live call.
731
+
732
+ ```json
733
+ {
734
+ "success": true,
735
+ "data": {
736
+ "ret": {
737
+ "ok": true,
738
+ "channels": [
739
+ {
740
+ "id": "C0123ABCDEF",
741
+ "name": "deploys",
742
+ "is_channel": true,
743
+ "is_private": false,
744
+ "is_archived": false,
745
+ "is_member": true,
746
+ "num_members": 14,
747
+ "topic": {"value": "Release train"},
748
+ "purpose": {"value": "Deploy notifications"},
749
+ "created": 1700000000
750
+ },
751
+ {
752
+ "id": "G0PRIVATE01",
753
+ "name": "incident-war-room",
754
+ "is_channel": true,
755
+ "is_private": true,
756
+ "is_archived": false,
757
+ "is_member": true,
758
+ "num_members": 6,
759
+ "topic": {"value": ""},
760
+ "purpose": {"value": ""},
761
+ "created": 1710000000
762
+ }
763
+ ],
764
+ "next_cursor": "dGVhbTpDMDYxRkE1UEI="
765
+ }
766
+ }
767
+ }
768
+ ```
769
+
770
+ 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:
771
+
772
+ | `pack_error.code` | Service status | Retryable | Message |
773
+ |---|---|---|---|
774
+ | `connection_unauthorized` | 200 | no | built from the service's response |
775
+ | `forbidden` | 200 | no | built from the service's response |
776
+ | `not_found` | 200 | no | built from the service's response |
777
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
778
+ | `invalid_request` | 200 | no | built from the service's response |
779
+
780
+ <h3 id="slack-get-channel-info"><code>get-channel-info</code></h3>
781
+
782
+ **Slack: Get Channel Info.** Details of one channel: name, privacy, archived flag, creator, creation time, topic, purpose and member count.
783
+
784
+ Ref `io.b3os/slack/get-channel-info@1.0.0` · effect `read` · connection `token` · MCP tool `slack__get-channel-info`
785
+
786
+ **curl**
787
+
788
+ ```bash
789
+ curl -s https://beta-api.b3os.org/v1/actions/call \
790
+ -H "Authorization: Bearer $B3OS_API_KEY" \
791
+ -H "Content-Type: application/json" \
792
+ -d '{
793
+ "ref": "io.b3os/slack/get-channel-info@1",
794
+ "input": {"channel": "C0123ABCDEF"},
795
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
796
+ }'
797
+ ```
798
+ **TypeScript**
799
+
800
+ ```ts
801
+ import { B3OS } from "@b3os/sdk";
802
+
803
+ const b3os = new B3OS();
804
+ const result = await b3os.actions.call({
805
+ ref: "io.b3os/slack/get-channel-info@1",
806
+ input: { channel: "C0123ABCDEF" },
807
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
808
+ });
809
+ console.log(result.output);
810
+ ```
811
+ **Python**
812
+
813
+ ```python
814
+ from b3os import B3OS
815
+
816
+ b3os = B3OS()
817
+ result = b3os.actions.call({
818
+ "ref": "io.b3os/slack/get-channel-info@1",
819
+ "input": {"channel": "C0123ABCDEF"},
820
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
821
+ })
822
+ print(result["output"])
823
+ ```
824
+ **MCP**
825
+
826
+ ```json
827
+ {
828
+ "method": "tools/call",
829
+ "params": {
830
+ "name": "slack__get-channel-info",
831
+ "arguments": {"channel": "C0123ABCDEF"}
832
+ }
833
+ }
834
+ ```
835
+
836
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__get-channel-info` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
837
+
838
+ Output, labeled `fixture`: Slack: Get Channel Info (documented response shape, example values). From the bundle's `fixtures/get-channel-info.json`, not a live call.
839
+
840
+ ```json
841
+ {
842
+ "success": true,
843
+ "data": {
844
+ "ret": {
845
+ "ok": true,
846
+ "channel": {
847
+ "id": "C0123ABCDEF",
848
+ "name": "deploys",
849
+ "is_channel": true,
850
+ "is_private": false,
851
+ "is_archived": false,
852
+ "created": 1700000000,
853
+ "creator": "U0ADMIN0001",
854
+ "topic": {
855
+ "value": "Release train",
856
+ "creator": "U0ADMIN0001",
857
+ "last_set": 1700000100
858
+ },
859
+ "purpose": {
860
+ "value": "Deploy notifications",
861
+ "creator": "U0ADMIN0001",
862
+ "last_set": 1700000100
863
+ },
864
+ "num_members": 14
865
+ }
866
+ }
867
+ }
868
+ }
869
+ ```
870
+
871
+ 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:
872
+
873
+ | `pack_error.code` | Service status | Retryable | Message |
874
+ |---|---|---|---|
875
+ | `connection_unauthorized` | 200 | no | built from the service's response |
876
+ | `forbidden` | 200 | no | built from the service's response |
877
+ | `not_found` | 200 | no | built from the service's response |
878
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
879
+ | `invalid_request` | 200 | no | built from the service's response |
880
+
881
+ <h3 id="slack-create-channel"><code>create-channel</code></h3>
882
+
883
+ **Slack: Create Channel.** Create a public or private channel. Names are lowercase, without spaces or periods, up to 80 characters. Returns the new channel with its id.
884
+
885
+ Ref `io.b3os/slack/create-channel@1.0.0` · effect `write` · connection `token` · MCP tool `slack__create-channel`
886
+
887
+ **curl**
888
+
889
+ ```bash
890
+ curl -s https://beta-api.b3os.org/v1/actions/call \
891
+ -H "Authorization: Bearer $B3OS_API_KEY" \
892
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
893
+ -H "Content-Type: application/json" \
894
+ -d '{
895
+ "ref": "io.b3os/slack/create-channel@1",
896
+ "input": {"name": "incident-2026-10-26"},
897
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
898
+ }'
899
+ ```
900
+ **TypeScript**
901
+
902
+ ```ts
903
+ import { B3OS } from "@b3os/sdk";
904
+
905
+ const b3os = new B3OS();
906
+ const result = await b3os.actions.call({
907
+ ref: "io.b3os/slack/create-channel@1",
908
+ input: { name: "incident-2026-10-26" },
909
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
910
+ }, { idempotencyKey: crypto.randomUUID() });
911
+ console.log(result.output);
912
+ ```
913
+ **Python**
914
+
915
+ ```python
916
+ import uuid
917
+ from b3os import B3OS
918
+
919
+ b3os = B3OS()
920
+ result = b3os.actions.call({
921
+ "ref": "io.b3os/slack/create-channel@1",
922
+ "input": {"name": "incident-2026-10-26"},
923
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
924
+ }, idempotency_key=str(uuid.uuid4()))
925
+ print(result["output"])
926
+ ```
927
+ **MCP**
928
+
929
+ ```json
930
+ {
931
+ "method": "tools/call",
932
+ "params": {
933
+ "name": "slack__create-channel",
934
+ "arguments": {"name": "incident-2026-10-26"}
935
+ }
936
+ }
937
+ ```
938
+
939
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__create-channel` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
940
+
941
+ Output, labeled `fixture`: Slack: Create Channel (documented response shape, example values). From the bundle's `fixtures/create-channel.json`, not a live call.
942
+
943
+ ```json
944
+ {
945
+ "success": true,
946
+ "data": {
947
+ "ret": {
948
+ "ok": true,
949
+ "channel": {
950
+ "id": "C0NEWCHAN01",
951
+ "name": "incident-2026-10-26",
952
+ "is_channel": true,
953
+ "is_private": false,
954
+ "created": 1730001000,
955
+ "creator": "U0BOTUSER1"
956
+ }
957
+ }
958
+ }
959
+ }
960
+ ```
961
+
962
+ 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:
963
+
964
+ | `pack_error.code` | Service status | Retryable | Message |
965
+ |---|---|---|---|
966
+ | `connection_unauthorized` | 200 | no | built from the service's response |
967
+ | `forbidden` | 200 | no | built from the service's response |
968
+ | `not_found` | 200 | no | built from the service's response |
969
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
970
+ | `invalid_request` | 200 | no | built from the service's response |
971
+
972
+ <h3 id="slack-archive-channel"><code>archive-channel</code></h3>
973
+
974
+ **Slack: Archive Channel.** Archive a channel. Members keep read access to its history; nobody can post until it is unarchived.
975
+
976
+ Ref `io.b3os/slack/archive-channel@1.0.0` · effect `write` · connection `token` · MCP tool `slack__archive-channel`
977
+
978
+ **curl**
979
+
980
+ ```bash
981
+ curl -s https://beta-api.b3os.org/v1/actions/call \
982
+ -H "Authorization: Bearer $B3OS_API_KEY" \
983
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
984
+ -H "Content-Type: application/json" \
985
+ -d '{
986
+ "ref": "io.b3os/slack/archive-channel@1",
987
+ "input": {"channel": "C0NEWCHAN01"},
988
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
989
+ }'
990
+ ```
991
+ **TypeScript**
992
+
993
+ ```ts
994
+ import { B3OS } from "@b3os/sdk";
995
+
996
+ const b3os = new B3OS();
997
+ const result = await b3os.actions.call({
998
+ ref: "io.b3os/slack/archive-channel@1",
999
+ input: { channel: "C0NEWCHAN01" },
1000
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1001
+ }, { idempotencyKey: crypto.randomUUID() });
1002
+ console.log(result.output);
1003
+ ```
1004
+ **Python**
1005
+
1006
+ ```python
1007
+ import uuid
1008
+ from b3os import B3OS
1009
+
1010
+ b3os = B3OS()
1011
+ result = b3os.actions.call({
1012
+ "ref": "io.b3os/slack/archive-channel@1",
1013
+ "input": {"channel": "C0NEWCHAN01"},
1014
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1015
+ }, idempotency_key=str(uuid.uuid4()))
1016
+ print(result["output"])
1017
+ ```
1018
+ **MCP**
1019
+
1020
+ ```json
1021
+ {
1022
+ "method": "tools/call",
1023
+ "params": {
1024
+ "name": "slack__archive-channel",
1025
+ "arguments": {"channel": "C0NEWCHAN01"}
1026
+ }
1027
+ }
1028
+ ```
1029
+
1030
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__archive-channel` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1031
+
1032
+ Output, labeled `fixture`: Slack: Archive Channel (documented response shape, example values). From the bundle's `fixtures/archive-channel.json`, not a live call.
1033
+
1034
+ ```json
1035
+ {"success": true, "data": {"ret": {"ok": true}}}
1036
+ ```
1037
+
1038
+ 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:
1039
+
1040
+ | `pack_error.code` | Service status | Retryable | Message |
1041
+ |---|---|---|---|
1042
+ | `connection_unauthorized` | 200 | no | built from the service's response |
1043
+ | `forbidden` | 200 | no | built from the service's response |
1044
+ | `not_found` | 200 | no | built from the service's response |
1045
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
1046
+ | `invalid_request` | 200 | no | built from the service's response |
1047
+
1048
+ <h3 id="slack-set-channel-topic"><code>set-channel-topic</code></h3>
1049
+
1050
+ **Slack: Set Channel Topic.** Set a channel's topic (shown in the channel header).
1051
+
1052
+ Ref `io.b3os/slack/set-channel-topic@1.0.0` · effect `write` · connection `token` · MCP tool `slack__set-channel-topic`
1053
+
1054
+ **curl**
1055
+
1056
+ ```bash
1057
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1058
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1059
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
1060
+ -H "Content-Type: application/json" \
1061
+ -d '{
1062
+ "ref": "io.b3os/slack/set-channel-topic@1",
1063
+ "input": {
1064
+ "channel": "C0123ABCDEF",
1065
+ "topic": "Release train: v2.4.1 on Thursday"
1066
+ },
1067
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1068
+ }'
1069
+ ```
1070
+ **TypeScript**
1071
+
1072
+ ```ts
1073
+ import { B3OS } from "@b3os/sdk";
1074
+
1075
+ const b3os = new B3OS();
1076
+ const result = await b3os.actions.call({
1077
+ ref: "io.b3os/slack/set-channel-topic@1",
1078
+ input: {
1079
+ channel: "C0123ABCDEF",
1080
+ topic: "Release train: v2.4.1 on Thursday",
1081
+ },
1082
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1083
+ }, { idempotencyKey: crypto.randomUUID() });
1084
+ console.log(result.output);
1085
+ ```
1086
+ **Python**
1087
+
1088
+ ```python
1089
+ import uuid
1090
+ from b3os import B3OS
1091
+
1092
+ b3os = B3OS()
1093
+ result = b3os.actions.call({
1094
+ "ref": "io.b3os/slack/set-channel-topic@1",
1095
+ "input": {
1096
+ "channel": "C0123ABCDEF",
1097
+ "topic": "Release train: v2.4.1 on Thursday",
1098
+ },
1099
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1100
+ }, idempotency_key=str(uuid.uuid4()))
1101
+ print(result["output"])
1102
+ ```
1103
+ **MCP**
1104
+
1105
+ ```json
1106
+ {
1107
+ "method": "tools/call",
1108
+ "params": {
1109
+ "name": "slack__set-channel-topic",
1110
+ "arguments": {
1111
+ "channel": "C0123ABCDEF",
1112
+ "topic": "Release train: v2.4.1 on Thursday"
1113
+ }
1114
+ }
1115
+ }
1116
+ ```
1117
+
1118
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__set-channel-topic` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1119
+
1120
+ Output, labeled `fixture`: Slack: Set Channel Topic (documented response shape, example values). From the bundle's `fixtures/set-channel-topic.json`, not a live call.
1121
+
1122
+ ```json
1123
+ {
1124
+ "success": true,
1125
+ "data": {
1126
+ "ret": {
1127
+ "ok": true,
1128
+ "channel": {
1129
+ "id": "C0123ABCDEF",
1130
+ "name": "deploys",
1131
+ "topic": {"value": "Release train: v2.4.1 on Thursday"}
1132
+ }
1133
+ }
1134
+ }
1135
+ }
1136
+ ```
1137
+
1138
+ 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:
1139
+
1140
+ | `pack_error.code` | Service status | Retryable | Message |
1141
+ |---|---|---|---|
1142
+ | `connection_unauthorized` | 200 | no | built from the service's response |
1143
+ | `forbidden` | 200 | no | built from the service's response |
1144
+ | `not_found` | 200 | no | built from the service's response |
1145
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
1146
+ | `invalid_request` | 200 | no | built from the service's response |
1147
+
1148
+ <h3 id="slack-set-channel-description"><code>set-channel-description</code></h3>
1149
+
1150
+ **Slack: Set Channel Description.** Set a channel's description (its purpose).
1151
+
1152
+ Ref `io.b3os/slack/set-channel-description@1.0.0` · effect `write` · connection `token` · MCP tool `slack__set-channel-description`
1153
+
1154
+ **curl**
1155
+
1156
+ ```bash
1157
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1158
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1159
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
1160
+ -H "Content-Type: application/json" \
1161
+ -d '{
1162
+ "ref": "io.b3os/slack/set-channel-description@1",
1163
+ "input": {
1164
+ "channel": "C0123ABCDEF",
1165
+ "purpose": "Deploy notifications and release coordination"
1166
+ },
1167
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1168
+ }'
1169
+ ```
1170
+ **TypeScript**
1171
+
1172
+ ```ts
1173
+ import { B3OS } from "@b3os/sdk";
1174
+
1175
+ const b3os = new B3OS();
1176
+ const result = await b3os.actions.call({
1177
+ ref: "io.b3os/slack/set-channel-description@1",
1178
+ input: {
1179
+ channel: "C0123ABCDEF",
1180
+ purpose: "Deploy notifications and release coordination",
1181
+ },
1182
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1183
+ }, { idempotencyKey: crypto.randomUUID() });
1184
+ console.log(result.output);
1185
+ ```
1186
+ **Python**
1187
+
1188
+ ```python
1189
+ import uuid
1190
+ from b3os import B3OS
1191
+
1192
+ b3os = B3OS()
1193
+ result = b3os.actions.call({
1194
+ "ref": "io.b3os/slack/set-channel-description@1",
1195
+ "input": {
1196
+ "channel": "C0123ABCDEF",
1197
+ "purpose": "Deploy notifications and release coordination",
1198
+ },
1199
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1200
+ }, idempotency_key=str(uuid.uuid4()))
1201
+ print(result["output"])
1202
+ ```
1203
+ **MCP**
1204
+
1205
+ ```json
1206
+ {
1207
+ "method": "tools/call",
1208
+ "params": {
1209
+ "name": "slack__set-channel-description",
1210
+ "arguments": {
1211
+ "channel": "C0123ABCDEF",
1212
+ "purpose": "Deploy notifications and release coordination"
1213
+ }
1214
+ }
1215
+ }
1216
+ ```
1217
+
1218
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__set-channel-description` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1219
+
1220
+ Output, labeled `fixture`: Slack: Set Channel Description (documented response shape, example values). From the bundle's `fixtures/set-channel-description.json`, not a live call.
1221
+
1222
+ ```json
1223
+ {
1224
+ "success": true,
1225
+ "data": {
1226
+ "ret": {
1227
+ "ok": true,
1228
+ "channel": {
1229
+ "id": "C0123ABCDEF",
1230
+ "name": "deploys",
1231
+ "purpose": {"value": "Deploy notifications and release coordination"}
1232
+ }
1233
+ }
1234
+ }
1235
+ }
1236
+ ```
1237
+
1238
+ 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:
1239
+
1240
+ | `pack_error.code` | Service status | Retryable | Message |
1241
+ |---|---|---|---|
1242
+ | `connection_unauthorized` | 200 | no | built from the service's response |
1243
+ | `forbidden` | 200 | no | built from the service's response |
1244
+ | `not_found` | 200 | no | built from the service's response |
1245
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
1246
+ | `invalid_request` | 200 | no | built from the service's response |
1247
+
1248
+ <h3 id="slack-invite-user-to-channel"><code>invite-user-to-channel</code></h3>
1249
+
1250
+ **Slack: Invite User to Channel.** Invite up to 100 users (comma-separated user ids) to a channel the token's bot or user is in.
1251
+
1252
+ Ref `io.b3os/slack/invite-user-to-channel@1.0.0` · effect `write` · connection `token` · MCP tool `slack__invite-user-to-channel`
1253
+
1254
+ **curl**
1255
+
1256
+ ```bash
1257
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1258
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1259
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
1260
+ -H "Content-Type: application/json" \
1261
+ -d '{
1262
+ "ref": "io.b3os/slack/invite-user-to-channel@1",
1263
+ "input": {"channel": "C0123ABCDEF", "users": "U0MONA00001,U0HUBOT0001"},
1264
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1265
+ }'
1266
+ ```
1267
+ **TypeScript**
1268
+
1269
+ ```ts
1270
+ import { B3OS } from "@b3os/sdk";
1271
+
1272
+ const b3os = new B3OS();
1273
+ const result = await b3os.actions.call({
1274
+ ref: "io.b3os/slack/invite-user-to-channel@1",
1275
+ input: { channel: "C0123ABCDEF", users: "U0MONA00001,U0HUBOT0001" },
1276
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1277
+ }, { idempotencyKey: crypto.randomUUID() });
1278
+ console.log(result.output);
1279
+ ```
1280
+ **Python**
1281
+
1282
+ ```python
1283
+ import uuid
1284
+ from b3os import B3OS
1285
+
1286
+ b3os = B3OS()
1287
+ result = b3os.actions.call({
1288
+ "ref": "io.b3os/slack/invite-user-to-channel@1",
1289
+ "input": {"channel": "C0123ABCDEF", "users": "U0MONA00001,U0HUBOT0001"},
1290
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1291
+ }, idempotency_key=str(uuid.uuid4()))
1292
+ print(result["output"])
1293
+ ```
1294
+ **MCP**
1295
+
1296
+ ```json
1297
+ {
1298
+ "method": "tools/call",
1299
+ "params": {
1300
+ "name": "slack__invite-user-to-channel",
1301
+ "arguments": {"channel": "C0123ABCDEF", "users": "U0MONA00001,U0HUBOT0001"}
1302
+ }
1303
+ }
1304
+ ```
1305
+
1306
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__invite-user-to-channel` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1307
+
1308
+ Output, labeled `fixture`: Slack: Invite User to Channel (documented response shape, example values). From the bundle's `fixtures/invite-user-to-channel.json`, not a live call.
1309
+
1310
+ ```json
1311
+ {
1312
+ "success": true,
1313
+ "data": {
1314
+ "ret": {
1315
+ "ok": true,
1316
+ "channel": {"id": "C0123ABCDEF", "name": "deploys", "num_members": 16}
1317
+ }
1318
+ }
1319
+ }
1320
+ ```
1321
+
1322
+ 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:
1323
+
1324
+ | `pack_error.code` | Service status | Retryable | Message |
1325
+ |---|---|---|---|
1326
+ | `connection_unauthorized` | 200 | no | built from the service's response |
1327
+ | `forbidden` | 200 | no | built from the service's response |
1328
+ | `not_found` | 200 | no | built from the service's response |
1329
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
1330
+ | `invalid_request` | 200 | no | built from the service's response |
1331
+
1332
+ <h3 id="slack-kick-user"><code>kick-user</code></h3>
1333
+
1334
+ **Slack: Remove User from Channel.** Remove a user from a channel. They can rejoin a public channel unless they are invited again or the channel is private.
1335
+
1336
+ Ref `io.b3os/slack/kick-user@1.0.0` · effect `write` · connection `token` · MCP tool `slack__kick-user`
1337
+
1338
+ **curl**
1339
+
1340
+ ```bash
1341
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1342
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1343
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
1344
+ -H "Content-Type: application/json" \
1345
+ -d '{
1346
+ "ref": "io.b3os/slack/kick-user@1",
1347
+ "input": {"channel": "C0123ABCDEF", "user": "U0HUBOT0001"},
1348
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1349
+ }'
1350
+ ```
1351
+ **TypeScript**
1352
+
1353
+ ```ts
1354
+ import { B3OS } from "@b3os/sdk";
1355
+
1356
+ const b3os = new B3OS();
1357
+ const result = await b3os.actions.call({
1358
+ ref: "io.b3os/slack/kick-user@1",
1359
+ input: { channel: "C0123ABCDEF", user: "U0HUBOT0001" },
1360
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1361
+ }, { idempotencyKey: crypto.randomUUID() });
1362
+ console.log(result.output);
1363
+ ```
1364
+ **Python**
1365
+
1366
+ ```python
1367
+ import uuid
1368
+ from b3os import B3OS
1369
+
1370
+ b3os = B3OS()
1371
+ result = b3os.actions.call({
1372
+ "ref": "io.b3os/slack/kick-user@1",
1373
+ "input": {"channel": "C0123ABCDEF", "user": "U0HUBOT0001"},
1374
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1375
+ }, idempotency_key=str(uuid.uuid4()))
1376
+ print(result["output"])
1377
+ ```
1378
+ **MCP**
1379
+
1380
+ ```json
1381
+ {
1382
+ "method": "tools/call",
1383
+ "params": {
1384
+ "name": "slack__kick-user",
1385
+ "arguments": {"channel": "C0123ABCDEF", "user": "U0HUBOT0001"}
1386
+ }
1387
+ }
1388
+ ```
1389
+
1390
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__kick-user` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1391
+
1392
+ Output, labeled `fixture`: Slack: Remove User from Channel (documented response shape, example values). From the bundle's `fixtures/kick-user.json`, not a live call.
1393
+
1394
+ ```json
1395
+ {"success": true, "data": {"ret": {"ok": true}}}
1396
+ ```
1397
+
1398
+ 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:
1399
+
1400
+ | `pack_error.code` | Service status | Retryable | Message |
1401
+ |---|---|---|---|
1402
+ | `connection_unauthorized` | 200 | no | built from the service's response |
1403
+ | `forbidden` | 200 | no | built from the service's response |
1404
+ | `not_found` | 200 | no | built from the service's response |
1405
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
1406
+ | `invalid_request` | 200 | no | built from the service's response |
1407
+
1408
+ <h3 id="slack-list-members-in-channel"><code>list-members-in-channel</code></h3>
1409
+
1410
+ **Slack: List Members in Channel.** User ids of a channel's members, one page at a time (next_cursor in response_metadata). Resolve ids with get-user-info or list-users.
1411
+
1412
+ Ref `io.b3os/slack/list-members-in-channel@1.0.0` · effect `read` · connection `token` · MCP tool `slack__list-members-in-channel`
1413
+
1414
+ **curl**
1415
+
1416
+ ```bash
1417
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1418
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1419
+ -H "Content-Type: application/json" \
1420
+ -d '{
1421
+ "ref": "io.b3os/slack/list-members-in-channel@1",
1422
+ "input": {"channel": "C0123ABCDEF", "limit": 3},
1423
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1424
+ }'
1425
+ ```
1426
+ **TypeScript**
1427
+
1428
+ ```ts
1429
+ import { B3OS } from "@b3os/sdk";
1430
+
1431
+ const b3os = new B3OS();
1432
+ const result = await b3os.actions.call({
1433
+ ref: "io.b3os/slack/list-members-in-channel@1",
1434
+ input: { channel: "C0123ABCDEF", limit: 3 },
1435
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1436
+ });
1437
+ console.log(result.output);
1438
+ ```
1439
+ **Python**
1440
+
1441
+ ```python
1442
+ from b3os import B3OS
1443
+
1444
+ b3os = B3OS()
1445
+ result = b3os.actions.call({
1446
+ "ref": "io.b3os/slack/list-members-in-channel@1",
1447
+ "input": {"channel": "C0123ABCDEF", "limit": 3},
1448
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1449
+ })
1450
+ print(result["output"])
1451
+ ```
1452
+ **MCP**
1453
+
1454
+ ```json
1455
+ {
1456
+ "method": "tools/call",
1457
+ "params": {
1458
+ "name": "slack__list-members-in-channel",
1459
+ "arguments": {"channel": "C0123ABCDEF", "limit": 3}
1460
+ }
1461
+ }
1462
+ ```
1463
+
1464
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__list-members-in-channel` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1465
+
1466
+ Output, labeled `fixture`: Slack: List Members in Channel (documented response shape, example values). From the bundle's `fixtures/list-members-in-channel.json`, not a live call.
1467
+
1468
+ ```json
1469
+ {
1470
+ "success": true,
1471
+ "data": {
1472
+ "ret": {
1473
+ "ok": true,
1474
+ "members": ["U0MONA00001", "U0HUBOT0001", "U0BOTUSER1"],
1475
+ "response_metadata": {"next_cursor": ""}
1476
+ }
1477
+ }
1478
+ }
1479
+ ```
1480
+
1481
+ 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:
1482
+
1483
+ | `pack_error.code` | Service status | Retryable | Message |
1484
+ |---|---|---|---|
1485
+ | `connection_unauthorized` | 200 | no | built from the service's response |
1486
+ | `forbidden` | 200 | no | built from the service's response |
1487
+ | `not_found` | 200 | no | built from the service's response |
1488
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
1489
+ | `invalid_request` | 200 | no | built from the service's response |
1490
+
1491
+ <h3 id="slack-list-replies"><code>list-replies</code></h3>
1492
+
1493
+ **Slack: List Thread Replies.** The messages of a thread, parent first: user, text, ts and reactions. ts is the parent message's ts. has_more and response_metadata.next_cursor page long threads.
1494
+
1495
+ Ref `io.b3os/slack/list-replies@1.0.0` · effect `read` · connection `token` · MCP tool `slack__list-replies`
1496
+
1497
+ **curl**
1498
+
1499
+ ```bash
1500
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1501
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1502
+ -H "Content-Type: application/json" \
1503
+ -d '{
1504
+ "ref": "io.b3os/slack/list-replies@1",
1505
+ "input": {"channel": "C0123ABCDEF", "ts": "1730000000.000100"},
1506
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1507
+ }'
1508
+ ```
1509
+ **TypeScript**
1510
+
1511
+ ```ts
1512
+ import { B3OS } from "@b3os/sdk";
1513
+
1514
+ const b3os = new B3OS();
1515
+ const result = await b3os.actions.call({
1516
+ ref: "io.b3os/slack/list-replies@1",
1517
+ input: { channel: "C0123ABCDEF", ts: "1730000000.000100" },
1518
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1519
+ });
1520
+ console.log(result.output);
1521
+ ```
1522
+ **Python**
1523
+
1524
+ ```python
1525
+ from b3os import B3OS
1526
+
1527
+ b3os = B3OS()
1528
+ result = b3os.actions.call({
1529
+ "ref": "io.b3os/slack/list-replies@1",
1530
+ "input": {"channel": "C0123ABCDEF", "ts": "1730000000.000100"},
1531
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1532
+ })
1533
+ print(result["output"])
1534
+ ```
1535
+ **MCP**
1536
+
1537
+ ```json
1538
+ {
1539
+ "method": "tools/call",
1540
+ "params": {
1541
+ "name": "slack__list-replies",
1542
+ "arguments": {"channel": "C0123ABCDEF", "ts": "1730000000.000100"}
1543
+ }
1544
+ }
1545
+ ```
1546
+
1547
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__list-replies` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1548
+
1549
+ Output, labeled `fixture`: Slack: List Thread Replies (documented response shape, example values). From the bundle's `fixtures/list-replies.json`, not a live call.
1550
+
1551
+ ```json
1552
+ {
1553
+ "success": true,
1554
+ "data": {
1555
+ "ret": {
1556
+ "ok": true,
1557
+ "messages": [
1558
+ {
1559
+ "type": "message",
1560
+ "user": "U0BOTUSER1",
1561
+ "bot_id": "B0BOTID123",
1562
+ "app_id": "A0APPID1234",
1563
+ "text": "Deploy finished: *v2.4.0* is live.",
1564
+ "ts": "1730000000.000100",
1565
+ "team": "T0TEAM12345",
1566
+ "thread_ts": "1730000000.000100",
1567
+ "reply_count": 1
1568
+ },
1569
+ {
1570
+ "type": "message",
1571
+ "user": "U0MONA00001",
1572
+ "text": "Cart looks broken on mobile",
1573
+ "ts": "1730000030.000150",
1574
+ "thread_ts": "1730000000.000100"
1575
+ }
1576
+ ],
1577
+ "has_more": false,
1578
+ "response_metadata": {"next_cursor": ""}
1579
+ }
1580
+ }
1581
+ }
1582
+ ```
1583
+
1584
+ 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:
1585
+
1586
+ | `pack_error.code` | Service status | Retryable | Message |
1587
+ |---|---|---|---|
1588
+ | `connection_unauthorized` | 200 | no | built from the service's response |
1589
+ | `forbidden` | 200 | no | built from the service's response |
1590
+ | `not_found` | 200 | no | built from the service's response |
1591
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
1592
+ | `invalid_request` | 200 | no | built from the service's response |
1593
+
1594
+ <h3 id="slack-find-message"><code>find-message</code></h3>
1595
+
1596
+ **Slack: Find Message.** Search messages across the workspace with Slack's search syntax (in:#channel, from:@user, before:, after:, has:link). Needs a user token with search:read; bot tokens cannot search. Returns matches with channel, author, text, ts and permalink.
1597
+
1598
+ Ref `io.b3os/slack/find-message@1.0.0` · effect `read` · connection `token` · MCP tool `slack__find-message`
1599
+
1600
+ **curl**
1601
+
1602
+ ```bash
1603
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1604
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1605
+ -H "Content-Type: application/json" \
1606
+ -d '{
1607
+ "ref": "io.b3os/slack/find-message@1",
1608
+ "input": {"query": "in:#deploys rollback", "count": 1},
1609
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1610
+ }'
1611
+ ```
1612
+ **TypeScript**
1613
+
1614
+ ```ts
1615
+ import { B3OS } from "@b3os/sdk";
1616
+
1617
+ const b3os = new B3OS();
1618
+ const result = await b3os.actions.call({
1619
+ ref: "io.b3os/slack/find-message@1",
1620
+ input: { query: "in:#deploys rollback", count: 1 },
1621
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1622
+ });
1623
+ console.log(result.output);
1624
+ ```
1625
+ **Python**
1626
+
1627
+ ```python
1628
+ from b3os import B3OS
1629
+
1630
+ b3os = B3OS()
1631
+ result = b3os.actions.call({
1632
+ "ref": "io.b3os/slack/find-message@1",
1633
+ "input": {"query": "in:#deploys rollback", "count": 1},
1634
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1635
+ })
1636
+ print(result["output"])
1637
+ ```
1638
+ **MCP**
1639
+
1640
+ ```json
1641
+ {
1642
+ "method": "tools/call",
1643
+ "params": {
1644
+ "name": "slack__find-message",
1645
+ "arguments": {"query": "in:#deploys rollback", "count": 1}
1646
+ }
1647
+ }
1648
+ ```
1649
+
1650
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__find-message` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1651
+
1652
+ Output, labeled `fixture`: Slack: Find Message (documented response shape, example values). From the bundle's `fixtures/find-message.json`, not a live call.
1653
+
1654
+ ```json
1655
+ {
1656
+ "success": true,
1657
+ "data": {
1658
+ "ret": {
1659
+ "ok": true,
1660
+ "query": "in:#deploys rollback",
1661
+ "messages": {
1662
+ "total": 3,
1663
+ "paging": {"count": 1, "total": 3, "page": 1, "pages": 3},
1664
+ "matches": [
1665
+ {
1666
+ "iid": "a1b2c3",
1667
+ "type": "message",
1668
+ "channel": {"id": "C0123ABCDEF", "name": "deploys"},
1669
+ "user": "U0MONA00001",
1670
+ "username": "mona",
1671
+ "ts": "1729900000.000500",
1672
+ "text": "Rolled back v2.3.9",
1673
+ "permalink": "https://acme.slack.com/archives/C0123ABCDEF/p1729900000000500"
1674
+ }
1675
+ ]
1676
+ }
1677
+ }
1678
+ }
1679
+ }
1680
+ ```
1681
+
1682
+ 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:
1683
+
1684
+ | `pack_error.code` | Service status | Retryable | Message |
1685
+ |---|---|---|---|
1686
+ | `connection_unauthorized` | 200 | no | built from the service's response |
1687
+ | `forbidden` | 200 | no | built from the service's response |
1688
+ | `not_found` | 200 | no | built from the service's response |
1689
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
1690
+ | `invalid_request` | 200 | no | built from the service's response |
1691
+
1692
+ <h3 id="slack-find-user-by-email"><code>find-user-by-email</code></h3>
1693
+
1694
+ **Slack: Find User by Email.** Find a workspace member by email address: id, name, real name, display name, time zone and profile. Needs users:read.email.
1695
+
1696
+ Ref `io.b3os/slack/find-user-by-email@1.0.0` · effect `read` · connection `token` · MCP tool `slack__find-user-by-email`
1697
+
1698
+ **curl**
1699
+
1700
+ ```bash
1701
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1702
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1703
+ -H "Content-Type: application/json" \
1704
+ -d '{
1705
+ "ref": "io.b3os/slack/find-user-by-email@1",
1706
+ "input": {"email": "mona@acme.example"},
1707
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1708
+ }'
1709
+ ```
1710
+ **TypeScript**
1711
+
1712
+ ```ts
1713
+ import { B3OS } from "@b3os/sdk";
1714
+
1715
+ const b3os = new B3OS();
1716
+ const result = await b3os.actions.call({
1717
+ ref: "io.b3os/slack/find-user-by-email@1",
1718
+ input: { email: "mona@acme.example" },
1719
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1720
+ });
1721
+ console.log(result.output);
1722
+ ```
1723
+ **Python**
1724
+
1725
+ ```python
1726
+ from b3os import B3OS
1727
+
1728
+ b3os = B3OS()
1729
+ result = b3os.actions.call({
1730
+ "ref": "io.b3os/slack/find-user-by-email@1",
1731
+ "input": {"email": "mona@acme.example"},
1732
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1733
+ })
1734
+ print(result["output"])
1735
+ ```
1736
+ **MCP**
1737
+
1738
+ ```json
1739
+ {
1740
+ "method": "tools/call",
1741
+ "params": {
1742
+ "name": "slack__find-user-by-email",
1743
+ "arguments": {"email": "mona@acme.example"}
1744
+ }
1745
+ }
1746
+ ```
1747
+
1748
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__find-user-by-email` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1749
+
1750
+ Output, labeled `fixture`: Slack: Find User by Email (documented response shape, example values). From the bundle's `fixtures/find-user-by-email.json`, not a live call.
1751
+
1752
+ ```json
1753
+ {
1754
+ "success": true,
1755
+ "data": {
1756
+ "ret": {
1757
+ "ok": true,
1758
+ "user": {
1759
+ "id": "U0MONA00001",
1760
+ "team_id": "T0TEAM12345",
1761
+ "name": "mona",
1762
+ "real_name": "Mona Example",
1763
+ "tz": "America/Los_Angeles",
1764
+ "is_bot": false,
1765
+ "deleted": false,
1766
+ "profile": {
1767
+ "email": "mona@acme.example",
1768
+ "display_name": "mona",
1769
+ "real_name": "Mona Example",
1770
+ "title": "Staff Engineer"
1771
+ }
1772
+ }
1773
+ }
1774
+ }
1775
+ }
1776
+ ```
1777
+
1778
+ 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:
1779
+
1780
+ | `pack_error.code` | Service status | Retryable | Message |
1781
+ |---|---|---|---|
1782
+ | `connection_unauthorized` | 200 | no | built from the service's response |
1783
+ | `forbidden` | 200 | no | built from the service's response |
1784
+ | `not_found` | 200 | no | built from the service's response |
1785
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
1786
+ | `invalid_request` | 200 | no | built from the service's response |
1787
+
1788
+ <h3 id="slack-list-users"><code>list-users</code></h3>
1789
+
1790
+ **Slack: List Users.** Workspace members with id, name, real name, time zone, bot and deleted flags and profile, one page at a time (next_cursor in response_metadata).
1791
+
1792
+ Ref `io.b3os/slack/list-users@1.0.0` · effect `read` · connection `token` · MCP tool `slack__list-users`
1793
+
1794
+ **curl**
1795
+
1796
+ ```bash
1797
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1798
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1799
+ -H "Content-Type: application/json" \
1800
+ -d '{
1801
+ "ref": "io.b3os/slack/list-users@1",
1802
+ "input": {"limit": 1},
1803
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1804
+ }'
1805
+ ```
1806
+ **TypeScript**
1807
+
1808
+ ```ts
1809
+ import { B3OS } from "@b3os/sdk";
1810
+
1811
+ const b3os = new B3OS();
1812
+ const result = await b3os.actions.call({
1813
+ ref: "io.b3os/slack/list-users@1",
1814
+ input: { limit: 1 },
1815
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1816
+ });
1817
+ console.log(result.output);
1818
+ ```
1819
+ **Python**
1820
+
1821
+ ```python
1822
+ from b3os import B3OS
1823
+
1824
+ b3os = B3OS()
1825
+ result = b3os.actions.call({
1826
+ "ref": "io.b3os/slack/list-users@1",
1827
+ "input": {"limit": 1},
1828
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1829
+ })
1830
+ print(result["output"])
1831
+ ```
1832
+ **MCP**
1833
+
1834
+ ```json
1835
+ {
1836
+ "method": "tools/call",
1837
+ "params": {"name": "slack__list-users", "arguments": {"limit": 1}}
1838
+ }
1839
+ ```
1840
+
1841
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__list-users` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1842
+
1843
+ Output, labeled `fixture`: Slack: List Users (documented response shape, example values). From the bundle's `fixtures/list-users.json`, not a live call.
1844
+
1845
+ ```json
1846
+ {
1847
+ "success": true,
1848
+ "data": {
1849
+ "ret": {
1850
+ "ok": true,
1851
+ "members": [
1852
+ {
1853
+ "id": "U0MONA00001",
1854
+ "name": "mona",
1855
+ "real_name": "Mona Example",
1856
+ "tz": "America/Los_Angeles",
1857
+ "is_bot": false,
1858
+ "deleted": false,
1859
+ "profile": {"display_name": "mona", "title": "Staff Engineer"}
1860
+ }
1861
+ ],
1862
+ "response_metadata": {"next_cursor": "dXNlcjpVMEcxNkFCQ0Q="}
1863
+ }
1864
+ }
1865
+ }
1866
+ ```
1867
+
1868
+ 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:
1869
+
1870
+ | `pack_error.code` | Service status | Retryable | Message |
1871
+ |---|---|---|---|
1872
+ | `connection_unauthorized` | 200 | no | built from the service's response |
1873
+ | `forbidden` | 200 | no | built from the service's response |
1874
+ | `not_found` | 200 | no | built from the service's response |
1875
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
1876
+ | `invalid_request` | 200 | no | built from the service's response |
1877
+
1878
+ <h3 id="slack-get-current-user"><code>get-current-user</code></h3>
1879
+
1880
+ **Slack: Get Current User.** Who the token belongs to: workspace URL and name, user or bot name and their ids. A cheap way to check that a connection works.
1881
+
1882
+ Ref `io.b3os/slack/get-current-user@1.0.0` · effect `read` · connection `token` · MCP tool `slack__get-current-user`
1883
+
1884
+ **curl**
1885
+
1886
+ ```bash
1887
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1888
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1889
+ -H "Content-Type: application/json" \
1890
+ -d '{
1891
+ "ref": "io.b3os/slack/get-current-user@1",
1892
+ "input": {},
1893
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1894
+ }'
1895
+ ```
1896
+ **TypeScript**
1897
+
1898
+ ```ts
1899
+ import { B3OS } from "@b3os/sdk";
1900
+
1901
+ const b3os = new B3OS();
1902
+ const result = await b3os.actions.call({
1903
+ ref: "io.b3os/slack/get-current-user@1",
1904
+ input: {},
1905
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1906
+ });
1907
+ console.log(result.output);
1908
+ ```
1909
+ **Python**
1910
+
1911
+ ```python
1912
+ from b3os import B3OS
1913
+
1914
+ b3os = B3OS()
1915
+ result = b3os.actions.call({
1916
+ "ref": "io.b3os/slack/get-current-user@1",
1917
+ "input": {},
1918
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1919
+ })
1920
+ print(result["output"])
1921
+ ```
1922
+ **MCP**
1923
+
1924
+ ```json
1925
+ {
1926
+ "method": "tools/call",
1927
+ "params": {"name": "slack__get-current-user", "arguments": {}}
1928
+ }
1929
+ ```
1930
+
1931
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__get-current-user` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1932
+
1933
+ Output, labeled `fixture`: Slack: Get Current User (documented response shape, example values). From the bundle's `fixtures/get-current-user.json`, not a live call.
1934
+
1935
+ ```json
1936
+ {
1937
+ "success": true,
1938
+ "data": {
1939
+ "ret": {
1940
+ "ok": true,
1941
+ "url": "https://acme.slack.com/",
1942
+ "team": "Acme",
1943
+ "user": "deploybot",
1944
+ "team_id": "T0TEAM12345",
1945
+ "user_id": "U0BOTUSER1"
1946
+ }
1947
+ }
1948
+ }
1949
+ ```
1950
+
1951
+ 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:
1952
+
1953
+ | `pack_error.code` | Service status | Retryable | Message |
1954
+ |---|---|---|---|
1955
+ | `connection_unauthorized` | 200 | no | built from the service's response |
1956
+ | `forbidden` | 200 | no | built from the service's response |
1957
+ | `not_found` | 200 | no | built from the service's response |
1958
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
1959
+ | `invalid_request` | 200 | no | built from the service's response |
1960
+
1961
+ <h3 id="slack-get-file"><code>get-file</code></h3>
1962
+
1963
+ **Slack: Get File Info.** Metadata of one uploaded file: name, title, type, size, uploader, channels it was shared in and permalink. Downloading the bytes needs the url_private link with the same token, which this action does not fetch.
1964
+
1965
+ Ref `io.b3os/slack/get-file@1.0.0` · effect `read` · connection `token` · MCP tool `slack__get-file`
1966
+
1967
+ **curl**
1968
+
1969
+ ```bash
1970
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1971
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1972
+ -H "Content-Type: application/json" \
1973
+ -d '{
1974
+ "ref": "io.b3os/slack/get-file@1",
1975
+ "input": {"file": "F0FILE00001"},
1976
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1977
+ }'
1978
+ ```
1979
+ **TypeScript**
1980
+
1981
+ ```ts
1982
+ import { B3OS } from "@b3os/sdk";
1983
+
1984
+ const b3os = new B3OS();
1985
+ const result = await b3os.actions.call({
1986
+ ref: "io.b3os/slack/get-file@1",
1987
+ input: { file: "F0FILE00001" },
1988
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1989
+ });
1990
+ console.log(result.output);
1991
+ ```
1992
+ **Python**
1993
+
1994
+ ```python
1995
+ from b3os import B3OS
1996
+
1997
+ b3os = B3OS()
1998
+ result = b3os.actions.call({
1999
+ "ref": "io.b3os/slack/get-file@1",
2000
+ "input": {"file": "F0FILE00001"},
2001
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
2002
+ })
2003
+ print(result["output"])
2004
+ ```
2005
+ **MCP**
2006
+
2007
+ ```json
2008
+ {
2009
+ "method": "tools/call",
2010
+ "params": {"name": "slack__get-file", "arguments": {"file": "F0FILE00001"}}
2011
+ }
2012
+ ```
2013
+
2014
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__get-file` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
2015
+
2016
+ Output, labeled `fixture`: Slack: Get File Info (documented response shape, example values). From the bundle's `fixtures/get-file.json`, not a live call.
2017
+
2018
+ ```json
2019
+ {
2020
+ "success": true,
2021
+ "data": {
2022
+ "ret": {
2023
+ "ok": true,
2024
+ "file": {
2025
+ "id": "F0FILE00001",
2026
+ "name": "release-notes.md",
2027
+ "title": "Release notes",
2028
+ "mimetype": "text/markdown",
2029
+ "filetype": "markdown",
2030
+ "size": 2048,
2031
+ "user": "U0MONA00001",
2032
+ "created": 1730000200,
2033
+ "channels": ["C0123ABCDEF"],
2034
+ "permalink": "https://acme.slack.com/files/U0MONA00001/F0FILE00001/release-notes.md"
2035
+ }
2036
+ }
2037
+ }
2038
+ }
2039
+ ```
2040
+
2041
+ 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:
2042
+
2043
+ | `pack_error.code` | Service status | Retryable | Message |
2044
+ |---|---|---|---|
2045
+ | `connection_unauthorized` | 200 | no | built from the service's response |
2046
+ | `forbidden` | 200 | no | built from the service's response |
2047
+ | `not_found` | 200 | no | built from the service's response |
2048
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
2049
+ | `invalid_request` | 200 | no | built from the service's response |
2050
+
2051
+ <h3 id="slack-list-files"><code>list-files</code></h3>
2052
+
2053
+ **Slack: List Files.** Files in the workspace, newest first, optionally in one channel, by one user or of given types (spaces, snippets, images, gdocs, zips, pdfs). Paged with count and page.
2054
+
2055
+ Ref `io.b3os/slack/list-files@1.0.0` · effect `read` · connection `token` · MCP tool `slack__list-files`
2056
+
2057
+ **curl**
2058
+
2059
+ ```bash
2060
+ curl -s https://beta-api.b3os.org/v1/actions/call \
2061
+ -H "Authorization: Bearer $B3OS_API_KEY" \
2062
+ -H "Content-Type: application/json" \
2063
+ -d '{
2064
+ "ref": "io.b3os/slack/list-files@1",
2065
+ "input": {"channel": "C0123ABCDEF", "count": 1},
2066
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
2067
+ }'
2068
+ ```
2069
+ **TypeScript**
2070
+
2071
+ ```ts
2072
+ import { B3OS } from "@b3os/sdk";
2073
+
2074
+ const b3os = new B3OS();
2075
+ const result = await b3os.actions.call({
2076
+ ref: "io.b3os/slack/list-files@1",
2077
+ input: { channel: "C0123ABCDEF", count: 1 },
2078
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
2079
+ });
2080
+ console.log(result.output);
2081
+ ```
2082
+ **Python**
2083
+
2084
+ ```python
2085
+ from b3os import B3OS
2086
+
2087
+ b3os = B3OS()
2088
+ result = b3os.actions.call({
2089
+ "ref": "io.b3os/slack/list-files@1",
2090
+ "input": {"channel": "C0123ABCDEF", "count": 1},
2091
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
2092
+ })
2093
+ print(result["output"])
2094
+ ```
2095
+ **MCP**
2096
+
2097
+ ```json
2098
+ {
2099
+ "method": "tools/call",
2100
+ "params": {
2101
+ "name": "slack__list-files",
2102
+ "arguments": {"channel": "C0123ABCDEF", "count": 1}
2103
+ }
2104
+ }
2105
+ ```
2106
+
2107
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__list-files` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
2108
+
2109
+ Output, labeled `fixture`: Slack: List Files (documented response shape, example values). From the bundle's `fixtures/list-files.json`, not a live call.
2110
+
2111
+ ```json
2112
+ {
2113
+ "success": true,
2114
+ "data": {
2115
+ "ret": {
2116
+ "ok": true,
2117
+ "files": [
2118
+ {
2119
+ "id": "F0FILE00001",
2120
+ "name": "release-notes.md",
2121
+ "title": "Release notes",
2122
+ "filetype": "markdown",
2123
+ "size": 2048,
2124
+ "user": "U0MONA00001",
2125
+ "created": 1730000200
2126
+ }
2127
+ ],
2128
+ "paging": {"count": 1, "total": 4, "page": 1, "pages": 4}
2129
+ }
2130
+ }
2131
+ }
2132
+ ```
2133
+
2134
+ 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:
2135
+
2136
+ | `pack_error.code` | Service status | Retryable | Message |
2137
+ |---|---|---|---|
2138
+ | `connection_unauthorized` | 200 | no | built from the service's response |
2139
+ | `forbidden` | 200 | no | built from the service's response |
2140
+ | `not_found` | 200 | no | built from the service's response |
2141
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
2142
+ | `invalid_request` | 200 | no | built from the service's response |
2143
+
2144
+ <h3 id="slack-delete-file"><code>delete-file</code></h3>
2145
+
2146
+ **Slack: Delete File.** Delete an uploaded file. Cannot be undone.
2147
+
2148
+ Ref `io.b3os/slack/delete-file@1.0.0` · effect `irreversible` · connection `token` · MCP tool `slack__delete-file`
2149
+
2150
+ **curl**
2151
+
2152
+ ```bash
2153
+ curl -s https://beta-api.b3os.org/v1/actions/call \
2154
+ -H "Authorization: Bearer $B3OS_API_KEY" \
2155
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
2156
+ -H "Content-Type: application/json" \
2157
+ -d '{
2158
+ "ref": "io.b3os/slack/delete-file@1",
2159
+ "input": {"file": "F0FILE00001"},
2160
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
2161
+ }'
2162
+ ```
2163
+ **TypeScript**
2164
+
2165
+ ```ts
2166
+ import { B3OS } from "@b3os/sdk";
2167
+
2168
+ const b3os = new B3OS();
2169
+ const result = await b3os.actions.call({
2170
+ ref: "io.b3os/slack/delete-file@1",
2171
+ input: { file: "F0FILE00001" },
2172
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
2173
+ }, { idempotencyKey: crypto.randomUUID() });
2174
+ console.log(result.output);
2175
+ ```
2176
+ **Python**
2177
+
2178
+ ```python
2179
+ import uuid
2180
+ from b3os import B3OS
2181
+
2182
+ b3os = B3OS()
2183
+ result = b3os.actions.call({
2184
+ "ref": "io.b3os/slack/delete-file@1",
2185
+ "input": {"file": "F0FILE00001"},
2186
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
2187
+ }, idempotency_key=str(uuid.uuid4()))
2188
+ print(result["output"])
2189
+ ```
2190
+ **MCP**
2191
+
2192
+ ```json
2193
+ {
2194
+ "method": "tools/call",
2195
+ "params": {"name": "slack__delete-file", "arguments": {"file": "F0FILE00001"}}
2196
+ }
2197
+ ```
2198
+
2199
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__delete-file` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
2200
+
2201
+ Output, labeled `fixture`: Slack: Delete File (documented response shape, example values). From the bundle's `fixtures/delete-file.json`, not a live call.
2202
+
2203
+ ```json
2204
+ {"success": true, "data": {"ret": {"ok": true}}}
2205
+ ```
2206
+
2207
+ 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:
2208
+
2209
+ | `pack_error.code` | Service status | Retryable | Message |
2210
+ |---|---|---|---|
2211
+ | `connection_unauthorized` | 200 | no | built from the service's response |
2212
+ | `forbidden` | 200 | no | built from the service's response |
2213
+ | `not_found` | 200 | no | built from the service's response |
2214
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
2215
+ | `invalid_request` | 200 | no | built from the service's response |
2216
+
2217
+ <h3 id="slack-create-reminder"><code>create-reminder</code></h3>
2218
+
2219
+ **Slack: Create Reminder.** Create a Slackbot reminder for the token's user (or another user): time is a Unix timestamp, a number of seconds from now, or English like in 15 minutes or every Thursday. Needs a user token with reminders:write.
2220
+
2221
+ Ref `io.b3os/slack/create-reminder@1.0.0` · effect `write` · connection `token` · MCP tool `slack__create-reminder`
2222
+
2223
+ **curl**
2224
+
2225
+ ```bash
2226
+ curl -s https://beta-api.b3os.org/v1/actions/call \
2227
+ -H "Authorization: Bearer $B3OS_API_KEY" \
2228
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
2229
+ -H "Content-Type: application/json" \
2230
+ -d '{
2231
+ "ref": "io.b3os/slack/create-reminder@1",
2232
+ "input": {"text": "Check the deploy dashboard", "time": "in 15 minutes"},
2233
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
2234
+ }'
2235
+ ```
2236
+ **TypeScript**
2237
+
2238
+ ```ts
2239
+ import { B3OS } from "@b3os/sdk";
2240
+
2241
+ const b3os = new B3OS();
2242
+ const result = await b3os.actions.call({
2243
+ ref: "io.b3os/slack/create-reminder@1",
2244
+ input: { text: "Check the deploy dashboard", time: "in 15 minutes" },
2245
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
2246
+ }, { idempotencyKey: crypto.randomUUID() });
2247
+ console.log(result.output);
2248
+ ```
2249
+ **Python**
2250
+
2251
+ ```python
2252
+ import uuid
2253
+ from b3os import B3OS
2254
+
2255
+ b3os = B3OS()
2256
+ result = b3os.actions.call({
2257
+ "ref": "io.b3os/slack/create-reminder@1",
2258
+ "input": {"text": "Check the deploy dashboard", "time": "in 15 minutes"},
2259
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
2260
+ }, idempotency_key=str(uuid.uuid4()))
2261
+ print(result["output"])
2262
+ ```
2263
+ **MCP**
2264
+
2265
+ ```json
2266
+ {
2267
+ "method": "tools/call",
2268
+ "params": {
2269
+ "name": "slack__create-reminder",
2270
+ "arguments": {"text": "Check the deploy dashboard", "time": "in 15 minutes"}
2271
+ }
2272
+ }
2273
+ ```
2274
+
2275
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__create-reminder` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
2276
+
2277
+ Output, labeled `fixture`: Slack: Create Reminder (documented response shape, example values). From the bundle's `fixtures/create-reminder.json`, not a live call.
2278
+
2279
+ ```json
2280
+ {
2281
+ "success": true,
2282
+ "data": {
2283
+ "ret": {
2284
+ "ok": true,
2285
+ "reminder": {
2286
+ "id": "Rm0REMINDER1",
2287
+ "creator": "U0MONA00001",
2288
+ "user": "U0MONA00001",
2289
+ "text": "Check the deploy dashboard",
2290
+ "recurring": false,
2291
+ "time": 1730001900,
2292
+ "complete_ts": 0
2293
+ }
2294
+ }
2295
+ }
2296
+ }
2297
+ ```
2298
+
2299
+ 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:
2300
+
2301
+ | `pack_error.code` | Service status | Retryable | Message |
2302
+ |---|---|---|---|
2303
+ | `connection_unauthorized` | 200 | no | built from the service's response |
2304
+ | `forbidden` | 200 | no | built from the service's response |
2305
+ | `not_found` | 200 | no | built from the service's response |
2306
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
2307
+ | `invalid_request` | 200 | no | built from the service's response |
2308
+
2309
+ <h3 id="slack-set-status"><code>set-status</code></h3>
2310
+
2311
+ **Slack: Set Status.** Set the token user's status text, emoji (:palm_tree:) and optional expiry (Unix seconds; 0 keeps it). An empty status_text clears the status. Needs a user token with users.profile:write.
2312
+
2313
+ Ref `io.b3os/slack/set-status@1.0.0` · effect `write` · connection `token` · MCP tool `slack__set-status`
2314
+
2315
+ **curl**
2316
+
2317
+ ```bash
2318
+ curl -s https://beta-api.b3os.org/v1/actions/call \
2319
+ -H "Authorization: Bearer $B3OS_API_KEY" \
2320
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
2321
+ -H "Content-Type: application/json" \
2322
+ -d '{
2323
+ "ref": "io.b3os/slack/set-status@1",
2324
+ "input": {
2325
+ "status_text": "On call",
2326
+ "status_emoji": ":pager:",
2327
+ "status_expiration": 1730073600
2328
+ },
2329
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
2330
+ }'
2331
+ ```
2332
+ **TypeScript**
2333
+
2334
+ ```ts
2335
+ import { B3OS } from "@b3os/sdk";
2336
+
2337
+ const b3os = new B3OS();
2338
+ const result = await b3os.actions.call({
2339
+ ref: "io.b3os/slack/set-status@1",
2340
+ input: {
2341
+ status_text: "On call",
2342
+ status_emoji: ":pager:",
2343
+ status_expiration: 1730073600,
2344
+ },
2345
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
2346
+ }, { idempotencyKey: crypto.randomUUID() });
2347
+ console.log(result.output);
2348
+ ```
2349
+ **Python**
2350
+
2351
+ ```python
2352
+ import uuid
2353
+ from b3os import B3OS
2354
+
2355
+ b3os = B3OS()
2356
+ result = b3os.actions.call({
2357
+ "ref": "io.b3os/slack/set-status@1",
2358
+ "input": {
2359
+ "status_text": "On call",
2360
+ "status_emoji": ":pager:",
2361
+ "status_expiration": 1730073600,
2362
+ },
2363
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
2364
+ }, idempotency_key=str(uuid.uuid4()))
2365
+ print(result["output"])
2366
+ ```
2367
+ **MCP**
2368
+
2369
+ ```json
2370
+ {
2371
+ "method": "tools/call",
2372
+ "params": {
2373
+ "name": "slack__set-status",
2374
+ "arguments": {
2375
+ "status_text": "On call",
2376
+ "status_emoji": ":pager:",
2377
+ "status_expiration": 1730073600
2378
+ }
2379
+ }
2380
+ }
2381
+ ```
2382
+
2383
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__set-status` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
2384
+
2385
+ Output, labeled `fixture`: Slack: Set Status (documented response shape, example values). From the bundle's `fixtures/set-status.json`, not a live call.
2386
+
2387
+ ```json
2388
+ {
2389
+ "success": true,
2390
+ "data": {
2391
+ "ret": {
2392
+ "ok": true,
2393
+ "profile": {
2394
+ "status_text": "On call",
2395
+ "status_emoji": ":pager:",
2396
+ "status_expiration": 1730073600,
2397
+ "display_name": "mona"
2398
+ }
2399
+ }
2400
+ }
2401
+ }
2402
+ ```
2403
+
2404
+ 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:
2405
+
2406
+ | `pack_error.code` | Service status | Retryable | Message |
2407
+ |---|---|---|---|
2408
+ | `connection_unauthorized` | 200 | no | built from the service's response |
2409
+ | `forbidden` | 200 | no | built from the service's response |
2410
+ | `not_found` | 200 | no | built from the service's response |
2411
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
2412
+ | `invalid_request` | 200 | no | built from the service's response |
2413
+
2414
+ <h3 id="slack-list-group-members"><code>list-group-members</code></h3>
2415
+
2416
+ **Slack: List Group Members.** User ids in a user group (an @handle such as @oncall). Needs usergroups:read.
2417
+
2418
+ Ref `io.b3os/slack/list-group-members@1.0.0` · effect `read` · connection `token` · MCP tool `slack__list-group-members`
2419
+
2420
+ **curl**
2421
+
2422
+ ```bash
2423
+ curl -s https://beta-api.b3os.org/v1/actions/call \
2424
+ -H "Authorization: Bearer $B3OS_API_KEY" \
2425
+ -H "Content-Type: application/json" \
2426
+ -d '{
2427
+ "ref": "io.b3os/slack/list-group-members@1",
2428
+ "input": {"usergroup": "S0ONCALL001"},
2429
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
2430
+ }'
2431
+ ```
2432
+ **TypeScript**
2433
+
2434
+ ```ts
2435
+ import { B3OS } from "@b3os/sdk";
2436
+
2437
+ const b3os = new B3OS();
2438
+ const result = await b3os.actions.call({
2439
+ ref: "io.b3os/slack/list-group-members@1",
2440
+ input: { usergroup: "S0ONCALL001" },
2441
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
2442
+ });
2443
+ console.log(result.output);
2444
+ ```
2445
+ **Python**
2446
+
2447
+ ```python
2448
+ from b3os import B3OS
2449
+
2450
+ b3os = B3OS()
2451
+ result = b3os.actions.call({
2452
+ "ref": "io.b3os/slack/list-group-members@1",
2453
+ "input": {"usergroup": "S0ONCALL001"},
2454
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
2455
+ })
2456
+ print(result["output"])
2457
+ ```
2458
+ **MCP**
2459
+
2460
+ ```json
2461
+ {
2462
+ "method": "tools/call",
2463
+ "params": {
2464
+ "name": "slack__list-group-members",
2465
+ "arguments": {"usergroup": "S0ONCALL001"}
2466
+ }
2467
+ }
2468
+ ```
2469
+
2470
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__list-group-members` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
2471
+
2472
+ Output, labeled `fixture`: Slack: List Group Members (documented response shape, example values). From the bundle's `fixtures/list-group-members.json`, not a live call.
2473
+
2474
+ ```json
2475
+ {
2476
+ "success": true,
2477
+ "data": {"ret": {"ok": true, "users": ["U0MONA00001", "U0HUBOT0001"]}}
2478
+ }
2479
+ ```
2480
+
2481
+ 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:
2482
+
2483
+ | `pack_error.code` | Service status | Retryable | Message |
2484
+ |---|---|---|---|
2485
+ | `connection_unauthorized` | 200 | no | built from the service's response |
2486
+ | `forbidden` | 200 | no | built from the service's response |
2487
+ | `not_found` | 200 | no | built from the service's response |
2488
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
2489
+ | `invalid_request` | 200 | no | built from the service's response |
2490
+
2491
+ <h3 id="slack-update-group-members"><code>update-group-members</code></h3>
2492
+
2493
+ **Slack: Update Group Members.** Replace the members of a user group with the given user ids (comma-separated), for example to rotate @oncall. Needs usergroups:write.
2494
+
2495
+ Ref `io.b3os/slack/update-group-members@1.0.0` · effect `write` · connection `token` · MCP tool `slack__update-group-members`
2496
+
2497
+ **curl**
2498
+
2499
+ ```bash
2500
+ curl -s https://beta-api.b3os.org/v1/actions/call \
2501
+ -H "Authorization: Bearer $B3OS_API_KEY" \
2502
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
2503
+ -H "Content-Type: application/json" \
2504
+ -d '{
2505
+ "ref": "io.b3os/slack/update-group-members@1",
2506
+ "input": {"usergroup": "S0ONCALL001", "users": "U0HUBOT0001"},
2507
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
2508
+ }'
2509
+ ```
2510
+ **TypeScript**
2511
+
2512
+ ```ts
2513
+ import { B3OS } from "@b3os/sdk";
2514
+
2515
+ const b3os = new B3OS();
2516
+ const result = await b3os.actions.call({
2517
+ ref: "io.b3os/slack/update-group-members@1",
2518
+ input: { usergroup: "S0ONCALL001", users: "U0HUBOT0001" },
2519
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
2520
+ }, { idempotencyKey: crypto.randomUUID() });
2521
+ console.log(result.output);
2522
+ ```
2523
+ **Python**
2524
+
2525
+ ```python
2526
+ import uuid
2527
+ from b3os import B3OS
2528
+
2529
+ b3os = B3OS()
2530
+ result = b3os.actions.call({
2531
+ "ref": "io.b3os/slack/update-group-members@1",
2532
+ "input": {"usergroup": "S0ONCALL001", "users": "U0HUBOT0001"},
2533
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
2534
+ }, idempotency_key=str(uuid.uuid4()))
2535
+ print(result["output"])
2536
+ ```
2537
+ **MCP**
2538
+
2539
+ ```json
2540
+ {
2541
+ "method": "tools/call",
2542
+ "params": {
2543
+ "name": "slack__update-group-members",
2544
+ "arguments": {"usergroup": "S0ONCALL001", "users": "U0HUBOT0001"}
2545
+ }
2546
+ }
2547
+ ```
2548
+
2549
+ Expose the pack as tools with `--packs slack` on the local server or `?packs=slack` on the remote URL, and the agent calls `slack__update-group-members` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
2550
+
2551
+ Output, labeled `fixture`: Slack: Update Group Members (documented response shape, example values). From the bundle's `fixtures/update-group-members.json`, not a live call.
2552
+
2553
+ ```json
2554
+ {
2555
+ "success": true,
2556
+ "data": {
2557
+ "ret": {
2558
+ "ok": true,
2559
+ "usergroup": {
2560
+ "id": "S0ONCALL001",
2561
+ "handle": "oncall",
2562
+ "name": "On call",
2563
+ "users": ["U0HUBOT0001"],
2564
+ "user_count": 1
2565
+ }
2566
+ }
2567
+ }
2568
+ }
2569
+ ```
2570
+
2571
+ 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:
2572
+
2573
+ | `pack_error.code` | Service status | Retryable | Message |
2574
+ |---|---|---|---|
2575
+ | `connection_unauthorized` | 200 | no | built from the service's response |
2576
+ | `forbidden` | 200 | no | built from the service's response |
2577
+ | `not_found` | 200 | no | built from the service's response |
2578
+ | `rate_limited` | 429 | yes | Slack rate limit reached; retry after the Retry-After header. |
2579
+ | `invalid_request` | 200 | no | built from the service's response |
2580
+
2581
+ ## Triggers
2582
+
2583
+ <h3 id="slack-trigger-event"><code>event</code> (trigger)</h3>
2584
+
2585
+ **Slack event.** Fires on Slack Events API events from your own Slack app (messages, app mentions, reactions, channel and member changes, ...). Set the app's Event Subscriptions request URL to this subscription's URL (Slack's url_verification challenge is answered automatically) and paste the app's Signing Secret when you create the subscription. Every delivery's X-Slack-Signature is verified and must be at most 5 minutes old; Slack's retries of one event emit it once.
2586
+
2587
+ Ref `io.b3os/slack/event@1.0.0` · webhook, signature scheme `slack` with a signing secret you bind as `webhook_secret` · connection `webhook_secret`
2588
+
2589
+ | `with` key | Required | Description |
2590
+ |---|---|---|
2591
+ | `event_types` | no | Inner event types to emit, for example app_mention, message or reaction_added, or * for all. Default `["*"]`. |
2592
+
2593
+ In a routine:
2594
+
2595
+ ```yaml
2596
+ triggers:
2597
+ - type: action
2598
+ id: event
2599
+ uses: io.b3os/slack/event@1
2600
+ with:
2601
+ event_types:
2602
+ - app_mention
2603
+ - message
2604
+ connections:
2605
+ webhook_secret: conn_01m5t6cbgdjs1ketgcqwa2sne8
2606
+ ```
2607
+
2608
+ Event, labeled `fixture`: the recorded delivery in fixtures/event-app-mention.json (Slack event (delivery signed with a throwaway test secret)). A routine reads it as `trigger.data`; its fields are `event_id`, `team_id`, `event_time`, `type`, `channel`, `user`, `text`, `ts`, `event`.
2609
+
2610
+ ```json
2611
+ {
2612
+ "event_id": "Ev0123ABCDEF",
2613
+ "team_id": "T0123ABCD",
2614
+ "event_time": 1792929600,
2615
+ "type": "app_mention",
2616
+ "channel": "C0123ABCD",
2617
+ "user": "U0123ABCD",
2618
+ "text": "<@U0BOT1234> what is the deploy status?",
2619
+ "ts": "1792929600.000200",
2620
+ "event": {
2621
+ "type": "app_mention",
2622
+ "user": "U0123ABCD",
2623
+ "text": "<@U0BOT1234> what is the deploy status?",
2624
+ "ts": "1792929600.000200",
2625
+ "channel": "C0123ABCD",
2626
+ "event_ts": "1792929600.000200"
2627
+ }
2628
+ }
2629
+ ```