Skip to main content
Glama

Render HTML Video

render_html_video

Render a HyperFrames HTML/CSS/JS composition to a video. Use only when the user explicitly asks for HTML-to-video, HyperFrames, code-driven motion, or supplies animated HTML.

Asynchronous: it returns a job at once, and check_job gives the URL when it is completed. A failed render is refunded automatically.

Supply exactly one source: html, project_url (any publicly downloadable HTTPS ZIP; pass a ZIP URL from search_examples({ id }) directly) or project_asset_id (a ZIP in the Library: a project asset from get_upload_url type project, or an ordinary zip asset). The ZIP is a static project with index.html or dist/index.html. npm is never run: a project with a build script must include its built dist/index.html.

Authoring contract: one complete document with a fixed-size root declaring data-composition-id, data-width, data-height and data-duration matching width, height and duration. Register a paused GSAP timeline at window.__timelines[compositionId]. Tailwind utility classes work without a CDN. Load other dependencies with pinned script URLs. Derive every frame from the timeline time, not the wall clock. For sound, add ; if the audio is silent in the output the render fails and is refunded.

Pricing by effective seconds = duration × (pixels / 1920×1080) × (fps / 30). Single HTML: 5 credits for the first 15 effective seconds, then 1 per 15 more. ZIP: 1 credit per 2 effective seconds, at least 5. Up to 300 seconds and 3840 pixels per side.

In this app, a designed video from a brief goes to generate_html_video by default. Use this tool when the user supplies HTML or a project, or asks you to write the HTML yourself.

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": "render_html_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNo24, 30 or 60; others are rounded to the nearest. Default: 30.
htmlNoThe composition. Pass this, project_url or project_asset_id.
nameNoOptional asset name for the saved file.
tagsNoOptional tags for the saved file.
widthNoEven number, 2-3840. Default: 1920.
formatNoDefault: mp4.
heightNoEven number, 2-3840. Default: 1080.
durationNoSeconds, up to 300. Default: 5.
force_newNoAn identical request submitted in the last 10 minutes returns that job without charging again; true generates it again.
project_urlNoPublicly downloadable HTTPS URL of a static project ZIP, e.g. a ZIP URL from search_examples({ id }).
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
budget_projectNoOptional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project.
project_asset_idNoA ZIP in the Library instead of html: a project asset (get_upload_url type project, recommended) or an ordinary zip asset. Static projects only: index.html or a built dist/index.html.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare openWorldHint/open read-write/no destruction; the description adds the material behavior the agent actually needs: it is asynchronous and returns a job, check_job supplies the URL on completion, failed renders are refunded, silent audio causes a refundable failure, and hard caps (300s, 3840px) apply. It also explains the pricing formula and credit tiers, which is cost behavior no annotation captures. The 10-minute dedup for identical requests sits slightly at odds with idempotentHint=false, but the limited window makes it a nuance rather than a contradiction.

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

Conciseness4/5

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

Purpose and the usage gate are front-loaded, then explicit labeled blocks (Asynchronous, source selection, Authoring contract, Pricing) make a long description scannable. The density is justified by a 13-parameter tool with a strict authoring contract, though the authoring contract and pricing detail are heavy enough that the entry point could be tightened.

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?

Covers everything an agent needs for a complex, paid, asynchronous generation tool with no output schema: how to poll for results, what to supply as a source, the constraints the HTML must satisfy, the failure/refund semantics, cost, and the size/duration ceilings. The default-vs-sibling routing note closes the remaining selection gap.

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, but the description adds real meaning the schema cannot express: the three source parameters are mutually exclusive ('supply exactly one source'), the ZIP must be static with index.html or dist/index.html and npm is never run, and a search_examples ZIP URL can be passed straight to project_url. It also translates width/height/duration/fps into their effect on billed effective seconds, linking those params to cost.

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?

Names a specific verb and resource (render an HTML/CSS/JS composition to video) and immediately distinguishes itself from the sibling generate_html_video by stating the default routing rule. An agent can tell this apart from generate_html_video and render_html_image without opening any other 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?

Gives an explicit when-to-use gate ('only when the user explicitly asks for HTML-to-video, HyperFrames, code-driven motion, or supplies animated HTML') plus the inverse routing rule at the end ('a designed video from a brief goes to generate_html_video by default'). It also names check_job as the follow-up and search_examples as the source of ZIP URLs, so the agent knows the surrounding workflow.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.