@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,737 @@
1
+ # Airtable
2
+
3
+ > The io.b3os/airtable pack: 7 actions with call snippets, fixture outputs, connection setup and error codes, generated from version 1.0.0.
4
+
5
+ Source: https://docs.beta.b3os.org/actions/catalog/airtable.md
6
+
7
+ <a id="airtable"></a>
8
+
9
+ `io.b3os/airtable` 1.0.0 · `databases`, `productivity` · MIT
10
+
11
+ Read and write Airtable bases with your own personal access token: list bases and their table schemas, list and filter records with formulas and views, get one record, and create, update or delete up to 10 records per call. The token needs data.records:read and write, and schema.bases:read for the schema actions, on the bases you grant it.
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`: Airtable personal access token.
18
+
19
+ A personal access token (pat...) from airtable.com/create/tokens with the scopes and bases the actions need, or an OAuth access token of your own Airtable integration.
20
+
21
+ How to get one: [airtable.com](https://airtable.com/developers/web/guides/personal-access-tokens).
22
+
23
+ The credential is sent only to `api.airtable.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: `api.airtable.com`.
28
+
29
+ ## Actions
30
+
31
+ | Action | Effect | MCP tool | Title |
32
+ |---|---|---|---|
33
+ | [`list-bases`](https://docs.beta.b3os.org/actions/catalog/airtable#airtable-list-bases) | read | `airtable__list-bases` | List bases |
34
+ | [`get-base-schema`](https://docs.beta.b3os.org/actions/catalog/airtable#airtable-get-base-schema) | read | `airtable__get-base-schema` | Get base schema |
35
+ | [`list-records`](https://docs.beta.b3os.org/actions/catalog/airtable#airtable-list-records) | read | `airtable__list-records` | List records |
36
+ | [`get-record`](https://docs.beta.b3os.org/actions/catalog/airtable#airtable-get-record) | read | `airtable__get-record` | Get record |
37
+ | [`create-records`](https://docs.beta.b3os.org/actions/catalog/airtable#airtable-create-records) | write | `airtable__create-records` | Create records |
38
+ | [`update-records`](https://docs.beta.b3os.org/actions/catalog/airtable#airtable-update-records) | write | `airtable__update-records` | Update records |
39
+ | [`delete-records`](https://docs.beta.b3os.org/actions/catalog/airtable#airtable-delete-records) | irreversible | `airtable__delete-records` | Delete records |
40
+
41
+ <h3 id="airtable-list-bases"><code>list-bases</code></h3>
42
+
43
+ **List bases.** The bases the token can access, with id, name and permission level. Page with offset.
44
+
45
+ Ref `io.b3os/airtable/list-bases@1.0.0` · effect `read` · connection `token` · MCP tool `airtable__list-bases`
46
+
47
+ **curl**
48
+
49
+ ```bash
50
+ curl -s https://beta-api.b3os.org/v1/actions/call \
51
+ -H "Authorization: Bearer $B3OS_API_KEY" \
52
+ -H "Content-Type: application/json" \
53
+ -d '{
54
+ "ref": "io.b3os/airtable/list-bases@1",
55
+ "input": {},
56
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
57
+ }'
58
+ ```
59
+ **TypeScript**
60
+
61
+ ```ts
62
+ import { B3OS } from "@b3os/sdk";
63
+
64
+ const b3os = new B3OS();
65
+ const result = await b3os.actions.call({
66
+ ref: "io.b3os/airtable/list-bases@1",
67
+ input: {},
68
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
69
+ });
70
+ console.log(result.output);
71
+ ```
72
+ **Python**
73
+
74
+ ```python
75
+ from b3os import B3OS
76
+
77
+ b3os = B3OS()
78
+ result = b3os.actions.call({
79
+ "ref": "io.b3os/airtable/list-bases@1",
80
+ "input": {},
81
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
82
+ })
83
+ print(result["output"])
84
+ ```
85
+ **MCP**
86
+
87
+ ```json
88
+ {
89
+ "method": "tools/call",
90
+ "params": {"name": "airtable__list-bases", "arguments": {}}
91
+ }
92
+ ```
93
+
94
+ Expose the pack as tools with `--packs airtable` on the local server or `?packs=airtable` on the remote URL, and the agent calls `airtable__list-bases` 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`.
95
+
96
+ Output, labeled `fixture`: List bases (documented response shape, example values). From the bundle's `fixtures/list-bases.json`, not a live call.
97
+
98
+ ```json
99
+ {
100
+ "bases": [
101
+ {
102
+ "id": "appLkNDICXNqxSDhG",
103
+ "name": "Launch planning",
104
+ "permission_level": "create"
105
+ },
106
+ {
107
+ "id": "appSW9R5uCNmRmfl6",
108
+ "name": "Customer feedback",
109
+ "permission_level": "read"
110
+ }
111
+ ],
112
+ "offset": null
113
+ }
114
+ ```
115
+
116
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
117
+
118
+ | `pack_error.code` | Service status | Retryable | Message |
119
+ |---|---|---|---|
120
+ | `not_found` | 404 | no | Base, table or record not found, or the token cannot access it. |
121
+ | `connection_unauthorized` | 401 | no | Airtable rejected the personal access token. |
122
+ | `forbidden` | 403 | no | The token lacks the scope or base access this needs. |
123
+ | `rate_limited` | 429 | yes | Airtable allows 5 requests a second per base; retry in 30 seconds. |
124
+ | `invalid_request` | 422, 400 | no | built from the service's response |
125
+
126
+ <h3 id="airtable-get-base-schema"><code>get-base-schema</code></h3>
127
+
128
+ **Get base schema.** Every table of a base with its id, name, primary field and fields (id, name, type such as singleLineText, number, singleSelect, multipleRecordLinks). Read it to learn field names before writing records.
129
+
130
+ Ref `io.b3os/airtable/get-base-schema@1.0.0` · effect `read` · connection `token` · MCP tool `airtable__get-base-schema`
131
+
132
+ **curl**
133
+
134
+ ```bash
135
+ curl -s https://beta-api.b3os.org/v1/actions/call \
136
+ -H "Authorization: Bearer $B3OS_API_KEY" \
137
+ -H "Content-Type: application/json" \
138
+ -d '{
139
+ "ref": "io.b3os/airtable/get-base-schema@1",
140
+ "input": {"base_id": "appLkNDICXNqxSDhG"},
141
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
142
+ }'
143
+ ```
144
+ **TypeScript**
145
+
146
+ ```ts
147
+ import { B3OS } from "@b3os/sdk";
148
+
149
+ const b3os = new B3OS();
150
+ const result = await b3os.actions.call({
151
+ ref: "io.b3os/airtable/get-base-schema@1",
152
+ input: { base_id: "appLkNDICXNqxSDhG" },
153
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
154
+ });
155
+ console.log(result.output);
156
+ ```
157
+ **Python**
158
+
159
+ ```python
160
+ from b3os import B3OS
161
+
162
+ b3os = B3OS()
163
+ result = b3os.actions.call({
164
+ "ref": "io.b3os/airtable/get-base-schema@1",
165
+ "input": {"base_id": "appLkNDICXNqxSDhG"},
166
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
167
+ })
168
+ print(result["output"])
169
+ ```
170
+ **MCP**
171
+
172
+ ```json
173
+ {
174
+ "method": "tools/call",
175
+ "params": {
176
+ "name": "airtable__get-base-schema",
177
+ "arguments": {"base_id": "appLkNDICXNqxSDhG"}
178
+ }
179
+ }
180
+ ```
181
+
182
+ Expose the pack as tools with `--packs airtable` on the local server or `?packs=airtable` on the remote URL, and the agent calls `airtable__get-base-schema` 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`.
183
+
184
+ Output, labeled `fixture`: Get base schema (documented response shape, example values). From the bundle's `fixtures/get-base-schema.json`, not a live call.
185
+
186
+ ```json
187
+ {
188
+ "tables": [
189
+ {
190
+ "id": "tbltp8DGLhqbUmjK1",
191
+ "name": "Tasks",
192
+ "primary_field_id": "fld1VnoyuotSTyxW1",
193
+ "fields": [
194
+ {
195
+ "id": "fld1VnoyuotSTyxW1",
196
+ "name": "Name",
197
+ "type": "singleLineText",
198
+ "description": null
199
+ },
200
+ {
201
+ "id": "fldoaIqdn5szURHpw",
202
+ "name": "Status",
203
+ "type": "singleSelect",
204
+ "description": null
205
+ },
206
+ {
207
+ "id": "fldumZe00w09RYTW6",
208
+ "name": "Due",
209
+ "type": "date",
210
+ "description": "Ship date"
211
+ }
212
+ ]
213
+ }
214
+ ]
215
+ }
216
+ ```
217
+
218
+ 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:
219
+
220
+ | `pack_error.code` | Service status | Retryable | Message |
221
+ |---|---|---|---|
222
+ | `not_found` | 404 | no | Base, table or record not found, or the token cannot access it. |
223
+ | `connection_unauthorized` | 401 | no | Airtable rejected the personal access token. |
224
+ | `forbidden` | 403 | no | The token lacks the scope or base access this needs. |
225
+ | `rate_limited` | 429 | yes | Airtable allows 5 requests a second per base; retry in 30 seconds. |
226
+ | `invalid_request` | 422, 400 | no | built from the service's response |
227
+
228
+ <h3 id="airtable-list-records"><code>list-records</code></h3>
229
+
230
+ **List records.** Records of a table, optionally through a view and filtered with an Airtable formula such as AND({Status} = 'Open', {Due} < TODAY()), sorted by one field, limited to some fields. Up to 100 per page; pass the returned offset to continue.
231
+
232
+ Ref `io.b3os/airtable/list-records@1.0.0` · effect `read` · connection `token` · MCP tool `airtable__list-records`
233
+
234
+ **curl**
235
+
236
+ ```bash
237
+ curl -s https://beta-api.b3os.org/v1/actions/call \
238
+ -H "Authorization: Bearer $B3OS_API_KEY" \
239
+ -H "Content-Type: application/json" \
240
+ -d '{
241
+ "ref": "io.b3os/airtable/list-records@1",
242
+ "input": {
243
+ "base_id": "appLkNDICXNqxSDhG",
244
+ "table": "Tasks",
245
+ "filter_formula": "{Status} = '\''Open'\''",
246
+ "sort_field": "Due",
247
+ "page_size": 2
248
+ },
249
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
250
+ }'
251
+ ```
252
+ **TypeScript**
253
+
254
+ ```ts
255
+ import { B3OS } from "@b3os/sdk";
256
+
257
+ const b3os = new B3OS();
258
+ const result = await b3os.actions.call({
259
+ ref: "io.b3os/airtable/list-records@1",
260
+ input: {
261
+ base_id: "appLkNDICXNqxSDhG",
262
+ table: "Tasks",
263
+ filter_formula: "{Status} = 'Open'",
264
+ sort_field: "Due",
265
+ page_size: 2,
266
+ },
267
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
268
+ });
269
+ console.log(result.output);
270
+ ```
271
+ **Python**
272
+
273
+ ```python
274
+ from b3os import B3OS
275
+
276
+ b3os = B3OS()
277
+ result = b3os.actions.call({
278
+ "ref": "io.b3os/airtable/list-records@1",
279
+ "input": {
280
+ "base_id": "appLkNDICXNqxSDhG",
281
+ "table": "Tasks",
282
+ "filter_formula": "{Status} = 'Open'",
283
+ "sort_field": "Due",
284
+ "page_size": 2,
285
+ },
286
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
287
+ })
288
+ print(result["output"])
289
+ ```
290
+ **MCP**
291
+
292
+ ```json
293
+ {
294
+ "method": "tools/call",
295
+ "params": {
296
+ "name": "airtable__list-records",
297
+ "arguments": {
298
+ "base_id": "appLkNDICXNqxSDhG",
299
+ "table": "Tasks",
300
+ "filter_formula": "{Status} = 'Open'",
301
+ "sort_field": "Due",
302
+ "page_size": 2
303
+ }
304
+ }
305
+ }
306
+ ```
307
+
308
+ Expose the pack as tools with `--packs airtable` on the local server or `?packs=airtable` on the remote URL, and the agent calls `airtable__list-records` 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`.
309
+
310
+ Output, labeled `fixture`: List records (documented response shape, example values). From the bundle's `fixtures/list-records.json`, not a live call.
311
+
312
+ ```json
313
+ {
314
+ "records": [
315
+ {
316
+ "id": "recwPQIfs4wKPyc9D",
317
+ "created_time": "2026-10-20T15:00:00.000Z",
318
+ "fields": {
319
+ "Name": "Write launch post",
320
+ "Status": "Open",
321
+ "Due": "2026-10-30"
322
+ }
323
+ },
324
+ {
325
+ "id": "rec4Ac2dR7bpeVUi5",
326
+ "created_time": "2026-10-20T15:00:00.000Z",
327
+ "fields": {"Name": "Record demo", "Status": "Open"}
328
+ }
329
+ ],
330
+ "offset": "itrHUOz6JbUT8QYDU/rec4Ac2dR7bpeVUi5"
331
+ }
332
+ ```
333
+
334
+ 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:
335
+
336
+ | `pack_error.code` | Service status | Retryable | Message |
337
+ |---|---|---|---|
338
+ | `not_found` | 404 | no | Base, table or record not found, or the token cannot access it. |
339
+ | `connection_unauthorized` | 401 | no | Airtable rejected the personal access token. |
340
+ | `forbidden` | 403 | no | The token lacks the scope or base access this needs. |
341
+ | `rate_limited` | 429 | yes | Airtable allows 5 requests a second per base; retry in 30 seconds. |
342
+ | `invalid_request` | 422, 400 | no | built from the service's response |
343
+
344
+ <h3 id="airtable-get-record"><code>get-record</code></h3>
345
+
346
+ **Get record.** One record by id with all its non-empty fields.
347
+
348
+ Ref `io.b3os/airtable/get-record@1.0.0` · effect `read` · connection `token` · MCP tool `airtable__get-record`
349
+
350
+ **curl**
351
+
352
+ ```bash
353
+ curl -s https://beta-api.b3os.org/v1/actions/call \
354
+ -H "Authorization: Bearer $B3OS_API_KEY" \
355
+ -H "Content-Type: application/json" \
356
+ -d '{
357
+ "ref": "io.b3os/airtable/get-record@1",
358
+ "input": {
359
+ "base_id": "appLkNDICXNqxSDhG",
360
+ "table": "Tasks",
361
+ "record_id": "recwPQIfs4wKPyc9D"
362
+ },
363
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
364
+ }'
365
+ ```
366
+ **TypeScript**
367
+
368
+ ```ts
369
+ import { B3OS } from "@b3os/sdk";
370
+
371
+ const b3os = new B3OS();
372
+ const result = await b3os.actions.call({
373
+ ref: "io.b3os/airtable/get-record@1",
374
+ input: {
375
+ base_id: "appLkNDICXNqxSDhG",
376
+ table: "Tasks",
377
+ record_id: "recwPQIfs4wKPyc9D",
378
+ },
379
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
380
+ });
381
+ console.log(result.output);
382
+ ```
383
+ **Python**
384
+
385
+ ```python
386
+ from b3os import B3OS
387
+
388
+ b3os = B3OS()
389
+ result = b3os.actions.call({
390
+ "ref": "io.b3os/airtable/get-record@1",
391
+ "input": {
392
+ "base_id": "appLkNDICXNqxSDhG",
393
+ "table": "Tasks",
394
+ "record_id": "recwPQIfs4wKPyc9D",
395
+ },
396
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
397
+ })
398
+ print(result["output"])
399
+ ```
400
+ **MCP**
401
+
402
+ ```json
403
+ {
404
+ "method": "tools/call",
405
+ "params": {
406
+ "name": "airtable__get-record",
407
+ "arguments": {
408
+ "base_id": "appLkNDICXNqxSDhG",
409
+ "table": "Tasks",
410
+ "record_id": "recwPQIfs4wKPyc9D"
411
+ }
412
+ }
413
+ }
414
+ ```
415
+
416
+ Expose the pack as tools with `--packs airtable` on the local server or `?packs=airtable` on the remote URL, and the agent calls `airtable__get-record` 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`.
417
+
418
+ Output, labeled `fixture`: Get record (documented response shape, example values). From the bundle's `fixtures/get-record.json`, not a live call.
419
+
420
+ ```json
421
+ {
422
+ "id": "recwPQIfs4wKPyc9D",
423
+ "created_time": "2026-10-20T15:00:00.000Z",
424
+ "fields": {"Name": "Write launch post", "Status": "Open", "Due": "2026-10-30"}
425
+ }
426
+ ```
427
+
428
+ 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:
429
+
430
+ | `pack_error.code` | Service status | Retryable | Message |
431
+ |---|---|---|---|
432
+ | `not_found` | 404 | no | Base, table or record not found, or the token cannot access it. |
433
+ | `connection_unauthorized` | 401 | no | Airtable rejected the personal access token. |
434
+ | `forbidden` | 403 | no | The token lacks the scope or base access this needs. |
435
+ | `rate_limited` | 429 | yes | Airtable allows 5 requests a second per base; retry in 30 seconds. |
436
+ | `invalid_request` | 422, 400 | no | built from the service's response |
437
+
438
+ <h3 id="airtable-create-records"><code>create-records</code></h3>
439
+
440
+ **Create records.** Create 1 to 10 records in a table from field values keyed by field name. Returns the new records with their ids. Not idempotent.
441
+
442
+ Ref `io.b3os/airtable/create-records@1.0.0` · effect `write` · connection `token` · MCP tool `airtable__create-records`
443
+
444
+ **curl**
445
+
446
+ ```bash
447
+ curl -s https://beta-api.b3os.org/v1/actions/call \
448
+ -H "Authorization: Bearer $B3OS_API_KEY" \
449
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
450
+ -H "Content-Type: application/json" \
451
+ -d '{
452
+ "ref": "io.b3os/airtable/create-records@1",
453
+ "input": {
454
+ "base_id": "appLkNDICXNqxSDhG",
455
+ "table": "Tasks",
456
+ "records": [{"Name": "Publish changelog", "Status": "Open"}]
457
+ },
458
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
459
+ }'
460
+ ```
461
+ **TypeScript**
462
+
463
+ ```ts
464
+ import { B3OS } from "@b3os/sdk";
465
+
466
+ const b3os = new B3OS();
467
+ const result = await b3os.actions.call({
468
+ ref: "io.b3os/airtable/create-records@1",
469
+ input: {
470
+ base_id: "appLkNDICXNqxSDhG",
471
+ table: "Tasks",
472
+ records: [{ Name: "Publish changelog", Status: "Open" }],
473
+ },
474
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
475
+ }, { idempotencyKey: crypto.randomUUID() });
476
+ console.log(result.output);
477
+ ```
478
+ **Python**
479
+
480
+ ```python
481
+ import uuid
482
+ from b3os import B3OS
483
+
484
+ b3os = B3OS()
485
+ result = b3os.actions.call({
486
+ "ref": "io.b3os/airtable/create-records@1",
487
+ "input": {
488
+ "base_id": "appLkNDICXNqxSDhG",
489
+ "table": "Tasks",
490
+ "records": [{"Name": "Publish changelog", "Status": "Open"}],
491
+ },
492
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
493
+ }, idempotency_key=str(uuid.uuid4()))
494
+ print(result["output"])
495
+ ```
496
+ **MCP**
497
+
498
+ ```json
499
+ {
500
+ "method": "tools/call",
501
+ "params": {
502
+ "name": "airtable__create-records",
503
+ "arguments": {
504
+ "base_id": "appLkNDICXNqxSDhG",
505
+ "table": "Tasks",
506
+ "records": [{"Name": "Publish changelog", "Status": "Open"}]
507
+ }
508
+ }
509
+ }
510
+ ```
511
+
512
+ Expose the pack as tools with `--packs airtable` on the local server or `?packs=airtable` on the remote URL, and the agent calls `airtable__create-records` 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`.
513
+
514
+ Output, labeled `fixture`: Create records (documented response shape, example values). From the bundle's `fixtures/create-records.json`, not a live call.
515
+
516
+ ```json
517
+ {
518
+ "records": [
519
+ {
520
+ "id": "recNEW0000000001a",
521
+ "created_time": "2026-10-20T15:00:00.000Z",
522
+ "fields": {"Name": "Publish changelog", "Status": "Open"}
523
+ }
524
+ ]
525
+ }
526
+ ```
527
+
528
+ 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:
529
+
530
+ | `pack_error.code` | Service status | Retryable | Message |
531
+ |---|---|---|---|
532
+ | `not_found` | 404 | no | Base, table or record not found, or the token cannot access it. |
533
+ | `connection_unauthorized` | 401 | no | Airtable rejected the personal access token. |
534
+ | `forbidden` | 403 | no | The token lacks the scope or base access this needs. |
535
+ | `rate_limited` | 429 | yes | Airtable allows 5 requests a second per base; retry in 30 seconds. |
536
+ | `invalid_request` | 422, 400 | no | built from the service's response |
537
+
538
+ <h3 id="airtable-update-records"><code>update-records</code></h3>
539
+
540
+ **Update records.** Update 1 to 10 records by id: only the fields given change (PATCH semantics), others keep their values. Returns the updated records.
541
+
542
+ Ref `io.b3os/airtable/update-records@1.0.0` · effect `write` · connection `token` · MCP tool `airtable__update-records`
543
+
544
+ **curl**
545
+
546
+ ```bash
547
+ curl -s https://beta-api.b3os.org/v1/actions/call \
548
+ -H "Authorization: Bearer $B3OS_API_KEY" \
549
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
550
+ -H "Content-Type: application/json" \
551
+ -d '{
552
+ "ref": "io.b3os/airtable/update-records@1",
553
+ "input": {
554
+ "base_id": "appLkNDICXNqxSDhG",
555
+ "table": "Tasks",
556
+ "records": [{"id": "recwPQIfs4wKPyc9D", "fields": {"Status": "Done"}}]
557
+ },
558
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
559
+ }'
560
+ ```
561
+ **TypeScript**
562
+
563
+ ```ts
564
+ import { B3OS } from "@b3os/sdk";
565
+
566
+ const b3os = new B3OS();
567
+ const result = await b3os.actions.call({
568
+ ref: "io.b3os/airtable/update-records@1",
569
+ input: {
570
+ base_id: "appLkNDICXNqxSDhG",
571
+ table: "Tasks",
572
+ records: [{ id: "recwPQIfs4wKPyc9D", fields: { Status: "Done" } }],
573
+ },
574
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
575
+ }, { idempotencyKey: crypto.randomUUID() });
576
+ console.log(result.output);
577
+ ```
578
+ **Python**
579
+
580
+ ```python
581
+ import uuid
582
+ from b3os import B3OS
583
+
584
+ b3os = B3OS()
585
+ result = b3os.actions.call({
586
+ "ref": "io.b3os/airtable/update-records@1",
587
+ "input": {
588
+ "base_id": "appLkNDICXNqxSDhG",
589
+ "table": "Tasks",
590
+ "records": [
591
+ {
592
+ "id": "recwPQIfs4wKPyc9D",
593
+ "fields": {"Status": "Done"},
594
+ },
595
+ ],
596
+ },
597
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
598
+ }, idempotency_key=str(uuid.uuid4()))
599
+ print(result["output"])
600
+ ```
601
+ **MCP**
602
+
603
+ ```json
604
+ {
605
+ "method": "tools/call",
606
+ "params": {
607
+ "name": "airtable__update-records",
608
+ "arguments": {
609
+ "base_id": "appLkNDICXNqxSDhG",
610
+ "table": "Tasks",
611
+ "records": [{"id": "recwPQIfs4wKPyc9D", "fields": {"Status": "Done"}}]
612
+ }
613
+ }
614
+ }
615
+ ```
616
+
617
+ Expose the pack as tools with `--packs airtable` on the local server or `?packs=airtable` on the remote URL, and the agent calls `airtable__update-records` 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`.
618
+
619
+ Output, labeled `fixture`: Update records (documented response shape, example values). From the bundle's `fixtures/update-records.json`, not a live call.
620
+
621
+ ```json
622
+ {
623
+ "records": [
624
+ {
625
+ "id": "recwPQIfs4wKPyc9D",
626
+ "created_time": "2026-10-20T15:00:00.000Z",
627
+ "fields": {
628
+ "Name": "Write launch post",
629
+ "Status": "Done",
630
+ "Due": "2026-10-30"
631
+ }
632
+ }
633
+ ]
634
+ }
635
+ ```
636
+
637
+ 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:
638
+
639
+ | `pack_error.code` | Service status | Retryable | Message |
640
+ |---|---|---|---|
641
+ | `not_found` | 404 | no | Base, table or record not found, or the token cannot access it. |
642
+ | `connection_unauthorized` | 401 | no | Airtable rejected the personal access token. |
643
+ | `forbidden` | 403 | no | The token lacks the scope or base access this needs. |
644
+ | `rate_limited` | 429 | yes | Airtable allows 5 requests a second per base; retry in 30 seconds. |
645
+ | `invalid_request` | 422, 400 | no | built from the service's response |
646
+
647
+ <h3 id="airtable-delete-records"><code>delete-records</code></h3>
648
+
649
+ **Delete records.** Delete 1 to 10 records by id. Deleted records go to the base's trash for 7 days (Pro plan and above); the API cannot restore them.
650
+
651
+ Ref `io.b3os/airtable/delete-records@1.0.0` · effect `irreversible` · connection `token` · MCP tool `airtable__delete-records`
652
+
653
+ **curl**
654
+
655
+ ```bash
656
+ curl -s https://beta-api.b3os.org/v1/actions/call \
657
+ -H "Authorization: Bearer $B3OS_API_KEY" \
658
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
659
+ -H "Content-Type: application/json" \
660
+ -d '{
661
+ "ref": "io.b3os/airtable/delete-records@1",
662
+ "input": {
663
+ "base_id": "appLkNDICXNqxSDhG",
664
+ "table": "Tasks",
665
+ "record_ids": ["rec4Ac2dR7bpeVUi5"]
666
+ },
667
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
668
+ }'
669
+ ```
670
+ **TypeScript**
671
+
672
+ ```ts
673
+ import { B3OS } from "@b3os/sdk";
674
+
675
+ const b3os = new B3OS();
676
+ const result = await b3os.actions.call({
677
+ ref: "io.b3os/airtable/delete-records@1",
678
+ input: {
679
+ base_id: "appLkNDICXNqxSDhG",
680
+ table: "Tasks",
681
+ record_ids: ["rec4Ac2dR7bpeVUi5"],
682
+ },
683
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
684
+ }, { idempotencyKey: crypto.randomUUID() });
685
+ console.log(result.output);
686
+ ```
687
+ **Python**
688
+
689
+ ```python
690
+ import uuid
691
+ from b3os import B3OS
692
+
693
+ b3os = B3OS()
694
+ result = b3os.actions.call({
695
+ "ref": "io.b3os/airtable/delete-records@1",
696
+ "input": {
697
+ "base_id": "appLkNDICXNqxSDhG",
698
+ "table": "Tasks",
699
+ "record_ids": ["rec4Ac2dR7bpeVUi5"],
700
+ },
701
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
702
+ }, idempotency_key=str(uuid.uuid4()))
703
+ print(result["output"])
704
+ ```
705
+ **MCP**
706
+
707
+ ```json
708
+ {
709
+ "method": "tools/call",
710
+ "params": {
711
+ "name": "airtable__delete-records",
712
+ "arguments": {
713
+ "base_id": "appLkNDICXNqxSDhG",
714
+ "table": "Tasks",
715
+ "record_ids": ["rec4Ac2dR7bpeVUi5"]
716
+ }
717
+ }
718
+ }
719
+ ```
720
+
721
+ Expose the pack as tools with `--packs airtable` on the local server or `?packs=airtable` on the remote URL, and the agent calls `airtable__delete-records` 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`.
722
+
723
+ Output, labeled `fixture`: Delete records (documented response shape, example values). From the bundle's `fixtures/delete-records.json`, not a live call.
724
+
725
+ ```json
726
+ {"records": [{"id": "rec4Ac2dR7bpeVUi5", "deleted": true}]}
727
+ ```
728
+
729
+ 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:
730
+
731
+ | `pack_error.code` | Service status | Retryable | Message |
732
+ |---|---|---|---|
733
+ | `not_found` | 404 | no | Base, table or record not found, or the token cannot access it. |
734
+ | `connection_unauthorized` | 401 | no | Airtable rejected the personal access token. |
735
+ | `forbidden` | 403 | no | The token lacks the scope or base access this needs. |
736
+ | `rate_limited` | 429 | yes | Airtable allows 5 requests a second per base; retry in 30 seconds. |
737
+ | `invalid_request` | 422, 400 | no | built from the service's response |