Make Viewer
make_viewerBuild a standalone Three.js HTML viewer with the 3D model embedded as a data URI, so you can share one file without a server, CORS setup, or hosting.
Instructions
Build a single self-contained Three.js HTML page with the model embedded.
The mesh is embedded as a data URI, so the page needs no server, no CORS and
no hosting — send the file to anyone. Note that three.js itself loads from a
CDN by default: for an air-gapped machine, set FORGE3D_THREE_URL to a local
mirror before building the page. For embedding inside an existing web app,
use the forge3d-viewer custom element instead (viewer_assets/forge3d-viewer.js).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "make_viewer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| spec | No | ||
| title | No | ||
| out_html | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||