@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,431 @@
1
+ # Render settings
2
+
3
+ > Every setting for screenshots and videos, with its default, values and an example, and how render encodes and captures in the beta.
4
+
5
+ Source: https://docs.beta.b3os.org/render/settings.md
6
+
7
+ Set these in the body of `POST /v1/render/screenshots` or `POST /v1/render/videos`. The look itself (background, frame, cursor, captions) is a set of named presets: see [Styles and captions](https://docs.beta.b3os.org/render/styles).
8
+
9
+ | Setting | Default |
10
+ |---|---|
11
+ | [Screenshot format and quality](#screenshot-format-and-quality): `format` | `webp` (`format`), 90 (`quality`) |
12
+ | [Pixel ratio](#pixel-ratio): `dpr` | 1 |
13
+ | [Screenshot viewport](#screenshot-viewport): `viewport` | 1440 by 900 CSS pixels |
14
+ | [Full page](#full-page): `full_page` | `false` |
15
+ | [When the page is ready](#when-the-page-is-ready): `wait_until` | `auto` (`wait_until`), 0 ms (`wait_for_ms`) |
16
+ | [Settle](#settle): `settle` | `auto` |
17
+ | [Screenshot timeout](#screenshot-timeout): `timeout_ms` | 30,000 ms |
18
+ | [Color scheme](#color-scheme): `theme` | `auto` |
19
+ | [Overlays](#overlays): `overlays` | `remove` |
20
+ | [Screenshot auto background](#screenshot-auto-background): `auto_background.pin` | none: the image is picked ([per field](#screenshot-auto-background)) |
21
+ | [Screenshot ad blocking](#screenshot-ad-blocking): `block_ads` | `true` |
22
+ | [Video formats](#video-formats): `formats` | `mp4`, `poster` |
23
+ | [Output size and frame rate](#output-size-and-frame-rate): `output` | 1920 by 1080 at 60 frames a second |
24
+ | [Narration speed](#narration-speed): `voice.speed` | 1 |
25
+ | [Captions](#captions): `captions.burn_in` | `karaoke` when narrated, `static` when silent ([per field](#captions)) |
26
+ | [Camera zoom](#camera-zoom): `camera.style` | `auto` ([per field](#camera-zoom)) |
27
+ | [Background under the camera](#background-under-the-camera): `camera.background_motion` | 0.1 ([per field](#background-under-the-camera)) |
28
+ | [Typing shot](#typing-shot): `camera.typing_zoom` | 2 |
29
+ | [Camera framing](#camera-framing): `camera.framing` | `subject` |
30
+ | [Scrolling to a step](#scrolling-to-a-step): `scroll` | `comfortable` |
31
+ | [Cursor motion](#cursor-motion): `cursor.smoothing_ms` | 100 ([per field](#cursor-motion)) |
32
+ | [Auto background](#auto-background): `auto_background.pin` | none: the image is picked ([per field](#auto-background)) |
33
+ | [Reuse a recording](#reuse-a-recording): `recording.reuse` | `false` ([per field](#reuse-a-recording)) |
34
+ | [Video viewport](#video-viewport): `viewport` | 1440 CSS pixels wide (430 for a portrait output; about its window's width for a square or near-square one, no wider than 4:3), at the shape of the space the page gets in the frame |
35
+ | [Start time](#start-time): `start_time` | when the job was created |
36
+
37
+ ## Screenshots
38
+
39
+ ### Screenshot format and quality
40
+
41
+ How the capture is encoded. WebP and JPEG are smaller; PNG is lossless. `quality` applies to WebP and JPEG. Each entry of `variants` adds another encoding of the same capture and bills one more `render.screenshot`.
42
+
43
+ - **Field:** `format` and `quality` on [screenshot](https://docs.beta.b3os.org/api/post-v1-render-screenshots)
44
+ - **Default:** `webp` (`format`), 90 (`quality`)
45
+ - **Values:** `webp`, `png` or `jpeg` (`format`); 1 to 100 (`quality`)
46
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
47
+ - **Guide:** [Options](https://docs.beta.b3os.org/render/screenshots#options)
48
+
49
+ ```json
50
+ {"url": "https://example.com", "format": "png"}
51
+ ```
52
+
53
+ ```bash
54
+ b3os screenshot https://example.com --format png
55
+ ```
56
+
57
+ ### Pixel ratio
58
+
59
+ The device pixel ratio of the capture. 2 or 3 gives a sharper image with 4 or 9 times the pixels.
60
+
61
+ - **Field:** `dpr` on [screenshot](https://docs.beta.b3os.org/api/post-v1-render-screenshots)
62
+ - **Default:** 1
63
+ - **Values:** 1, 2 or 3
64
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
65
+
66
+ ```json
67
+ {"url": "https://example.com", "dpr": 2}
68
+ ```
69
+
70
+ ```bash
71
+ b3os screenshot https://example.com --dpr 2
72
+ ```
73
+
74
+ ### Screenshot viewport
75
+
76
+ The browser window's size before the capture, which sets the page's layout.
77
+
78
+ - **Field:** `viewport` on [screenshot](https://docs.beta.b3os.org/api/post-v1-render-screenshots)
79
+ - **Default:** 1440 by 900 CSS pixels
80
+ - **Values:** `width`: 320 to 3,840; `height`: 240 to 2,160
81
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
82
+
83
+ ```json
84
+ {"url": "https://example.com", "viewport": {"width": 390, "height": 844}}
85
+ ```
86
+
87
+ ```bash
88
+ b3os screenshot https://example.com --width 390 --height 844
89
+ ```
90
+
91
+ ### Full page
92
+
93
+ Captures the whole scroll height instead of the first screen.
94
+
95
+ - **Field:** `full_page` on [screenshot](https://docs.beta.b3os.org/api/post-v1-render-screenshots)
96
+ - **Default:** `false`
97
+ - **Values:** `true` or `false`
98
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
99
+
100
+ ```json
101
+ {"url": "https://example.com", "full_page": true}
102
+ ```
103
+
104
+ ```bash
105
+ b3os screenshot https://example.com --full-page
106
+ ```
107
+
108
+ ### When the page is ready
109
+
110
+ `wait_until: auto` takes the load event, or a painted first screen when the load event is held up by a tracker or a script that never answers. `load`, `domcontentloaded` and `networkidle` wait for that event. `wait_for_ms` adds settle time after that.
111
+
112
+ - **Field:** `wait_until` and `wait_for_ms` on [screenshot](https://docs.beta.b3os.org/api/post-v1-render-screenshots)
113
+ - **Default:** `auto` (`wait_until`), 0 ms (`wait_for_ms`)
114
+ - **Values:** `auto`, `load`, `domcontentloaded` or `networkidle` (`wait_until`); 0 to 10,000 ms (`wait_for_ms`)
115
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
116
+ - **Guide:** [When the page is ready](https://docs.beta.b3os.org/render/screenshots#when-the-page-is-ready)
117
+
118
+ ```json
119
+ {"url": "https://example.com", "wait_until": "networkidle", "wait_for_ms": 1500}
120
+ ```
121
+
122
+ ```bash
123
+ b3os screenshot https://example.com --wait-for-ms 1500
124
+ ```
125
+
126
+ ### Settle
127
+
128
+ `auto` finishes entrance animations, waits a bounded time for the first screen to fill in, and captures again while the main area is still blank. `fast` captures as soon as the page is ready.
129
+
130
+ - **Field:** `settle` on [screenshot](https://docs.beta.b3os.org/api/post-v1-render-screenshots)
131
+ - **Default:** `auto`
132
+ - **Values:** `auto` or `fast`
133
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
134
+
135
+ ```json
136
+ {"url": "https://example.com", "settle": "fast"}
137
+ ```
138
+
139
+ ### Screenshot timeout
140
+
141
+ How long loading the page and capturing it may take in all. A screenshot that produces no image bills nothing.
142
+
143
+ - **Field:** `timeout_ms` on [screenshot](https://docs.beta.b3os.org/api/post-v1-render-screenshots)
144
+ - **Default:** 30,000 ms
145
+ - **Values:** 1,000 to 60,000 ms
146
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
147
+
148
+ ```json
149
+ {"url": "https://example.com", "timeout_ms": 60000}
150
+ ```
151
+
152
+ ### Color scheme
153
+
154
+ Emulates `prefers-color-scheme`. `auto` leaves the page's own default.
155
+
156
+ - **Field:** `theme` on [screenshot](https://docs.beta.b3os.org/api/post-v1-render-screenshots)
157
+ - **Default:** `auto`
158
+ - **Values:** `light`, `dark` or `auto`
159
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
160
+
161
+ ```json
162
+ {"url": "https://example.com", "theme": "dark"}
163
+ ```
164
+
165
+ ```bash
166
+ b3os screenshot https://example.com --theme dark
167
+ ```
168
+
169
+ ### Overlays
170
+
171
+ `remove` hides consent walls and banners, sign-up and app pop-ups, dim layers and chat widgets before the capture. `keep` leaves them and lists them in `warnings`. Add `hide` selectors for anything it does not find.
172
+
173
+ - **Field:** `overlays` on [screenshot](https://docs.beta.b3os.org/api/post-v1-render-screenshots)
174
+ - **Default:** `remove`
175
+ - **Values:** `remove` or `keep`
176
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
177
+ - **Guide:** [Consent walls, pop-ups and ads](https://docs.beta.b3os.org/render/screenshots#consent-walls-pop-ups-and-ads)
178
+
179
+ ```json
180
+ {"url": "https://example.com", "overlays": "keep"}
181
+ ```
182
+
183
+ ### Screenshot auto background
184
+
185
+ How the default `auto` background picks its library image. A small vision model picks among the images that keep the window's edges clear, and the pick is kept per site, so a site's screenshots and videos match. `pin` draws one image instead, `repick` asks the model again for the site and keeps its answer, and `vision: false` picks with the color rules alone. The screenshot's `auto_background` says which image was drawn and how it was chosen. See [the auto background](https://docs.beta.b3os.org/render/styles#the-auto-background).
186
+
187
+ - **Field:** `auto_background.pin`, `auto_background.repick` and `auto_background.vision` on [screenshot](https://docs.beta.b3os.org/api/post-v1-render-screenshots)
188
+ - **Default:** none: the image is picked (`auto_background.pin`), `false` (`auto_background.repick`), on, where the node has the model (`auto_background.vision`)
189
+ - **Values:** a library image in an auto pack, such as `gradient-blur-collection/gradbg-049` (`auto_background.pin`); `true` or `false` (`auto_background.repick`); `true` or `false` (`auto_background.vision`)
190
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
191
+
192
+ ```json
193
+ {"auto_background": {"repick": true}}
194
+ ```
195
+
196
+ ### Screenshot ad blocking
197
+
198
+ Blocks requests to ad and tracker hosts and collapses the slots they leave empty, so no blank band is left in the image.
199
+
200
+ - **Field:** `block_ads` on [screenshot](https://docs.beta.b3os.org/api/post-v1-render-screenshots)
201
+ - **Default:** `true`
202
+ - **Values:** `true` or `false`
203
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
204
+
205
+ ```json
206
+ {"url": "https://example.com", "block_ads": false}
207
+ ```
208
+
209
+ ## Videos
210
+
211
+ ### Video formats
212
+
213
+ The files a video produces besides its captions. A GIF takes longer to encode and is larger than the MP4.
214
+
215
+ - **Field:** `formats` on [video](https://docs.beta.b3os.org/api/post-v1-render-videos)
216
+ - **Default:** `mp4`, `poster`
217
+ - **Values:** any of `mp4`, `gif` and `poster`
218
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
219
+
220
+ ```json
221
+ {"formats": ["mp4", "gif", "poster"]}
222
+ ```
223
+
224
+ ```bash
225
+ b3os video script.json --formats mp4,gif,poster
226
+ ```
227
+
228
+ ### Output size and frame rate
229
+
230
+ The video's width, height and frame rate. When you set `output`, set all three; width and height must be even.
231
+
232
+ - **Field:** `output` on [video](https://docs.beta.b3os.org/api/post-v1-render-videos)
233
+ - **Default:** 1920 by 1080 at 60 frames a second
234
+ - **Values:** `width`: 16 to 3,840; `height`: 16 to 2,160; `fps`: 24, 25, 30, 50 or 60
235
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
236
+
237
+ ```json
238
+ {"output": {"width": 1080, "height": 1920, "fps": 30}}
239
+ ```
240
+
241
+ ### Narration speed
242
+
243
+ How fast the narration speaks. Leave `voice` out for the node's default voice, `kokoro-82m` `af_heart`; `"voice": null` makes a silent video.
244
+
245
+ - **Field:** `voice.speed` on [video](https://docs.beta.b3os.org/api/post-v1-render-videos)
246
+ - **Default:** 1
247
+ - **Values:** 0.5 to 2
248
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
249
+ - **Guide:** [Voices](https://docs.beta.b3os.org/render/videos#voices)
250
+
251
+ ```json
252
+ {"voice": {"model": "kokoro-82m", "voice": "af_heart", "speed": 1.2}}
253
+ ```
254
+
255
+ ### Captions
256
+
257
+ `burn_in` draws captions into the frames: `static` as a small pill in the margin under the window, `karaoke` the same in step with the narration (the words spoken white, the word being spoken lit, the words to come dimmed), `none` for files only. `sidecars` are the caption files. The line limits split your `say` text into cues.
258
+
259
+ - **Field:** `captions.burn_in`, `captions.sidecars`, `captions.max_chars_per_line`, `captions.max_lines` and `captions.max_chars_per_second` on [video](https://docs.beta.b3os.org/api/post-v1-render-videos)
260
+ - **Default:** `karaoke` when narrated, `static` when silent (`captions.burn_in`), `vtt` (`captions.sidecars`), 42 (`captions.max_chars_per_line`), 2 (`captions.max_lines`), 20 (`captions.max_chars_per_second`)
261
+ - **Values:** `none`, `static` or `karaoke` (`captions.burn_in`); any of `vtt` and `srt` (`captions.sidecars`); 10 to 80 (`captions.max_chars_per_line`); 1 to 3 (`captions.max_lines`); 5 to 40 (`captions.max_chars_per_second`)
262
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
263
+ - **Guide:** [Styles and captions](https://docs.beta.b3os.org/render/styles)
264
+
265
+ ```json
266
+ {"captions": {"burn_in": "karaoke", "sidecars": ["vtt", "srt"]}}
267
+ ```
268
+
269
+ ### Camera zoom
270
+
271
+ `style` `auto` zooms in on the element each click, select or typing step acts on, stays in through the step and while the next one starts within 2.5 s or is nearby, pans between them and ends on the whole window. The camera moves over the whole frame: the window, its shadow and the page zoom together and the background and the window's edges leave the frame, while captions stay put. It zooms so the element fits, from 1.25x up to `max_zoom`; a small button reaches `max_zoom`, and an element in a nav, aside or header bar stops at 1.25x. `subtle` stops every zoom at 1.25x, and `off` (the older `auto_zoom: false`) keeps the whole window in view.
272
+
273
+ - **Field:** `camera.style`, `camera.auto_zoom` and `camera.max_zoom` on [video](https://docs.beta.b3os.org/api/post-v1-render-videos)
274
+ - **Default:** `auto` (`camera.style`), none: `style` decides (`camera.auto_zoom`), 1.7 (`camera.max_zoom`)
275
+ - **Values:** `auto`, `subtle` or `off` (`camera.style`); `true` or `false` (`camera.auto_zoom`); 1 to 3 (`camera.max_zoom`)
276
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
277
+
278
+ ```json
279
+ {"camera": {"style": "subtle"}}
280
+ ```
281
+
282
+ ### Background under the camera
283
+
284
+ As the camera zooms, the background moves and zooms by `background_motion` of the window's move, a tenth by default: 0 holds it still, 1 zooms it with the window so the whole frame zooms as one. `background_blur` softens it: an image background is drawn 4 px soft on the whole window at 1080p and softer as the camera zooms in, about 7 px at 1.6x on a 1080p video; left out, only an image background softens.
285
+
286
+ - **Field:** `camera.background_motion` and `camera.background_blur` on [video](https://docs.beta.b3os.org/api/post-v1-render-videos)
287
+ - **Default:** 0.1 (`camera.background_motion`), on for an image background (the default look's among them), off otherwise (`camera.background_blur`)
288
+ - **Values:** 0 to 1 (`camera.background_motion`); `true` or `false` (`camera.background_blur`)
289
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
290
+
291
+ ```json
292
+ {"camera": {"background_motion": 1, "background_blur": false}}
293
+ ```
294
+
295
+ ### Typing shot
296
+
297
+ A field typed into, by a `type` step or a click that a `type` without a target follows, is one shot: the camera zooms to `typing_zoom`, framed from the start of the field, and holds there through the last key. It never zooms past `max_zoom`, nor past the zoom where the page is as sharp as captured, so the default types at 1.73x on the default canvas; `style: subtle` keeps its 1.25x.
298
+
299
+ - **Field:** `camera.typing_zoom` on [video](https://docs.beta.b3os.org/api/post-v1-render-videos)
300
+ - **Default:** 2
301
+ - **Values:** 1 to 3
302
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
303
+
304
+ ```json
305
+ {"camera": {"typing_zoom": 1.6}}
306
+ ```
307
+
308
+ ### Camera framing
309
+
310
+ `subject` frames the panel the element sits in, not the click point: the nearest enclosing element with a box of its own or a section, form, table, list or dialog, at least 240 x 120 CSS px, fitted with 24 px around it into the frame above the captions, from 1.4x up to `max_zoom`, and placed from its start when it is wider than the view; a view edge moves off a neighbouring panel to the gap beside it. A hover the narration speaks over, an element a `wait` waits for, and after a click that loads a page the element its beat waits for, are framed and held through their line. `point` frames the click point as before.
311
+
312
+ - **Field:** `camera.framing` on [video](https://docs.beta.b3os.org/api/post-v1-render-videos)
313
+ - **Default:** `subject`
314
+ - **Values:** `subject` or `point`
315
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
316
+
317
+ ```json
318
+ {"camera": {"framing": "point"}}
319
+ ```
320
+
321
+ ### Scrolling to a step
322
+
323
+ `comfortable` scrolls an element outside 8% to 85% of the viewport's height so its panel sits in the middle, before the cursor sets off for it and as a waited-for element appears; one already there never scrolls the page. `minimal` scrolls only an element outside the viewport, and `off` only by your own `scroll` steps, failing a step whose element is outside the viewport.
324
+
325
+ - **Field:** `scroll` on [video](https://docs.beta.b3os.org/api/post-v1-render-videos)
326
+ - **Default:** `comfortable`
327
+ - **Values:** `comfortable`, `minimal` or `off`
328
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
329
+
330
+ ```json
331
+ {"scroll": "minimal"}
332
+ ```
333
+
334
+ ### Cursor motion
335
+
336
+ Each cursor move starts softly and settles over about `smoothing_ms`, as Screen Studio's smoothed cursor does, and still arrives when it would have; 0 keeps the eased path. After a click, a select or the first key typed into a field, `move_aside` moves the cursor just below the element, so it does not cover the label or the text being typed while the camera holds. Still for `hide_after_ms`, it fades out, and back in before its next move; 0 never hides it. A restyle keeps the path its video was recorded with.
337
+
338
+ - **Field:** `cursor.smoothing_ms`, `cursor.hide_after_ms` and `cursor.move_aside` on [video](https://docs.beta.b3os.org/api/post-v1-render-videos)
339
+ - **Default:** 100 (`cursor.smoothing_ms`), 2,000 (`cursor.hide_after_ms`), `true` (`cursor.move_aside`)
340
+ - **Values:** 0 to 300 (`cursor.smoothing_ms`); 0 to 10,000 (`cursor.hide_after_ms`); `true` or `false` (`cursor.move_aside`)
341
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
342
+
343
+ ```json
344
+ {"cursor": {"hide_after_ms": 0, "move_aside": false}}
345
+ ```
346
+
347
+ ### Auto background
348
+
349
+ How the default `auto` background picks its library image. A small vision model picks among the images that keep the window's edges clear, and the pick is kept per site, so a site's videos and screenshots match. `pin` draws one image instead, `repick` asks the model again for the site and keeps its answer, and `vision: false` picks with the color rules alone. `result.auto_background` says which image was drawn and how it was chosen. See [the auto background](https://docs.beta.b3os.org/render/styles#the-auto-background).
350
+
351
+ - **Field:** `auto_background.pin`, `auto_background.repick` and `auto_background.vision` on [video](https://docs.beta.b3os.org/api/post-v1-render-videos)
352
+ - **Default:** none: the image is picked (`auto_background.pin`), `false` (`auto_background.repick`), on, where the node has the model (`auto_background.vision`)
353
+ - **Values:** a library image in an auto pack, such as `gradient-blur-collection/gradbg-049` (`auto_background.pin`); `true` or `false` (`auto_background.repick`); `true` or `false` (`auto_background.vision`)
354
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
355
+
356
+ ```json
357
+ {"auto_background": {"repick": true}}
358
+ ```
359
+
360
+ ### Reuse a recording
361
+
362
+ `reuse` replays your project's newest recording of the same source, steps, viewport, seed and start time, up to `max_age_s` old, instead of loading the site again. Faster, and the page shows what the site served then. `result.recording` says which happened.
363
+
364
+ - **Field:** `recording.reuse` and `recording.max_age_s` on [video](https://docs.beta.b3os.org/api/post-v1-render-videos)
365
+ - **Default:** `false` (`recording.reuse`), 86,400 s (`recording.max_age_s`)
366
+ - **Values:** `true` or `false` (`recording.reuse`); 60 to 86,400 s (`recording.max_age_s`)
367
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
368
+
369
+ ```json
370
+ {"recording": {"reuse": true, "max_age_s": 3600}}
371
+ ```
372
+
373
+ ### Video viewport
374
+
375
+ The browser's size in CSS pixels during the recording. Left out, the window fills the frame with even margins.
376
+
377
+ - **Field:** `viewport` on [video](https://docs.beta.b3os.org/api/post-v1-render-videos)
378
+ - **Default:** 1440 CSS pixels wide (430 for a portrait output; about its window's width for a square or near-square one, no wider than 4:3), at the shape of the space the page gets in the frame
379
+ - **Values:** `width`: 320 to 3,840; `height`: 240 to 2,160
380
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
381
+
382
+ ```json
383
+ {"viewport": {"width": 1280, "height": 800}}
384
+ ```
385
+
386
+ ### Start time
387
+
388
+ The page's `Date` when the video starts; the clock then moves with the video. The finished video's `result.start_time` gives the value used: send it back with the same `seed` (randomness) and `recording.reuse` and a re-render is identical. Without `recording.reuse` the site loads again, so a page that changed shows the change.
389
+
390
+ - **Field:** `start_time` on [video](https://docs.beta.b3os.org/api/post-v1-render-videos)
391
+ - **Default:** when the job was created
392
+ - **Values:** an RFC 3339 date and time
393
+ - **Invalid value:** [`400 invalid_request`](https://docs.beta.b3os.org/errors#invalid_request)
394
+
395
+ ```json
396
+ {"seed": 7, "start_time": "2026-11-01T09:00:00Z"}
397
+ ```
398
+
399
+ ## Fixed in the beta
400
+
401
+ These work one way in the beta, and no request field changes them.
402
+
403
+ ### Video encoding
404
+
405
+ **H.264, BT.709.** MP4 files are H.264 from x264 at the `veryfast` preset and CRF 20, with BT.709 color. No field changes the codec or quality.
406
+
407
+ ### Video capture scale
408
+
409
+ **Picked per segment.** Parts of a video where the camera zooms in are captured at device scale 2, so zoomed text stays sharp, and the rest at 1. Screenshots take `dpr`; videos have no such field.
410
+
411
+ ### Video background
412
+
413
+ **Picked from 24 library images.** A video's `auto` background, the default, is one of the library images `GET /v1/render/backgrounds?tag=video` lists, picked from the video's first frame for the page's tone and accent color, at least 12 L* from the page at the window's edges. The timeline's `style` names it. `studio` names the soft mesh videos drew before; `background_ref` names any library background. The set is the node's; no field changes it.
414
+
415
+ - **Guide:** [Styles](https://docs.beta.b3os.org/render/styles)
416
+
417
+ ### Render egress
418
+
419
+ **Through the node's egress guard.** Every capture browser's only way out is the node's egress proxy, under the same egress guard as vision, from the node's own address. You cannot bring a proxy.
420
+
421
+ ### Signed-in captures
422
+
423
+ **Through a vision profile.** A screenshot with `profile`, or a video with `source.profile`, loads that vision profile's cookies and storage before the page loads: into a video's probe and every capture segment. It needs `vision:profiles:use`. A page that is still signed out fails and bills nothing.
424
+
425
+ - **Error:** [`404 profile_not_found`](https://docs.beta.b3os.org/errors#profile_not_found), [`422 profile_expired`](https://docs.beta.b3os.org/errors#profile_expired)
426
+
427
+ ### Signed URL lifetime and retention
428
+
429
+ **24 hours and 7 days.** A signed artifact URL works for 24 hours, and never past its file. Screenshots, videos and their files are kept 7 days. Fetch the resource again for a fresh URL.
430
+
431
+ - **Guide:** [Artifacts](https://docs.beta.b3os.org/render#artifacts)