Skip to main content
Glama

Render video to file

render_video_to_file
Destructive

Render HTML animation to MP4 file saved directly to disk. Specify output path, dimensions, bitrate, and frame rate for integration with other tools.

Instructions

Same as render_video but saves the resulting MP4 directly to a file path on disk instead of returning base64. Useful for integrating with other tools or when dealing with large videos.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesComplete HTML document.
output_pathYesAbsolute path where the MP4 file should be saved.
widthNoVideo width in pixels (default: 540).
heightNoVideo height in pixels (default: 960).
bitrateNoFFmpeg bitrate (default: '5M').5M
frame_rateNoFrame rate (default: 60).
max_durationNoMaximum render duration in seconds (default: 12).
Behavior3/5

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

Annotations already indicate destructiveHint=true, so the agent knows this tool writes files. The description adds that it saves MP4 to a file path, but does not disclose additional traits like overwrite behavior or disk space requirements. No contradiction with 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?

The description is two sentences, efficiently front-loading the core difference from the sibling tool. Every word adds value, with no redundancy.

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?

For a tool with 7 parameters and no output schema, the description is sufficient: it explains the key behavior, use cases, and difference from sibling. It lacks details on error conditions or performance, but the annotations and schema cover most essential aspects.

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?

Input schema has 100% description coverage, so parameters are well-documented. The description mentions output_path but adds no new meaning beyond the schema. Baseline of 3 is appropriate per scoring guidelines.

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?

The description clearly states that this tool renders video to a file on disk, contrasting it with render_video which returns base64. The verb 'render' and resource 'video to file' are specific, and the sibling distinction is explicitly made.

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

Usage Guidelines4/5

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

The description provides context for when to use this tool: 'Useful for integrating with other tools or when dealing with large videos.' It implies when not to use (e.g., when base64 is needed) but does not explicitly state exclusions.

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