three_live_link
Validates a Three.js scene script and returns a shareable playground URL that opens in desktop or phone browsers, with optional QR code and AR viewing; lists compile errors.
Instructions
Validate a Three.js scene script and return a web playground link that opens it on any desktop or phone browser (with View in AR on iPhone and Android). The scene rides in the URL fragment (raw DEFLATE + base64url), so nothing is uploaded. Optionally returns the link as a QR code (terminal text and SVG) for the user to scan with a phone. Fails, listing the errors, when the scene does not compile.
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_live_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qr | No | Also return the link as a QR code (`qrText` for terminals, `qrSvg`) when it is short enough to scan. | |
| base | No | Playground page the link opens (default https://google.github.io/three-live/three/). | |
| code | No | Inline Three.js scene script (using pre-defined `THREE` and `scene` globals). Provide either `code` or `inputPath`. | |
| inputPath | No | Path to a .js scene script on disk when `code` is not provided. |