@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,700 @@
1
+ # Google Sheets
2
+
3
+ > The io.b3os/google-sheets 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/google-sheets.md
6
+
7
+ <a id="google-sheets"></a>
8
+
9
+ `io.b3os/google-sheets` 1.0.0 · `spreadsheets`, `productivity` · MIT
10
+
11
+ Read and write Google Sheets with your own Google OAuth token: spreadsheet metadata and tabs, values of one or several ranges, appending rows, updating and clearing ranges, and creating spreadsheets. Uses the Sheets API v4. Needs the spreadsheets scope (or spreadsheets.readonly for the read actions) from your own OAuth client.
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
+ `google`, type `oauth2`: Google account (Sheets).
18
+
19
+ An OAuth access token for your Google account from your own Google Cloud OAuth client, with the scopes listed here. Store the refresh_token, client_id and client_secret with it so the vault can refresh the token (access tokens last an hour); B3OS never uses a Google client of its own.
20
+
21
+ How to get one: [developers.google.com](https://developers.google.com/identity/protocols/oauth2/web-server).
22
+
23
+ Scopes the pack's actions use: `https://www.googleapis.com/auth/spreadsheets`. The manifest names them per connection, not per action.
24
+
25
+ The credential is sent only to `sheets.googleapis.com`.
26
+
27
+ 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)).
28
+
29
+ Hosts it reaches: `sheets.googleapis.com`.
30
+
31
+ ## Actions
32
+
33
+ | Action | Effect | MCP tool | Title |
34
+ |---|---|---|---|
35
+ | [`get-spreadsheet`](https://docs.beta.b3os.org/actions/catalog/google-sheets#google-sheets-get-spreadsheet) | read | `google-sheets__get-spreadsheet` | Get spreadsheet |
36
+ | [`get-values`](https://docs.beta.b3os.org/actions/catalog/google-sheets#google-sheets-get-values) | read | `google-sheets__get-values` | Get values |
37
+ | [`batch-get-values`](https://docs.beta.b3os.org/actions/catalog/google-sheets#google-sheets-batch-get-values) | read | `google-sheets__batch-get-values` | Get values of several ranges |
38
+ | [`append-rows`](https://docs.beta.b3os.org/actions/catalog/google-sheets#google-sheets-append-rows) | write | `google-sheets__append-rows` | Append rows |
39
+ | [`update-values`](https://docs.beta.b3os.org/actions/catalog/google-sheets#google-sheets-update-values) | write | `google-sheets__update-values` | Update values |
40
+ | [`clear-values`](https://docs.beta.b3os.org/actions/catalog/google-sheets#google-sheets-clear-values) | write | `google-sheets__clear-values` | Clear values |
41
+ | [`create-spreadsheet`](https://docs.beta.b3os.org/actions/catalog/google-sheets#google-sheets-create-spreadsheet) | write | `google-sheets__create-spreadsheet` | Create spreadsheet |
42
+
43
+ <h3 id="google-sheets-get-spreadsheet"><code>get-spreadsheet</code></h3>
44
+
45
+ **Get spreadsheet.** A spreadsheet's title, locale, time zone, URL and tabs (sheet id, title, index, row and column count). Use the tab titles in ranges.
46
+
47
+ Ref `io.b3os/google-sheets/get-spreadsheet@1.0.0` · effect `read` · connection `google` · MCP tool `google-sheets__get-spreadsheet`
48
+
49
+ **curl**
50
+
51
+ ```bash
52
+ curl -s https://beta-api.b3os.org/v1/actions/call \
53
+ -H "Authorization: Bearer $B3OS_API_KEY" \
54
+ -H "Content-Type: application/json" \
55
+ -d '{
56
+ "ref": "io.b3os/google-sheets/get-spreadsheet@1",
57
+ "input": {"spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"},
58
+ "connections": {"google": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
59
+ }'
60
+ ```
61
+ **TypeScript**
62
+
63
+ ```ts
64
+ import { B3OS } from "@b3os/sdk";
65
+
66
+ const b3os = new B3OS();
67
+ const result = await b3os.actions.call({
68
+ ref: "io.b3os/google-sheets/get-spreadsheet@1",
69
+ input: { spreadsheet_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms" },
70
+ connections: { google: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
71
+ });
72
+ console.log(result.output);
73
+ ```
74
+ **Python**
75
+
76
+ ```python
77
+ from b3os import B3OS
78
+
79
+ b3os = B3OS()
80
+ result = b3os.actions.call({
81
+ "ref": "io.b3os/google-sheets/get-spreadsheet@1",
82
+ "input": {
83
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
84
+ },
85
+ "connections": {"google": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
86
+ })
87
+ print(result["output"])
88
+ ```
89
+ **MCP**
90
+
91
+ ```json
92
+ {
93
+ "method": "tools/call",
94
+ "params": {
95
+ "name": "google-sheets__get-spreadsheet",
96
+ "arguments": {"spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"}
97
+ }
98
+ }
99
+ ```
100
+
101
+ Expose the pack as tools with `--packs google-sheets` on the local server or `?packs=google-sheets` on the remote URL, and the agent calls `google-sheets__get-spreadsheet` 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`.
102
+
103
+ Output, labeled `fixture`: Get spreadsheet (documented response shape, example values). From the bundle's `fixtures/get-spreadsheet.json`, not a live call.
104
+
105
+ ```json
106
+ {
107
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
108
+ "title": "Q4 pipeline",
109
+ "locale": "en_US",
110
+ "time_zone": "America/Los_Angeles",
111
+ "url": "https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit",
112
+ "sheets": [
113
+ {
114
+ "sheet_id": 0,
115
+ "title": "Deals",
116
+ "index": 0,
117
+ "row_count": 1000,
118
+ "column_count": 26
119
+ },
120
+ {
121
+ "sheet_id": 1522233,
122
+ "title": "Summary",
123
+ "index": 1,
124
+ "row_count": 100,
125
+ "column_count": 10
126
+ }
127
+ ]
128
+ }
129
+ ```
130
+
131
+ 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:
132
+
133
+ | `pack_error.code` | Service status | Retryable | Message |
134
+ |---|---|---|---|
135
+ | `not_found` | 404 | no | built from the service's response |
136
+ | `connection_unauthorized` | 401 | no | Google rejected the access token (expired or revoked); refresh or reconnect it. |
137
+ | `rate_limited` | 429, 403 | yes | built from the service's response |
138
+ | `forbidden` | 403 | no | built from the service's response |
139
+ | `invalid_request` | 400 | no | built from the service's response |
140
+ | `conflict` | 409 | no | built from the service's response |
141
+
142
+ <h3 id="google-sheets-get-values"><code>get-values</code></h3>
143
+
144
+ **Get values.** Cell values of one range as rows (or columns with major_dimension COLUMNS). Formatted values by default (as shown in the UI); UNFORMATTED_VALUE gives raw numbers and FORMULA the formulas. Trailing empty rows and cells are left out.
145
+
146
+ Ref `io.b3os/google-sheets/get-values@1.0.0` · effect `read` · connection `google` · MCP tool `google-sheets__get-values`
147
+
148
+ **curl**
149
+
150
+ ```bash
151
+ curl -s https://beta-api.b3os.org/v1/actions/call \
152
+ -H "Authorization: Bearer $B3OS_API_KEY" \
153
+ -H "Content-Type: application/json" \
154
+ -d '{
155
+ "ref": "io.b3os/google-sheets/get-values@1",
156
+ "input": {
157
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
158
+ "range": "Deals!A1:C3"
159
+ },
160
+ "connections": {"google": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
161
+ }'
162
+ ```
163
+ **TypeScript**
164
+
165
+ ```ts
166
+ import { B3OS } from "@b3os/sdk";
167
+
168
+ const b3os = new B3OS();
169
+ const result = await b3os.actions.call({
170
+ ref: "io.b3os/google-sheets/get-values@1",
171
+ input: {
172
+ spreadsheet_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
173
+ range: "Deals!A1:C3",
174
+ },
175
+ connections: { google: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
176
+ });
177
+ console.log(result.output);
178
+ ```
179
+ **Python**
180
+
181
+ ```python
182
+ from b3os import B3OS
183
+
184
+ b3os = B3OS()
185
+ result = b3os.actions.call({
186
+ "ref": "io.b3os/google-sheets/get-values@1",
187
+ "input": {
188
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
189
+ "range": "Deals!A1:C3",
190
+ },
191
+ "connections": {"google": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
192
+ })
193
+ print(result["output"])
194
+ ```
195
+ **MCP**
196
+
197
+ ```json
198
+ {
199
+ "method": "tools/call",
200
+ "params": {
201
+ "name": "google-sheets__get-values",
202
+ "arguments": {
203
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
204
+ "range": "Deals!A1:C3"
205
+ }
206
+ }
207
+ }
208
+ ```
209
+
210
+ Expose the pack as tools with `--packs google-sheets` on the local server or `?packs=google-sheets` on the remote URL, and the agent calls `google-sheets__get-values` 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`.
211
+
212
+ Output, labeled `fixture`: Get values (documented response shape, example values). From the bundle's `fixtures/get-values.json`, not a live call.
213
+
214
+ ```json
215
+ {
216
+ "range": "Deals!A1:C3",
217
+ "major_dimension": "ROWS",
218
+ "values": [
219
+ ["Company", "Stage", "Amount"],
220
+ ["Acme", "Proposal", "$12,000"],
221
+ ["Globex", "Won", "$48,500"]
222
+ ]
223
+ }
224
+ ```
225
+
226
+ 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:
227
+
228
+ | `pack_error.code` | Service status | Retryable | Message |
229
+ |---|---|---|---|
230
+ | `not_found` | 404 | no | built from the service's response |
231
+ | `connection_unauthorized` | 401 | no | Google rejected the access token (expired or revoked); refresh or reconnect it. |
232
+ | `rate_limited` | 429, 403 | yes | built from the service's response |
233
+ | `forbidden` | 403 | no | built from the service's response |
234
+ | `invalid_request` | 400 | no | built from the service's response |
235
+ | `conflict` | 409 | no | built from the service's response |
236
+
237
+ <h3 id="google-sheets-batch-get-values"><code>batch-get-values</code></h3>
238
+
239
+ **Get values of several ranges.** Cell values of up to 50 ranges in one call, in the order given, each with its resolved range and rows.
240
+
241
+ Ref `io.b3os/google-sheets/batch-get-values@1.0.0` · effect `read` · connection `google` · MCP tool `google-sheets__batch-get-values`
242
+
243
+ **curl**
244
+
245
+ ```bash
246
+ curl -s https://beta-api.b3os.org/v1/actions/call \
247
+ -H "Authorization: Bearer $B3OS_API_KEY" \
248
+ -H "Content-Type: application/json" \
249
+ -d '{
250
+ "ref": "io.b3os/google-sheets/batch-get-values@1",
251
+ "input": {
252
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
253
+ "ranges": ["Deals!A1:A3", "Summary!B2"]
254
+ },
255
+ "connections": {"google": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
256
+ }'
257
+ ```
258
+ **TypeScript**
259
+
260
+ ```ts
261
+ import { B3OS } from "@b3os/sdk";
262
+
263
+ const b3os = new B3OS();
264
+ const result = await b3os.actions.call({
265
+ ref: "io.b3os/google-sheets/batch-get-values@1",
266
+ input: {
267
+ spreadsheet_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
268
+ ranges: ["Deals!A1:A3", "Summary!B2"],
269
+ },
270
+ connections: { google: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
271
+ });
272
+ console.log(result.output);
273
+ ```
274
+ **Python**
275
+
276
+ ```python
277
+ from b3os import B3OS
278
+
279
+ b3os = B3OS()
280
+ result = b3os.actions.call({
281
+ "ref": "io.b3os/google-sheets/batch-get-values@1",
282
+ "input": {
283
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
284
+ "ranges": ["Deals!A1:A3", "Summary!B2"],
285
+ },
286
+ "connections": {"google": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
287
+ })
288
+ print(result["output"])
289
+ ```
290
+ **MCP**
291
+
292
+ ```json
293
+ {
294
+ "method": "tools/call",
295
+ "params": {
296
+ "name": "google-sheets__batch-get-values",
297
+ "arguments": {
298
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
299
+ "ranges": ["Deals!A1:A3", "Summary!B2"]
300
+ }
301
+ }
302
+ }
303
+ ```
304
+
305
+ Expose the pack as tools with `--packs google-sheets` on the local server or `?packs=google-sheets` on the remote URL, and the agent calls `google-sheets__batch-get-values` 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`.
306
+
307
+ Output, labeled `fixture`: Get values of several ranges (documented response shape, example values). From the bundle's `fixtures/batch-get-values.json`, not a live call.
308
+
309
+ ```json
310
+ {
311
+ "value_ranges": [
312
+ {
313
+ "range": "Deals!A1:A3",
314
+ "values": [["Company"], ["Acme"], ["Globex"]]
315
+ },
316
+ {"range": "Summary!B2", "values": [["$60,500"]]}
317
+ ]
318
+ }
319
+ ```
320
+
321
+ 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:
322
+
323
+ | `pack_error.code` | Service status | Retryable | Message |
324
+ |---|---|---|---|
325
+ | `not_found` | 404 | no | built from the service's response |
326
+ | `connection_unauthorized` | 401 | no | Google rejected the access token (expired or revoked); refresh or reconnect it. |
327
+ | `rate_limited` | 429, 403 | yes | built from the service's response |
328
+ | `forbidden` | 403 | no | built from the service's response |
329
+ | `invalid_request` | 400 | no | built from the service's response |
330
+ | `conflict` | 409 | no | built from the service's response |
331
+
332
+ <h3 id="google-sheets-append-rows"><code>append-rows</code></h3>
333
+
334
+ **Append rows.** Append rows after the last row of data in a range's table (for example Sheet1!A:D), inserting new rows so nothing is overwritten. Returns the range written. Not idempotent: calling it twice appends twice.
335
+
336
+ Ref `io.b3os/google-sheets/append-rows@1.0.0` · effect `write` · connection `google` · MCP tool `google-sheets__append-rows`
337
+
338
+ **curl**
339
+
340
+ ```bash
341
+ curl -s https://beta-api.b3os.org/v1/actions/call \
342
+ -H "Authorization: Bearer $B3OS_API_KEY" \
343
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
344
+ -H "Content-Type: application/json" \
345
+ -d '{
346
+ "ref": "io.b3os/google-sheets/append-rows@1",
347
+ "input": {
348
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
349
+ "range": "Deals!A:C",
350
+ "values": [["Initech", "Discovery", 9000]]
351
+ },
352
+ "connections": {"google": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
353
+ }'
354
+ ```
355
+ **TypeScript**
356
+
357
+ ```ts
358
+ import { B3OS } from "@b3os/sdk";
359
+
360
+ const b3os = new B3OS();
361
+ const result = await b3os.actions.call({
362
+ ref: "io.b3os/google-sheets/append-rows@1",
363
+ input: {
364
+ spreadsheet_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
365
+ range: "Deals!A:C",
366
+ values: [["Initech", "Discovery", 9000]],
367
+ },
368
+ connections: { google: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
369
+ }, { idempotencyKey: crypto.randomUUID() });
370
+ console.log(result.output);
371
+ ```
372
+ **Python**
373
+
374
+ ```python
375
+ import uuid
376
+ from b3os import B3OS
377
+
378
+ b3os = B3OS()
379
+ result = b3os.actions.call({
380
+ "ref": "io.b3os/google-sheets/append-rows@1",
381
+ "input": {
382
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
383
+ "range": "Deals!A:C",
384
+ "values": [["Initech", "Discovery", 9000]],
385
+ },
386
+ "connections": {"google": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
387
+ }, idempotency_key=str(uuid.uuid4()))
388
+ print(result["output"])
389
+ ```
390
+ **MCP**
391
+
392
+ ```json
393
+ {
394
+ "method": "tools/call",
395
+ "params": {
396
+ "name": "google-sheets__append-rows",
397
+ "arguments": {
398
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
399
+ "range": "Deals!A:C",
400
+ "values": [["Initech", "Discovery", 9000]]
401
+ }
402
+ }
403
+ }
404
+ ```
405
+
406
+ Expose the pack as tools with `--packs google-sheets` on the local server or `?packs=google-sheets` on the remote URL, and the agent calls `google-sheets__append-rows` 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`.
407
+
408
+ Output, labeled `fixture`: Append rows (documented response shape, example values). From the bundle's `fixtures/append-rows.json`, not a live call.
409
+
410
+ ```json
411
+ {
412
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
413
+ "updated_range": "Deals!A4:C4",
414
+ "updated_rows": 1,
415
+ "updated_columns": 3,
416
+ "updated_cells": 3
417
+ }
418
+ ```
419
+
420
+ 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:
421
+
422
+ | `pack_error.code` | Service status | Retryable | Message |
423
+ |---|---|---|---|
424
+ | `not_found` | 404 | no | built from the service's response |
425
+ | `connection_unauthorized` | 401 | no | Google rejected the access token (expired or revoked); refresh or reconnect it. |
426
+ | `rate_limited` | 429, 403 | yes | built from the service's response |
427
+ | `forbidden` | 403 | no | built from the service's response |
428
+ | `invalid_request` | 400 | no | built from the service's response |
429
+ | `conflict` | 409 | no | built from the service's response |
430
+
431
+ <h3 id="google-sheets-update-values"><code>update-values</code></h3>
432
+
433
+ **Update values.** Overwrite the cells of a range with the given rows, starting at its top-left cell. Cells outside the given rows keep their values.
434
+
435
+ Ref `io.b3os/google-sheets/update-values@1.0.0` · effect `write` · connection `google` · MCP tool `google-sheets__update-values`
436
+
437
+ **curl**
438
+
439
+ ```bash
440
+ curl -s https://beta-api.b3os.org/v1/actions/call \
441
+ -H "Authorization: Bearer $B3OS_API_KEY" \
442
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
443
+ -H "Content-Type: application/json" \
444
+ -d '{
445
+ "ref": "io.b3os/google-sheets/update-values@1",
446
+ "input": {
447
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
448
+ "range": "Deals!B2",
449
+ "values": [["Won"]]
450
+ },
451
+ "connections": {"google": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
452
+ }'
453
+ ```
454
+ **TypeScript**
455
+
456
+ ```ts
457
+ import { B3OS } from "@b3os/sdk";
458
+
459
+ const b3os = new B3OS();
460
+ const result = await b3os.actions.call({
461
+ ref: "io.b3os/google-sheets/update-values@1",
462
+ input: {
463
+ spreadsheet_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
464
+ range: "Deals!B2",
465
+ values: [["Won"]],
466
+ },
467
+ connections: { google: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
468
+ }, { idempotencyKey: crypto.randomUUID() });
469
+ console.log(result.output);
470
+ ```
471
+ **Python**
472
+
473
+ ```python
474
+ import uuid
475
+ from b3os import B3OS
476
+
477
+ b3os = B3OS()
478
+ result = b3os.actions.call({
479
+ "ref": "io.b3os/google-sheets/update-values@1",
480
+ "input": {
481
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
482
+ "range": "Deals!B2",
483
+ "values": [["Won"]],
484
+ },
485
+ "connections": {"google": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
486
+ }, idempotency_key=str(uuid.uuid4()))
487
+ print(result["output"])
488
+ ```
489
+ **MCP**
490
+
491
+ ```json
492
+ {
493
+ "method": "tools/call",
494
+ "params": {
495
+ "name": "google-sheets__update-values",
496
+ "arguments": {
497
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
498
+ "range": "Deals!B2",
499
+ "values": [["Won"]]
500
+ }
501
+ }
502
+ }
503
+ ```
504
+
505
+ Expose the pack as tools with `--packs google-sheets` on the local server or `?packs=google-sheets` on the remote URL, and the agent calls `google-sheets__update-values` 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`.
506
+
507
+ Output, labeled `fixture`: Update values (documented response shape, example values). From the bundle's `fixtures/update-values.json`, not a live call.
508
+
509
+ ```json
510
+ {
511
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
512
+ "updated_range": "Deals!B2",
513
+ "updated_rows": 1,
514
+ "updated_columns": 1,
515
+ "updated_cells": 1
516
+ }
517
+ ```
518
+
519
+ 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:
520
+
521
+ | `pack_error.code` | Service status | Retryable | Message |
522
+ |---|---|---|---|
523
+ | `not_found` | 404 | no | built from the service's response |
524
+ | `connection_unauthorized` | 401 | no | Google rejected the access token (expired or revoked); refresh or reconnect it. |
525
+ | `rate_limited` | 429, 403 | yes | built from the service's response |
526
+ | `forbidden` | 403 | no | built from the service's response |
527
+ | `invalid_request` | 400 | no | built from the service's response |
528
+ | `conflict` | 409 | no | built from the service's response |
529
+
530
+ <h3 id="google-sheets-clear-values"><code>clear-values</code></h3>
531
+
532
+ **Clear values.** Clear the values (not the formatting) of a range.
533
+
534
+ Ref `io.b3os/google-sheets/clear-values@1.0.0` · effect `write` · connection `google` · MCP tool `google-sheets__clear-values`
535
+
536
+ **curl**
537
+
538
+ ```bash
539
+ curl -s https://beta-api.b3os.org/v1/actions/call \
540
+ -H "Authorization: Bearer $B3OS_API_KEY" \
541
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
542
+ -H "Content-Type: application/json" \
543
+ -d '{
544
+ "ref": "io.b3os/google-sheets/clear-values@1",
545
+ "input": {
546
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
547
+ "range": "Summary!A1:Z100"
548
+ },
549
+ "connections": {"google": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
550
+ }'
551
+ ```
552
+ **TypeScript**
553
+
554
+ ```ts
555
+ import { B3OS } from "@b3os/sdk";
556
+
557
+ const b3os = new B3OS();
558
+ const result = await b3os.actions.call({
559
+ ref: "io.b3os/google-sheets/clear-values@1",
560
+ input: {
561
+ spreadsheet_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
562
+ range: "Summary!A1:Z100",
563
+ },
564
+ connections: { google: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
565
+ }, { idempotencyKey: crypto.randomUUID() });
566
+ console.log(result.output);
567
+ ```
568
+ **Python**
569
+
570
+ ```python
571
+ import uuid
572
+ from b3os import B3OS
573
+
574
+ b3os = B3OS()
575
+ result = b3os.actions.call({
576
+ "ref": "io.b3os/google-sheets/clear-values@1",
577
+ "input": {
578
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
579
+ "range": "Summary!A1:Z100",
580
+ },
581
+ "connections": {"google": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
582
+ }, idempotency_key=str(uuid.uuid4()))
583
+ print(result["output"])
584
+ ```
585
+ **MCP**
586
+
587
+ ```json
588
+ {
589
+ "method": "tools/call",
590
+ "params": {
591
+ "name": "google-sheets__clear-values",
592
+ "arguments": {
593
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
594
+ "range": "Summary!A1:Z100"
595
+ }
596
+ }
597
+ }
598
+ ```
599
+
600
+ Expose the pack as tools with `--packs google-sheets` on the local server or `?packs=google-sheets` on the remote URL, and the agent calls `google-sheets__clear-values` 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`.
601
+
602
+ Output, labeled `fixture`: Clear values (documented response shape, example values). From the bundle's `fixtures/clear-values.json`, not a live call.
603
+
604
+ ```json
605
+ {
606
+ "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
607
+ "cleared_range": "Summary!A1:Z100"
608
+ }
609
+ ```
610
+
611
+ 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:
612
+
613
+ | `pack_error.code` | Service status | Retryable | Message |
614
+ |---|---|---|---|
615
+ | `not_found` | 404 | no | built from the service's response |
616
+ | `connection_unauthorized` | 401 | no | Google rejected the access token (expired or revoked); refresh or reconnect it. |
617
+ | `rate_limited` | 429, 403 | yes | built from the service's response |
618
+ | `forbidden` | 403 | no | built from the service's response |
619
+ | `invalid_request` | 400 | no | built from the service's response |
620
+ | `conflict` | 409 | no | built from the service's response |
621
+
622
+ <h3 id="google-sheets-create-spreadsheet"><code>create-spreadsheet</code></h3>
623
+
624
+ **Create spreadsheet.** Create an empty spreadsheet with a title (and optionally named first tab) in the user's Drive. Returns its id and URL. Not idempotent.
625
+
626
+ Ref `io.b3os/google-sheets/create-spreadsheet@1.0.0` · effect `write` · connection `google` · MCP tool `google-sheets__create-spreadsheet`
627
+
628
+ **curl**
629
+
630
+ ```bash
631
+ curl -s https://beta-api.b3os.org/v1/actions/call \
632
+ -H "Authorization: Bearer $B3OS_API_KEY" \
633
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
634
+ -H "Content-Type: application/json" \
635
+ -d '{
636
+ "ref": "io.b3os/google-sheets/create-spreadsheet@1",
637
+ "input": {"title": "Launch tracker"},
638
+ "connections": {"google": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
639
+ }'
640
+ ```
641
+ **TypeScript**
642
+
643
+ ```ts
644
+ import { B3OS } from "@b3os/sdk";
645
+
646
+ const b3os = new B3OS();
647
+ const result = await b3os.actions.call({
648
+ ref: "io.b3os/google-sheets/create-spreadsheet@1",
649
+ input: { title: "Launch tracker" },
650
+ connections: { google: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
651
+ }, { idempotencyKey: crypto.randomUUID() });
652
+ console.log(result.output);
653
+ ```
654
+ **Python**
655
+
656
+ ```python
657
+ import uuid
658
+ from b3os import B3OS
659
+
660
+ b3os = B3OS()
661
+ result = b3os.actions.call({
662
+ "ref": "io.b3os/google-sheets/create-spreadsheet@1",
663
+ "input": {"title": "Launch tracker"},
664
+ "connections": {"google": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
665
+ }, idempotency_key=str(uuid.uuid4()))
666
+ print(result["output"])
667
+ ```
668
+ **MCP**
669
+
670
+ ```json
671
+ {
672
+ "method": "tools/call",
673
+ "params": {
674
+ "name": "google-sheets__create-spreadsheet",
675
+ "arguments": {"title": "Launch tracker"}
676
+ }
677
+ }
678
+ ```
679
+
680
+ Expose the pack as tools with `--packs google-sheets` on the local server or `?packs=google-sheets` on the remote URL, and the agent calls `google-sheets__create-spreadsheet` 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`.
681
+
682
+ Output, labeled `fixture`: Create spreadsheet (documented response shape, example values). From the bundle's `fixtures/create-spreadsheet.json`, not a live call.
683
+
684
+ ```json
685
+ {
686
+ "spreadsheet_id": "1q2W3e4R5t6Y7u8I9o0PaSdFgHjKlZxCvBnM-_12345",
687
+ "url": "https://docs.google.com/spreadsheets/d/1q2W3e4R5t6Y7u8I9o0PaSdFgHjKlZxCvBnM-_12345/edit"
688
+ }
689
+ ```
690
+
691
+ 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:
692
+
693
+ | `pack_error.code` | Service status | Retryable | Message |
694
+ |---|---|---|---|
695
+ | `not_found` | 404 | no | built from the service's response |
696
+ | `connection_unauthorized` | 401 | no | Google rejected the access token (expired or revoked); refresh or reconnect it. |
697
+ | `rate_limited` | 429, 403 | yes | built from the service's response |
698
+ | `forbidden` | 403 | no | built from the service's response |
699
+ | `invalid_request` | 400 | no | built from the service's response |
700
+ | `conflict` | 409 | no | built from the service's response |