Get embed code for a scene
get_embed_codeGenerate copy-paste embed code for a 3D scene in a web page, including iframe, viewer element, and URL; add a share token to embed private scenes.
Instructions
Get copy-paste code to embed a scene in a web page: an iframe (works anywhere), the <verse-viewer> element plus its script, and the plain url. For a private scene pass the share token from create_share_link as share_token.
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": {
"scene": "<scene>"
},
"name": "get_embed_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| load | No | 'lazy' (default) loads when scrolled into view, 'tap' only on tap, 'eager' immediately. | |
| scene | Yes | Scene id (e.g. palm-villa-0a1b2c3d4e5f), the job id returned by upload_scene, or a Verse share link. | |
| title | No | Accessible title for the iframe. | |
| aspect | No | Frame shape. Default 16:9. | |
| background | No | 'rrggbb', 'transparent' or 'studio:warm'. | |
| share_token | No | Share token of a private scene. |