@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,1077 @@
1
+ # Notion
2
+
3
+ > The io.b3os/notion pack: 10 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/notion.md
6
+
7
+ <a id="notion"></a>
8
+
9
+ `io.b3os/notion` 1.0.0 · `knowledge`, `documents`, `productivity` · MIT
10
+
11
+ Search, read and write Notion with your own internal integration: find pages and databases, read a page's properties and text, query a database with Notion filters and sorts, create pages, append paragraphs, update properties, archive pages and comment. Uses Notion API version 2022-06-28. The integration only sees pages and databases shared with it (Share, Connections).
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`: Notion integration token.
18
+
19
+ The internal integration secret (ntn_ or secret_) from notion.so/profile/integrations, or an OAuth access token of your own public integration. Share each page or database the actions need with the integration.
20
+
21
+ How to get one: [developers.notion.com](https://developers.notion.com/docs/authorization).
22
+
23
+ The credential is sent only to `api.notion.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.notion.com`.
28
+
29
+ ## Actions
30
+
31
+ | Action | Effect | MCP tool | Title |
32
+ |---|---|---|---|
33
+ | [`search`](https://docs.beta.b3os.org/actions/catalog/notion#notion-search) | read | `notion__search` | Search pages and databases |
34
+ | [`get-page`](https://docs.beta.b3os.org/actions/catalog/notion#notion-get-page) | read | `notion__get-page` | Get page |
35
+ | [`get-page-content`](https://docs.beta.b3os.org/actions/catalog/notion#notion-get-page-content) | read | `notion__get-page-content` | Get page content |
36
+ | [`get-database`](https://docs.beta.b3os.org/actions/catalog/notion#notion-get-database) | read | `notion__get-database` | Get database |
37
+ | [`query-database`](https://docs.beta.b3os.org/actions/catalog/notion#notion-query-database) | read | `notion__query-database` | Query database |
38
+ | [`create-page`](https://docs.beta.b3os.org/actions/catalog/notion#notion-create-page) | write | `notion__create-page` | Create page |
39
+ | [`append-paragraphs`](https://docs.beta.b3os.org/actions/catalog/notion#notion-append-paragraphs) | write | `notion__append-paragraphs` | Append paragraphs |
40
+ | [`update-page-properties`](https://docs.beta.b3os.org/actions/catalog/notion#notion-update-page-properties) | write | `notion__update-page-properties` | Update page properties |
41
+ | [`archive-page`](https://docs.beta.b3os.org/actions/catalog/notion#notion-archive-page) | write | `notion__archive-page` | Archive page |
42
+ | [`add-comment`](https://docs.beta.b3os.org/actions/catalog/notion#notion-add-comment) | write | `notion__add-comment` | Comment on page |
43
+
44
+ <h3 id="notion-search"><code>search</code></h3>
45
+
46
+ **Search pages and databases.** Search the pages and databases shared with the integration by title, most recently edited first, optionally only pages or only databases. Returns ids, titles, URLs and edit times; page with next_cursor.
47
+
48
+ Ref `io.b3os/notion/search@1.0.0` · effect `read` · connection `token` · MCP tool `notion__search`
49
+
50
+ **curl**
51
+
52
+ ```bash
53
+ curl -s https://beta-api.b3os.org/v1/actions/call \
54
+ -H "Authorization: Bearer $B3OS_API_KEY" \
55
+ -H "Content-Type: application/json" \
56
+ -d '{
57
+ "ref": "io.b3os/notion/search@1",
58
+ "input": {"query": "roadmap", "page_size": 2},
59
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
60
+ }'
61
+ ```
62
+ **TypeScript**
63
+
64
+ ```ts
65
+ import { B3OS } from "@b3os/sdk";
66
+
67
+ const b3os = new B3OS();
68
+ const result = await b3os.actions.call({
69
+ ref: "io.b3os/notion/search@1",
70
+ input: { query: "roadmap", page_size: 2 },
71
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
72
+ });
73
+ console.log(result.output);
74
+ ```
75
+ **Python**
76
+
77
+ ```python
78
+ from b3os import B3OS
79
+
80
+ b3os = B3OS()
81
+ result = b3os.actions.call({
82
+ "ref": "io.b3os/notion/search@1",
83
+ "input": {"query": "roadmap", "page_size": 2},
84
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
85
+ })
86
+ print(result["output"])
87
+ ```
88
+ **MCP**
89
+
90
+ ```json
91
+ {
92
+ "method": "tools/call",
93
+ "params": {
94
+ "name": "notion__search",
95
+ "arguments": {"query": "roadmap", "page_size": 2}
96
+ }
97
+ }
98
+ ```
99
+
100
+ Expose the pack as tools with `--packs notion` on the local server or `?packs=notion` on the remote URL, and the agent calls `notion__search` 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`.
101
+
102
+ Output, labeled `fixture`: Search pages and databases (documented response shape, example values). From the bundle's `fixtures/search.json`, not a live call.
103
+
104
+ ```json
105
+ {
106
+ "results": [
107
+ {
108
+ "object": "page",
109
+ "id": "59833787-2cf9-4fdf-8782-e53db20768a5",
110
+ "title": "Q4 roadmap",
111
+ "url": "https://www.notion.so/Q4-roadmap-598337872cf94fdf8782e53db20768a5",
112
+ "created_time": "2026-10-20T15:00:00.000Z",
113
+ "last_edited_time": "2026-10-25T21:30:00.000Z",
114
+ "archived": false,
115
+ "parent_type": "database_id"
116
+ },
117
+ {
118
+ "object": "database",
119
+ "id": "d9824bdc-8445-4327-be8b-5b47500af6ce",
120
+ "title": "Roadmap items",
121
+ "url": "https://www.notion.so/d9824bdc84454327be8b5b47500af6ce",
122
+ "created_time": "2026-09-01T10:00:00.000Z",
123
+ "last_edited_time": "2026-10-25T20:00:00.000Z",
124
+ "archived": false,
125
+ "parent_type": "page_id"
126
+ }
127
+ ],
128
+ "has_more": true,
129
+ "next_cursor": "e6c6f5ff-5e6b-4c5b-9a1e-1c1b0f5e8b7a"
130
+ }
131
+ ```
132
+
133
+ 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:
134
+
135
+ | `pack_error.code` | Service status | Retryable | Message |
136
+ |---|---|---|---|
137
+ | `not_found` | 404 | no | Not found, or the page or database is not shared with the integration (Share, Connections). |
138
+ | `connection_unauthorized` | 401 | no | Notion rejected the integration token. |
139
+ | `forbidden` | 403 | no | built from the service's response |
140
+ | `conflict` | 409 | yes | built from the service's response |
141
+ | `rate_limited` | 429 | yes | Notion rate limit reached (about 3 requests a second per integration). |
142
+ | `invalid_request` | 400 | no | built from the service's response |
143
+
144
+ <h3 id="notion-get-page"><code>get-page</code></h3>
145
+
146
+ **Get page.** One page's title, URL, parent, edit times and all property values (status, people, dates, relations, ...) in Notion's shape. Its text is in get-page-content.
147
+
148
+ Ref `io.b3os/notion/get-page@1.0.0` · effect `read` · connection `token` · MCP tool `notion__get-page`
149
+
150
+ **curl**
151
+
152
+ ```bash
153
+ curl -s https://beta-api.b3os.org/v1/actions/call \
154
+ -H "Authorization: Bearer $B3OS_API_KEY" \
155
+ -H "Content-Type: application/json" \
156
+ -d '{
157
+ "ref": "io.b3os/notion/get-page@1",
158
+ "input": {"page_id": "59833787-2cf9-4fdf-8782-e53db20768a5"},
159
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
160
+ }'
161
+ ```
162
+ **TypeScript**
163
+
164
+ ```ts
165
+ import { B3OS } from "@b3os/sdk";
166
+
167
+ const b3os = new B3OS();
168
+ const result = await b3os.actions.call({
169
+ ref: "io.b3os/notion/get-page@1",
170
+ input: { page_id: "59833787-2cf9-4fdf-8782-e53db20768a5" },
171
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
172
+ });
173
+ console.log(result.output);
174
+ ```
175
+ **Python**
176
+
177
+ ```python
178
+ from b3os import B3OS
179
+
180
+ b3os = B3OS()
181
+ result = b3os.actions.call({
182
+ "ref": "io.b3os/notion/get-page@1",
183
+ "input": {"page_id": "59833787-2cf9-4fdf-8782-e53db20768a5"},
184
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
185
+ })
186
+ print(result["output"])
187
+ ```
188
+ **MCP**
189
+
190
+ ```json
191
+ {
192
+ "method": "tools/call",
193
+ "params": {
194
+ "name": "notion__get-page",
195
+ "arguments": {"page_id": "59833787-2cf9-4fdf-8782-e53db20768a5"}
196
+ }
197
+ }
198
+ ```
199
+
200
+ Expose the pack as tools with `--packs notion` on the local server or `?packs=notion` on the remote URL, and the agent calls `notion__get-page` 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`.
201
+
202
+ Output, labeled `fixture`: Get page (documented response shape, example values). From the bundle's `fixtures/get-page.json`, not a live call.
203
+
204
+ ```json
205
+ {
206
+ "object": "page",
207
+ "id": "59833787-2cf9-4fdf-8782-e53db20768a5",
208
+ "title": "Q4 roadmap",
209
+ "url": "https://www.notion.so/Q4-roadmap-598337872cf94fdf8782e53db20768a5",
210
+ "created_time": "2026-10-20T15:00:00.000Z",
211
+ "last_edited_time": "2026-10-25T21:30:00.000Z",
212
+ "archived": false,
213
+ "parent_type": "database_id",
214
+ "properties": {
215
+ "Status": {
216
+ "id": "%3AA%3F",
217
+ "type": "status",
218
+ "status": {"id": "1", "name": "In progress", "color": "blue"}
219
+ },
220
+ "Owner": {"id": "bQk%5D", "type": "people", "people": []},
221
+ "Name": {
222
+ "id": "title",
223
+ "type": "title",
224
+ "title": [
225
+ {
226
+ "type": "text",
227
+ "text": {"content": "Q4 roadmap", "link": null},
228
+ "plain_text": "Q4 roadmap",
229
+ "href": null,
230
+ "annotations": {
231
+ "bold": false,
232
+ "italic": false,
233
+ "strikethrough": false,
234
+ "underline": false,
235
+ "code": false,
236
+ "color": "default"
237
+ }
238
+ }
239
+ ]
240
+ }
241
+ }
242
+ }
243
+ ```
244
+
245
+ 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:
246
+
247
+ | `pack_error.code` | Service status | Retryable | Message |
248
+ |---|---|---|---|
249
+ | `not_found` | 404 | no | Not found, or the page or database is not shared with the integration (Share, Connections). |
250
+ | `connection_unauthorized` | 401 | no | Notion rejected the integration token. |
251
+ | `forbidden` | 403 | no | built from the service's response |
252
+ | `conflict` | 409 | yes | built from the service's response |
253
+ | `rate_limited` | 429 | yes | Notion rate limit reached (about 3 requests a second per integration). |
254
+ | `invalid_request` | 400 | no | built from the service's response |
255
+
256
+ <h3 id="notion-get-page-content"><code>get-page-content</code></h3>
257
+
258
+ **Get page content.** The blocks of a page (or of any block with children) in order, each with its type (paragraph, heading_1, to_do, bulleted_list_item, code, ...), plain text and whether it has nested children. One level per call: read a nested block by passing its id; page with next_cursor.
259
+
260
+ Ref `io.b3os/notion/get-page-content@1.0.0` · effect `read` · connection `token` · MCP tool `notion__get-page-content`
261
+
262
+ **curl**
263
+
264
+ ```bash
265
+ curl -s https://beta-api.b3os.org/v1/actions/call \
266
+ -H "Authorization: Bearer $B3OS_API_KEY" \
267
+ -H "Content-Type: application/json" \
268
+ -d '{
269
+ "ref": "io.b3os/notion/get-page-content@1",
270
+ "input": {"block_id": "59833787-2cf9-4fdf-8782-e53db20768a5", "page_size": 3},
271
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
272
+ }'
273
+ ```
274
+ **TypeScript**
275
+
276
+ ```ts
277
+ import { B3OS } from "@b3os/sdk";
278
+
279
+ const b3os = new B3OS();
280
+ const result = await b3os.actions.call({
281
+ ref: "io.b3os/notion/get-page-content@1",
282
+ input: { block_id: "59833787-2cf9-4fdf-8782-e53db20768a5", page_size: 3 },
283
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
284
+ });
285
+ console.log(result.output);
286
+ ```
287
+ **Python**
288
+
289
+ ```python
290
+ from b3os import B3OS
291
+
292
+ b3os = B3OS()
293
+ result = b3os.actions.call({
294
+ "ref": "io.b3os/notion/get-page-content@1",
295
+ "input": {
296
+ "block_id": "59833787-2cf9-4fdf-8782-e53db20768a5",
297
+ "page_size": 3,
298
+ },
299
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
300
+ })
301
+ print(result["output"])
302
+ ```
303
+ **MCP**
304
+
305
+ ```json
306
+ {
307
+ "method": "tools/call",
308
+ "params": {
309
+ "name": "notion__get-page-content",
310
+ "arguments": {
311
+ "block_id": "59833787-2cf9-4fdf-8782-e53db20768a5",
312
+ "page_size": 3
313
+ }
314
+ }
315
+ }
316
+ ```
317
+
318
+ Expose the pack as tools with `--packs notion` on the local server or `?packs=notion` on the remote URL, and the agent calls `notion__get-page-content` 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`.
319
+
320
+ Output, labeled `fixture`: Get page content (documented response shape, example values). From the bundle's `fixtures/get-page-content.json`, not a live call.
321
+
322
+ ```json
323
+ {
324
+ "blocks": [
325
+ {
326
+ "id": "c02fc1d3-db8b-45c5-a222-27595b15aea7",
327
+ "type": "heading_2",
328
+ "text": "Goals",
329
+ "has_children": false,
330
+ "checked": null
331
+ },
332
+ {
333
+ "id": "acc7eb06-05cd-4603-a384-5e1e4f1f4e72",
334
+ "type": "to_do",
335
+ "text": "Ship checkout v2",
336
+ "has_children": false,
337
+ "checked": false
338
+ },
339
+ {
340
+ "id": "5e4f3a2b-1c0d-4e9f-8a7b-6c5d4e3f2a1b",
341
+ "type": "child_page",
342
+ "text": "Launch checklist",
343
+ "has_children": true,
344
+ "checked": null
345
+ }
346
+ ],
347
+ "has_more": false,
348
+ "next_cursor": null
349
+ }
350
+ ```
351
+
352
+ 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:
353
+
354
+ | `pack_error.code` | Service status | Retryable | Message |
355
+ |---|---|---|---|
356
+ | `not_found` | 404 | no | Not found, or the page or database is not shared with the integration (Share, Connections). |
357
+ | `connection_unauthorized` | 401 | no | Notion rejected the integration token. |
358
+ | `forbidden` | 403 | no | built from the service's response |
359
+ | `conflict` | 409 | yes | built from the service's response |
360
+ | `rate_limited` | 429 | yes | Notion rate limit reached (about 3 requests a second per integration). |
361
+ | `invalid_request` | 400 | no | built from the service's response |
362
+
363
+ <h3 id="notion-get-database"><code>get-database</code></h3>
364
+
365
+ **Get database.** A database's title, URL, the name of its title property and its property schema, keyed by property name: each property's type and, for select, multi_select and status, the allowed options. Read it before query-database or create-page to know the property names.
366
+
367
+ Ref `io.b3os/notion/get-database@1.0.0` · effect `read` · connection `token` · MCP tool `notion__get-database`
368
+
369
+ **curl**
370
+
371
+ ```bash
372
+ curl -s https://beta-api.b3os.org/v1/actions/call \
373
+ -H "Authorization: Bearer $B3OS_API_KEY" \
374
+ -H "Content-Type: application/json" \
375
+ -d '{
376
+ "ref": "io.b3os/notion/get-database@1",
377
+ "input": {"database_id": "d9824bdc-8445-4327-be8b-5b47500af6ce"},
378
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
379
+ }'
380
+ ```
381
+ **TypeScript**
382
+
383
+ ```ts
384
+ import { B3OS } from "@b3os/sdk";
385
+
386
+ const b3os = new B3OS();
387
+ const result = await b3os.actions.call({
388
+ ref: "io.b3os/notion/get-database@1",
389
+ input: { database_id: "d9824bdc-8445-4327-be8b-5b47500af6ce" },
390
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
391
+ });
392
+ console.log(result.output);
393
+ ```
394
+ **Python**
395
+
396
+ ```python
397
+ from b3os import B3OS
398
+
399
+ b3os = B3OS()
400
+ result = b3os.actions.call({
401
+ "ref": "io.b3os/notion/get-database@1",
402
+ "input": {"database_id": "d9824bdc-8445-4327-be8b-5b47500af6ce"},
403
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
404
+ })
405
+ print(result["output"])
406
+ ```
407
+ **MCP**
408
+
409
+ ```json
410
+ {
411
+ "method": "tools/call",
412
+ "params": {
413
+ "name": "notion__get-database",
414
+ "arguments": {"database_id": "d9824bdc-8445-4327-be8b-5b47500af6ce"}
415
+ }
416
+ }
417
+ ```
418
+
419
+ Expose the pack as tools with `--packs notion` on the local server or `?packs=notion` on the remote URL, and the agent calls `notion__get-database` 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`.
420
+
421
+ Output, labeled `fixture`: Get database (documented response shape, example values). From the bundle's `fixtures/get-database.json`, not a live call.
422
+
423
+ ```json
424
+ {
425
+ "id": "d9824bdc-8445-4327-be8b-5b47500af6ce",
426
+ "title": "Roadmap items",
427
+ "url": "https://www.notion.so/d9824bdc84454327be8b5b47500af6ce",
428
+ "title_property": "Name",
429
+ "properties": {
430
+ "Name": {"id": "title", "name": "Name", "type": "title", "title": {}},
431
+ "Status": {
432
+ "id": "%3AA%3F",
433
+ "name": "Status",
434
+ "type": "status",
435
+ "status": {
436
+ "options": [
437
+ {"id": "1", "name": "Not started", "color": "default"},
438
+ {"id": "2", "name": "In progress", "color": "blue"},
439
+ {"id": "3", "name": "Done", "color": "green"}
440
+ ],
441
+ "groups": []
442
+ }
443
+ },
444
+ "Due": {"id": "M%3BBw", "name": "Due", "type": "date", "date": {}}
445
+ }
446
+ }
447
+ ```
448
+
449
+ 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:
450
+
451
+ | `pack_error.code` | Service status | Retryable | Message |
452
+ |---|---|---|---|
453
+ | `not_found` | 404 | no | Not found, or the page or database is not shared with the integration (Share, Connections). |
454
+ | `connection_unauthorized` | 401 | no | Notion rejected the integration token. |
455
+ | `forbidden` | 403 | no | built from the service's response |
456
+ | `conflict` | 409 | yes | built from the service's response |
457
+ | `rate_limited` | 429 | yes | Notion rate limit reached (about 3 requests a second per integration). |
458
+ | `invalid_request` | 400 | no | built from the service's response |
459
+
460
+ <h3 id="notion-query-database"><code>query-database</code></h3>
461
+
462
+ **Query database.** Rows (pages) of a database matching a Notion filter, in a Notion sort order: for example filter {"property": "Status", "status": {"equals": "In progress"}} and sorts [{"property": "Due", "direction": "ascending"}]. Returns each row's title, URL and property values; page with next_cursor.
463
+
464
+ Ref `io.b3os/notion/query-database@1.0.0` · effect `read` · connection `token` · MCP tool `notion__query-database`
465
+
466
+ **curl**
467
+
468
+ ```bash
469
+ curl -s https://beta-api.b3os.org/v1/actions/call \
470
+ -H "Authorization: Bearer $B3OS_API_KEY" \
471
+ -H "Content-Type: application/json" \
472
+ -d '{
473
+ "ref": "io.b3os/notion/query-database@1",
474
+ "input": {
475
+ "database_id": "d9824bdc-8445-4327-be8b-5b47500af6ce",
476
+ "filter": {"property": "Status", "status": {"equals": "In progress"}},
477
+ "page_size": 1
478
+ },
479
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
480
+ }'
481
+ ```
482
+ **TypeScript**
483
+
484
+ ```ts
485
+ import { B3OS } from "@b3os/sdk";
486
+
487
+ const b3os = new B3OS();
488
+ const result = await b3os.actions.call({
489
+ ref: "io.b3os/notion/query-database@1",
490
+ input: {
491
+ database_id: "d9824bdc-8445-4327-be8b-5b47500af6ce",
492
+ filter: { property: "Status", status: { equals: "In progress" } },
493
+ page_size: 1,
494
+ },
495
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
496
+ });
497
+ console.log(result.output);
498
+ ```
499
+ **Python**
500
+
501
+ ```python
502
+ from b3os import B3OS
503
+
504
+ b3os = B3OS()
505
+ result = b3os.actions.call({
506
+ "ref": "io.b3os/notion/query-database@1",
507
+ "input": {
508
+ "database_id": "d9824bdc-8445-4327-be8b-5b47500af6ce",
509
+ "filter": {"property": "Status", "status": {"equals": "In progress"}},
510
+ "page_size": 1,
511
+ },
512
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
513
+ })
514
+ print(result["output"])
515
+ ```
516
+ **MCP**
517
+
518
+ ```json
519
+ {
520
+ "method": "tools/call",
521
+ "params": {
522
+ "name": "notion__query-database",
523
+ "arguments": {
524
+ "database_id": "d9824bdc-8445-4327-be8b-5b47500af6ce",
525
+ "filter": {"property": "Status", "status": {"equals": "In progress"}},
526
+ "page_size": 1
527
+ }
528
+ }
529
+ }
530
+ ```
531
+
532
+ Expose the pack as tools with `--packs notion` on the local server or `?packs=notion` on the remote URL, and the agent calls `notion__query-database` 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`.
533
+
534
+ Output, labeled `fixture`: Query database (documented response shape, example values). From the bundle's `fixtures/query-database.json`, not a live call.
535
+
536
+ ```json
537
+ {
538
+ "results": [
539
+ {
540
+ "object": "page",
541
+ "id": "59833787-2cf9-4fdf-8782-e53db20768a5",
542
+ "title": "Q4 roadmap",
543
+ "url": "https://www.notion.so/Q4-roadmap-598337872cf94fdf8782e53db20768a5",
544
+ "created_time": "2026-10-20T15:00:00.000Z",
545
+ "last_edited_time": "2026-10-25T21:30:00.000Z",
546
+ "archived": false,
547
+ "parent_type": "database_id",
548
+ "properties": {
549
+ "Status": {
550
+ "id": "%3AA%3F",
551
+ "type": "status",
552
+ "status": {"id": "1", "name": "In progress", "color": "blue"}
553
+ },
554
+ "Owner": {"id": "bQk%5D", "type": "people", "people": []},
555
+ "Name": {
556
+ "id": "title",
557
+ "type": "title",
558
+ "title": [
559
+ {
560
+ "type": "text",
561
+ "text": {"content": "Q4 roadmap", "link": null},
562
+ "plain_text": "Q4 roadmap",
563
+ "href": null,
564
+ "annotations": {
565
+ "bold": false,
566
+ "italic": false,
567
+ "strikethrough": false,
568
+ "underline": false,
569
+ "code": false,
570
+ "color": "default"
571
+ }
572
+ }
573
+ ]
574
+ }
575
+ }
576
+ }
577
+ ```
578
+
579
+ The first 40 of 44 lines; the fixture file has the rest.
580
+
581
+ 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:
582
+
583
+ | `pack_error.code` | Service status | Retryable | Message |
584
+ |---|---|---|---|
585
+ | `not_found` | 404 | no | Not found, or the page or database is not shared with the integration (Share, Connections). |
586
+ | `connection_unauthorized` | 401 | no | Notion rejected the integration token. |
587
+ | `forbidden` | 403 | no | built from the service's response |
588
+ | `conflict` | 409 | yes | built from the service's response |
589
+ | `rate_limited` | 429 | yes | Notion rate limit reached (about 3 requests a second per integration). |
590
+ | `invalid_request` | 400 | no | built from the service's response |
591
+
592
+ <h3 id="notion-create-page"><code>create-page</code></h3>
593
+
594
+ **Create page.** Create a page with a title and an optional first paragraph, as a child of a page (parent_page_id) or as a row of a database (database_id). For a database row the title goes into the property named by title_property (default Name); to set other columns too, pass properties in Notion's shape including the title property, and title is then ignored. Returns the new page's id and URL. Not idempotent.
595
+
596
+ Ref `io.b3os/notion/create-page@1.0.0` · effect `write` · connection `token` · MCP tool `notion__create-page`
597
+
598
+ **curl**
599
+
600
+ ```bash
601
+ curl -s https://beta-api.b3os.org/v1/actions/call \
602
+ -H "Authorization: Bearer $B3OS_API_KEY" \
603
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
604
+ -H "Content-Type: application/json" \
605
+ -d '{
606
+ "ref": "io.b3os/notion/create-page@1",
607
+ "input": {
608
+ "parent_page_id": "59833787-2cf9-4fdf-8782-e53db20768a5",
609
+ "title": "Retro notes",
610
+ "content": "What went well: the release train."
611
+ },
612
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
613
+ }'
614
+ ```
615
+ **TypeScript**
616
+
617
+ ```ts
618
+ import { B3OS } from "@b3os/sdk";
619
+
620
+ const b3os = new B3OS();
621
+ const result = await b3os.actions.call({
622
+ ref: "io.b3os/notion/create-page@1",
623
+ input: {
624
+ parent_page_id: "59833787-2cf9-4fdf-8782-e53db20768a5",
625
+ title: "Retro notes",
626
+ content: "What went well: the release train.",
627
+ },
628
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
629
+ }, { idempotencyKey: crypto.randomUUID() });
630
+ console.log(result.output);
631
+ ```
632
+ **Python**
633
+
634
+ ```python
635
+ import uuid
636
+ from b3os import B3OS
637
+
638
+ b3os = B3OS()
639
+ result = b3os.actions.call({
640
+ "ref": "io.b3os/notion/create-page@1",
641
+ "input": {
642
+ "parent_page_id": "59833787-2cf9-4fdf-8782-e53db20768a5",
643
+ "title": "Retro notes",
644
+ "content": "What went well: the release train.",
645
+ },
646
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
647
+ }, idempotency_key=str(uuid.uuid4()))
648
+ print(result["output"])
649
+ ```
650
+ **MCP**
651
+
652
+ ```json
653
+ {
654
+ "method": "tools/call",
655
+ "params": {
656
+ "name": "notion__create-page",
657
+ "arguments": {
658
+ "parent_page_id": "59833787-2cf9-4fdf-8782-e53db20768a5",
659
+ "title": "Retro notes",
660
+ "content": "What went well: the release train."
661
+ }
662
+ }
663
+ }
664
+ ```
665
+
666
+ Expose the pack as tools with `--packs notion` on the local server or `?packs=notion` on the remote URL, and the agent calls `notion__create-page` 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`.
667
+
668
+ Output, labeled `fixture`: Create page (documented response shape, example values). From the bundle's `fixtures/create-page.json`, not a live call.
669
+
670
+ ```json
671
+ {
672
+ "id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
673
+ "url": "https://www.notion.so/Retro-notes-7a8b9c0d1e2f4a3b8c4d5e6f7a8b9c0d",
674
+ "created_time": "2026-10-20T15:00:00.000Z"
675
+ }
676
+ ```
677
+
678
+ 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:
679
+
680
+ | `pack_error.code` | Service status | Retryable | Message |
681
+ |---|---|---|---|
682
+ | `not_found` | 404 | no | Not found, or the page or database is not shared with the integration (Share, Connections). |
683
+ | `connection_unauthorized` | 401 | no | Notion rejected the integration token. |
684
+ | `forbidden` | 403 | no | built from the service's response |
685
+ | `conflict` | 409 | yes | built from the service's response |
686
+ | `rate_limited` | 429 | yes | Notion rate limit reached (about 3 requests a second per integration). |
687
+ | `invalid_request` | 400 | no | built from the service's response |
688
+
689
+ <h3 id="notion-append-paragraphs"><code>append-paragraphs</code></h3>
690
+
691
+ **Append paragraphs.** Append plain-text paragraphs (each up to 2,000 characters, at most 100) to the end of a page or block. Returns the ids of the new blocks. Not idempotent.
692
+
693
+ Ref `io.b3os/notion/append-paragraphs@1.0.0` · effect `write` · connection `token` · MCP tool `notion__append-paragraphs`
694
+
695
+ **curl**
696
+
697
+ ```bash
698
+ curl -s https://beta-api.b3os.org/v1/actions/call \
699
+ -H "Authorization: Bearer $B3OS_API_KEY" \
700
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
701
+ -H "Content-Type: application/json" \
702
+ -d '{
703
+ "ref": "io.b3os/notion/append-paragraphs@1",
704
+ "input": {
705
+ "block_id": "59833787-2cf9-4fdf-8782-e53db20768a5",
706
+ "paragraphs": ["Decision: ship Thursday.", "Owner: Mona."]
707
+ },
708
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
709
+ }'
710
+ ```
711
+ **TypeScript**
712
+
713
+ ```ts
714
+ import { B3OS } from "@b3os/sdk";
715
+
716
+ const b3os = new B3OS();
717
+ const result = await b3os.actions.call({
718
+ ref: "io.b3os/notion/append-paragraphs@1",
719
+ input: {
720
+ block_id: "59833787-2cf9-4fdf-8782-e53db20768a5",
721
+ paragraphs: ["Decision: ship Thursday.", "Owner: Mona."],
722
+ },
723
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
724
+ }, { idempotencyKey: crypto.randomUUID() });
725
+ console.log(result.output);
726
+ ```
727
+ **Python**
728
+
729
+ ```python
730
+ import uuid
731
+ from b3os import B3OS
732
+
733
+ b3os = B3OS()
734
+ result = b3os.actions.call({
735
+ "ref": "io.b3os/notion/append-paragraphs@1",
736
+ "input": {
737
+ "block_id": "59833787-2cf9-4fdf-8782-e53db20768a5",
738
+ "paragraphs": ["Decision: ship Thursday.", "Owner: Mona."],
739
+ },
740
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
741
+ }, idempotency_key=str(uuid.uuid4()))
742
+ print(result["output"])
743
+ ```
744
+ **MCP**
745
+
746
+ ```json
747
+ {
748
+ "method": "tools/call",
749
+ "params": {
750
+ "name": "notion__append-paragraphs",
751
+ "arguments": {
752
+ "block_id": "59833787-2cf9-4fdf-8782-e53db20768a5",
753
+ "paragraphs": ["Decision: ship Thursday.", "Owner: Mona."]
754
+ }
755
+ }
756
+ }
757
+ ```
758
+
759
+ Expose the pack as tools with `--packs notion` on the local server or `?packs=notion` on the remote URL, and the agent calls `notion__append-paragraphs` 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`.
760
+
761
+ Output, labeled `fixture`: Append paragraphs (documented response shape, example values). From the bundle's `fixtures/append-paragraphs.json`, not a live call.
762
+
763
+ ```json
764
+ {
765
+ "block_ids": [
766
+ "9b8a7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
767
+ "8a7b6c5d-4e3f-4a2b-1c0d-9e8f7a6b5c4d"
768
+ ]
769
+ }
770
+ ```
771
+
772
+ 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:
773
+
774
+ | `pack_error.code` | Service status | Retryable | Message |
775
+ |---|---|---|---|
776
+ | `not_found` | 404 | no | Not found, or the page or database is not shared with the integration (Share, Connections). |
777
+ | `connection_unauthorized` | 401 | no | Notion rejected the integration token. |
778
+ | `forbidden` | 403 | no | built from the service's response |
779
+ | `conflict` | 409 | yes | built from the service's response |
780
+ | `rate_limited` | 429 | yes | Notion rate limit reached (about 3 requests a second per integration). |
781
+ | `invalid_request` | 400 | no | built from the service's response |
782
+
783
+ <h3 id="notion-update-page-properties"><code>update-page-properties</code></h3>
784
+
785
+ **Update page properties.** Set property values of a page or database row, in Notion's shape, for example {"Status": {"status": {"name": "Done"}}}. Properties not named keep their values.
786
+
787
+ Ref `io.b3os/notion/update-page-properties@1.0.0` · effect `write` · connection `token` · MCP tool `notion__update-page-properties`
788
+
789
+ **curl**
790
+
791
+ ```bash
792
+ curl -s https://beta-api.b3os.org/v1/actions/call \
793
+ -H "Authorization: Bearer $B3OS_API_KEY" \
794
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
795
+ -H "Content-Type: application/json" \
796
+ -d '{
797
+ "ref": "io.b3os/notion/update-page-properties@1",
798
+ "input": {
799
+ "page_id": "59833787-2cf9-4fdf-8782-e53db20768a5",
800
+ "properties": {"Status": {"status": {"name": "Done"}}}
801
+ },
802
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
803
+ }'
804
+ ```
805
+ **TypeScript**
806
+
807
+ ```ts
808
+ import { B3OS } from "@b3os/sdk";
809
+
810
+ const b3os = new B3OS();
811
+ const result = await b3os.actions.call({
812
+ ref: "io.b3os/notion/update-page-properties@1",
813
+ input: {
814
+ page_id: "59833787-2cf9-4fdf-8782-e53db20768a5",
815
+ properties: { Status: { status: { name: "Done" } } },
816
+ },
817
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
818
+ }, { idempotencyKey: crypto.randomUUID() });
819
+ console.log(result.output);
820
+ ```
821
+ **Python**
822
+
823
+ ```python
824
+ import uuid
825
+ from b3os import B3OS
826
+
827
+ b3os = B3OS()
828
+ result = b3os.actions.call({
829
+ "ref": "io.b3os/notion/update-page-properties@1",
830
+ "input": {
831
+ "page_id": "59833787-2cf9-4fdf-8782-e53db20768a5",
832
+ "properties": {"Status": {"status": {"name": "Done"}}},
833
+ },
834
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
835
+ }, idempotency_key=str(uuid.uuid4()))
836
+ print(result["output"])
837
+ ```
838
+ **MCP**
839
+
840
+ ```json
841
+ {
842
+ "method": "tools/call",
843
+ "params": {
844
+ "name": "notion__update-page-properties",
845
+ "arguments": {
846
+ "page_id": "59833787-2cf9-4fdf-8782-e53db20768a5",
847
+ "properties": {"Status": {"status": {"name": "Done"}}}
848
+ }
849
+ }
850
+ }
851
+ ```
852
+
853
+ Expose the pack as tools with `--packs notion` on the local server or `?packs=notion` on the remote URL, and the agent calls `notion__update-page-properties` 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`.
854
+
855
+ Output, labeled `fixture`: Update page properties (documented response shape, example values). From the bundle's `fixtures/update-page-properties.json`, not a live call.
856
+
857
+ ```json
858
+ {
859
+ "object": "page",
860
+ "id": "59833787-2cf9-4fdf-8782-e53db20768a5",
861
+ "title": "Q4 roadmap",
862
+ "url": "https://www.notion.so/Q4-roadmap-598337872cf94fdf8782e53db20768a5",
863
+ "created_time": "2026-10-20T15:00:00.000Z",
864
+ "last_edited_time": "2026-10-25T21:30:00.000Z",
865
+ "archived": false,
866
+ "parent_type": "database_id",
867
+ "properties": {
868
+ "Status": {
869
+ "id": "%3AA%3F",
870
+ "type": "status",
871
+ "status": {"id": "1", "name": "In progress", "color": "blue"}
872
+ },
873
+ "Owner": {"id": "bQk%5D", "type": "people", "people": []},
874
+ "Name": {
875
+ "id": "title",
876
+ "type": "title",
877
+ "title": [
878
+ {
879
+ "type": "text",
880
+ "text": {"content": "Q4 roadmap", "link": null},
881
+ "plain_text": "Q4 roadmap",
882
+ "href": null,
883
+ "annotations": {
884
+ "bold": false,
885
+ "italic": false,
886
+ "strikethrough": false,
887
+ "underline": false,
888
+ "code": false,
889
+ "color": "default"
890
+ }
891
+ }
892
+ ]
893
+ }
894
+ }
895
+ }
896
+ ```
897
+
898
+ 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:
899
+
900
+ | `pack_error.code` | Service status | Retryable | Message |
901
+ |---|---|---|---|
902
+ | `not_found` | 404 | no | Not found, or the page or database is not shared with the integration (Share, Connections). |
903
+ | `connection_unauthorized` | 401 | no | Notion rejected the integration token. |
904
+ | `forbidden` | 403 | no | built from the service's response |
905
+ | `conflict` | 409 | yes | built from the service's response |
906
+ | `rate_limited` | 429 | yes | Notion rate limit reached (about 3 requests a second per integration). |
907
+ | `invalid_request` | 400 | no | built from the service's response |
908
+
909
+ <h3 id="notion-archive-page"><code>archive-page</code></h3>
910
+
911
+ **Archive page.** Move a page (or database row) to the trash. It can be restored from Notion's trash for 30 days.
912
+
913
+ Ref `io.b3os/notion/archive-page@1.0.0` · effect `write` · connection `token` · MCP tool `notion__archive-page`
914
+
915
+ **curl**
916
+
917
+ ```bash
918
+ curl -s https://beta-api.b3os.org/v1/actions/call \
919
+ -H "Authorization: Bearer $B3OS_API_KEY" \
920
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
921
+ -H "Content-Type: application/json" \
922
+ -d '{
923
+ "ref": "io.b3os/notion/archive-page@1",
924
+ "input": {"page_id": "59833787-2cf9-4fdf-8782-e53db20768a5"},
925
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
926
+ }'
927
+ ```
928
+ **TypeScript**
929
+
930
+ ```ts
931
+ import { B3OS } from "@b3os/sdk";
932
+
933
+ const b3os = new B3OS();
934
+ const result = await b3os.actions.call({
935
+ ref: "io.b3os/notion/archive-page@1",
936
+ input: { page_id: "59833787-2cf9-4fdf-8782-e53db20768a5" },
937
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
938
+ }, { idempotencyKey: crypto.randomUUID() });
939
+ console.log(result.output);
940
+ ```
941
+ **Python**
942
+
943
+ ```python
944
+ import uuid
945
+ from b3os import B3OS
946
+
947
+ b3os = B3OS()
948
+ result = b3os.actions.call({
949
+ "ref": "io.b3os/notion/archive-page@1",
950
+ "input": {"page_id": "59833787-2cf9-4fdf-8782-e53db20768a5"},
951
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
952
+ }, idempotency_key=str(uuid.uuid4()))
953
+ print(result["output"])
954
+ ```
955
+ **MCP**
956
+
957
+ ```json
958
+ {
959
+ "method": "tools/call",
960
+ "params": {
961
+ "name": "notion__archive-page",
962
+ "arguments": {"page_id": "59833787-2cf9-4fdf-8782-e53db20768a5"}
963
+ }
964
+ }
965
+ ```
966
+
967
+ Expose the pack as tools with `--packs notion` on the local server or `?packs=notion` on the remote URL, and the agent calls `notion__archive-page` 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`.
968
+
969
+ Output, labeled `fixture`: Archive page (documented response shape, example values). From the bundle's `fixtures/archive-page.json`, not a live call.
970
+
971
+ ```json
972
+ {"id": "59833787-2cf9-4fdf-8782-e53db20768a5", "archived": true}
973
+ ```
974
+
975
+ 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:
976
+
977
+ | `pack_error.code` | Service status | Retryable | Message |
978
+ |---|---|---|---|
979
+ | `not_found` | 404 | no | Not found, or the page or database is not shared with the integration (Share, Connections). |
980
+ | `connection_unauthorized` | 401 | no | Notion rejected the integration token. |
981
+ | `forbidden` | 403 | no | built from the service's response |
982
+ | `conflict` | 409 | yes | built from the service's response |
983
+ | `rate_limited` | 429 | yes | Notion rate limit reached (about 3 requests a second per integration). |
984
+ | `invalid_request` | 400 | no | built from the service's response |
985
+
986
+ <h3 id="notion-add-comment"><code>add-comment</code></h3>
987
+
988
+ **Comment on page.** Add a comment to a page's discussion, plain text up to 2,000 characters. The integration needs the Insert comments capability. Not idempotent.
989
+
990
+ Ref `io.b3os/notion/add-comment@1.0.0` · effect `write` · connection `token` · MCP tool `notion__add-comment`
991
+
992
+ **curl**
993
+
994
+ ```bash
995
+ curl -s https://beta-api.b3os.org/v1/actions/call \
996
+ -H "Authorization: Bearer $B3OS_API_KEY" \
997
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
998
+ -H "Content-Type: application/json" \
999
+ -d '{
1000
+ "ref": "io.b3os/notion/add-comment@1",
1001
+ "input": {
1002
+ "page_id": "59833787-2cf9-4fdf-8782-e53db20768a5",
1003
+ "text": "Looks good to me."
1004
+ },
1005
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1006
+ }'
1007
+ ```
1008
+ **TypeScript**
1009
+
1010
+ ```ts
1011
+ import { B3OS } from "@b3os/sdk";
1012
+
1013
+ const b3os = new B3OS();
1014
+ const result = await b3os.actions.call({
1015
+ ref: "io.b3os/notion/add-comment@1",
1016
+ input: {
1017
+ page_id: "59833787-2cf9-4fdf-8782-e53db20768a5",
1018
+ text: "Looks good to me.",
1019
+ },
1020
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1021
+ }, { idempotencyKey: crypto.randomUUID() });
1022
+ console.log(result.output);
1023
+ ```
1024
+ **Python**
1025
+
1026
+ ```python
1027
+ import uuid
1028
+ from b3os import B3OS
1029
+
1030
+ b3os = B3OS()
1031
+ result = b3os.actions.call({
1032
+ "ref": "io.b3os/notion/add-comment@1",
1033
+ "input": {
1034
+ "page_id": "59833787-2cf9-4fdf-8782-e53db20768a5",
1035
+ "text": "Looks good to me.",
1036
+ },
1037
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1038
+ }, idempotency_key=str(uuid.uuid4()))
1039
+ print(result["output"])
1040
+ ```
1041
+ **MCP**
1042
+
1043
+ ```json
1044
+ {
1045
+ "method": "tools/call",
1046
+ "params": {
1047
+ "name": "notion__add-comment",
1048
+ "arguments": {
1049
+ "page_id": "59833787-2cf9-4fdf-8782-e53db20768a5",
1050
+ "text": "Looks good to me."
1051
+ }
1052
+ }
1053
+ }
1054
+ ```
1055
+
1056
+ Expose the pack as tools with `--packs notion` on the local server or `?packs=notion` on the remote URL, and the agent calls `notion__add-comment` 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`.
1057
+
1058
+ Output, labeled `fixture`: Comment on page (documented response shape, example values). From the bundle's `fixtures/add-comment.json`, not a live call.
1059
+
1060
+ ```json
1061
+ {
1062
+ "id": "3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f",
1063
+ "discussion_id": "f1e2d3c4-b5a6-4978-8f6e-5d4c3b2a1f0e",
1064
+ "created_time": "2026-10-26T08:00:00.000Z"
1065
+ }
1066
+ ```
1067
+
1068
+ 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:
1069
+
1070
+ | `pack_error.code` | Service status | Retryable | Message |
1071
+ |---|---|---|---|
1072
+ | `not_found` | 404 | no | Not found, or the page or database is not shared with the integration (Share, Connections). |
1073
+ | `connection_unauthorized` | 401 | no | Notion rejected the integration token. |
1074
+ | `forbidden` | 403 | no | built from the service's response |
1075
+ | `conflict` | 409 | yes | built from the service's response |
1076
+ | `rate_limited` | 429 | yes | Notion rate limit reached (about 3 requests a second per integration). |
1077
+ | `invalid_request` | 400 | no | built from the service's response |