Get embed code for a scene
get_embed_codeGet copy-paste embed code to show a Verse scene inside a web page, store or CMS. Set frame shape, loading behaviour and background for the iframe.
Instructions
Get copy-paste code to show a scene inside a web page. Use it when the user wants the scene on their website, store or CMS; for a link to send in a message, use create_share_link. Parameters: aspect sets the frame shape ('fill' takes the parent's size, for full-bleed heroes); load 'lazy' saves bandwidth below the fold, 'tap' suits pages with many scenes, 'eager' suits a single hero; background is hex without #, 'transparent' to sit on the page colour, or 'studio:warm'; share_token is required for a private scene and is the token inside the link create_share_link returned. Read-only and makes no change to the scene; works without sign-in for public and unlisted scenes.
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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Plain embed URL. | |
| scene | Yes | Scene id. | |
| iframe | Yes | Iframe HTML that works in any site builder. | |
| script | Yes | Script tag that loads the <verse-viewer> component. | |
| element | Yes | <verse-viewer> element HTML. |