Expose a JavaScript command API for the browser app (#1713)

Thanks @olup.
This commit is contained in:
Olup authored and GitHub committed 2026-10-17 06:54:16 -04:00
1 parent 40bdc1132e
commit 4193ea26ac
6 files changed
+260 -1

No files matched your search

+3
View File
@@ -259,6 +259,9 @@ Each axis is scaled from the range the descriptor declares.
In the browser: `cd apps/solidcraft-web && trunk build --release --public-url ./` (WebGPU, or
WebGL2 with `?webgl`; `?sample` opens the sample part).
Agents can control the document open in a browser tab through `window.solidcraft.execute(...)`
and `window.solidcraft.request(...)`; see the [browser command API](docs/browser-api.md).
## Scripts
A script is a JSON list of commands, the same ones the UI runs: