Skip to main content
Glama

Render a Live Photo card

render_live_card

Use this when the user wants an Apple Live Photo, a short animated card, or an MP4 or GIF from a design you can draw in HTML. Pass cover_html (the still) and motion_html (the animation). Both must be self-contained: inline SVG, inline CSS and data: URLs only. A remote image, font, script or style sheet is refused with external_url. Optional width and height (even, default 1080 by 1440, at most 1080 by 1440), duration_ms (500 to 3000, default 3000), fps (15 or 30, default 15) and cover_ms (the video time the still is paired to, default 0). CSS animations and requestAnimationFrame are sampled on a virtual clock from 0 to duration_ms. Returns status queued, a job_id, and a message telling you to call live_card_status. It does not return the files itself. It cannot fetch a URL, import into Photos, or run longer than 3 seconds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fpsNoFrames per second. Default 15.
widthNoEven pixel width. Default 1080.
heightNoEven pixel height. Default 1440.
cover_msNoTime in the video the still is paired to. Default 0. Must be a whole frame and less than duration_ms.
cover_htmlYesSelf-contained HTML for the still cover. Inline SVG, CSS and data: URLs only.
duration_msNoLength in milliseconds, 500 to 3000, a whole number of frames at fps. Default 3000.
motion_htmlYesSelf-contained HTML for the animation. CSS animations and requestAnimationFrame follow a virtual clock from 0 to duration_ms.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
as_ofYes
job_idYes
limitsNo
sourceYes
statusYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "cover_html": "<p>Profile: Launch</p>",
      +    "motion_html": "<style>@keyframes fade{from{opacity:0}to{opacity:1}}</style><div style=\"animation:fade 3s linear\">Launch</div>"
      +  }
      +]
  2. Changed1 schema field changed
    • removedOutput schema / properties / note_from_openkrill
      Removed value: -{
      -  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      -  "type": "string"
      -}
  3. Changed1 schema field changed
    • addedOutput schema / properties / note_from_openkrill
      Added value: +{
      +  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      +  "type": "string"
      +}
  4. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.