Skip to main content
Glama

Get embed code for a scene

get_embed_code
Read-only

Get 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

NameRequiredDescriptionDefault
loadNo'lazy' (default) loads when scrolled into view, 'tap' only on tap, 'eager' immediately.
sceneYesScene id (e.g. palm-villa-0a1b2c3d4e5f), the job id returned by upload_scene, or a Verse share link.
titleNoAccessible title for the iframe.
aspectNoFrame shape. Default 16:9.
backgroundNo'rrggbb', 'transparent' or 'studio:warm'.
share_tokenNoShare token of a private scene.

Output Schema

NameRequiredDescriptionDefault
urlYesPlain embed URL.
sceneYesScene id.
iframeYesIframe HTML that works in any site builder.
scriptYesScript tag that loads the <verse-viewer> component.
elementYes<verse-viewer> element HTML.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.4
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "element": {
      +      "description": "<verse-viewer> element HTML.",
      +      "type": "string"
      +    },
      +    "iframe": {
      +      "description": "Iframe HTML that works in any site builder.",
      +      "type": "string"
      +    },
      +    "scene": {
      +      "description": "Scene id.",
      +      "type": "string"
      +    },
      +    "script": {
      +      "description": "Script tag that loads the <verse-viewer> component.",
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "Plain embed URL.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "scene",
      +    "iframe",
      +    "element",
      +    "script",
      +    "url"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only cover readOnlyHint and openWorldHint, but the description adds genuinely new behavior: it "makes no change to the scene" and "works without sign-in for public and unlisted scenes," which tells the agent about auth requirements it could not infer from the annotations. It also explains the private-scene path via share_token.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads purpose, then the sibling routing note, then per-parameter guidance in a compact semicolon-delimited block. Dense but every clause carries actionable information; nothing is redundant with the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With only one required parameter, an output schema present, and full schema description coverage, the remaining burden is routing and auth context — both are supplied. An agent has everything needed to select and invoke this tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description exceeds it by adding design intent the schema lacks — 'fill' for full-bleed heroes, when 'tap' suits pages with many scenes, and that share_token is the token embedded in the link create_share_link returned. The background guidance ('transparent' to sit on the page colour) is similarly useful, though 'studio:warm' is left unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: "Get copy-paste code to show a scene inside a web page." It immediately distinguishes itself from the sibling that produces a message link by naming create_share_link, so the agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use ("user wants the scene on their website, store or CMS") and when-not ("for a link to send in a message, use create_share_link"), with the alternative named and the condition that selects it. The share_token sentence also flags the prerequisite for private scenes.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.