Skip to main content
Glama

Render video

render_video

Render a complete HTML document with CSS animations and JavaScript to an MP4 video. Uses Chromium and FFmpeg for capture and encoding.

Instructions

Render HTML, CSS, and JavaScript code to an MP4 video using Chromium (headless) and FFmpeg. Supports CSS animations, WAAPI, SVG, and canvas animations. Returns the video as base64-encoded MP4.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesComplete HTML document including DOCTYPE, <html>, <head>, <body>, and any inline CSS/JS.
widthNoVideo width in pixels (default: 540).
heightNoVideo height in pixels (default: 960).
bitrateNoFFmpeg bitrate (default: '5M'). Examples: '2M', '10M'.5M
frame_rateNoFrame rate for capture and encoding (default: 60).
max_durationNoMaximum render duration in seconds (default: 12).
min_durationNoMinimum render duration in seconds (default: 0.35).
Behavior4/5

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

Annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true) are consistent with description. Description adds details about external processes (Chromium, FFmpeg) and output format, providing behavioral context beyond annotations.

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?

Three concise sentences cover purpose, supported features, and output format without redundancy. Every sentence earns its place.

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

Completeness4/5

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

The description explains purpose, supported features, output format, and uses external tools. It lacks details on parameter interactions (e.g., min/max_duration) but schema covers defaults. No output schema, but description sufficiently conveys return value. Overall adequate for complexity.

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

Parameters3/5

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

Schema coverage is 100% with descriptions for all 7 parameters. Description adds only minor extra guidance on the 'code' parameter format, so it provides limited added value beyond the schema.

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?

Description clearly states the tool renders HTML/CSS/JS to an MP4 video using Chromium and FFmpeg, and specifies supported animations. It distinguishes from sibling 'render_video_to_file' by mentioning the base64-encoded output.

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

Usage Guidelines3/5

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

Description implies usage context (base64 output) but does not explicitly compare with sibling or state when to use this tool over alternatives. No when-not-to-use guidance is provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mechreaper007x/ClipACanvas'

If you have feedback or need assistance with the MCP directory API, please join our Discord server