Build and check what will be deployed
three_buildBuild your project and audit the output for bundled three.js size, missing or miscased assets, sub-path URL breaks and Draco/KTX2 decoders, then headless-load the page before you deploy.
Instructions
Run the project's own build script (npm/pnpm/yarn/bun run build; this runs the project's code), then check the output folder: how many copies of three are bundled and its size, assets the bundle or a .gltf refers to that are missing or differ in case, root-absolute URLs that break under a sub-path host such as GitHub Pages (with the base to set), Draco/KTX2 decoder files, then open the built page headless (served under its base). build: false checks the output that is already there. Use it before you call a page ready to deploy.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "three_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | deploy base, e.g. "/repo/" for GitHub Pages (default from the config) | |
| path | No | Project folder, or a file or folder in it (relative to the server's folder; default: the project). | |
| build | No | false: do not build, check the existing output | |
| check | No | false: skip the headless check of the built page | |
| script | No | package.json script (default build) | |
| out_dir | No | output folder (default from the bundler config, else dist, build or out) | |
| timeout_s | No |