Skip to main content
Glama

Render an animation to a WebM video

riv_render_video

Render Rive (.riv) animations or state machines to WebM video files, with control over duration, frame rate, size, and background.

Instructions

Render a .riv animation (or state machine) to a real-time WebM video using canvas.captureStream() + MediaRecorder (VP9, falls back to VP8/generic webm). Default duration is one loop of the animation (2s for a bare state machine or when the animation's length can't be determined).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fpsNocaptureStream() frame rate (default 30)
outNoOutput .webm path (default: alongside the .riv)
pathYesPath to the .riv file
widthNo
heightNo
artboardNo
durationNoSeconds to record (default: one animation loop, or 2s)
animationNo
backgroundNoCSS background color (default: transparent)
stateMachineNo
Behavior3/5

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

With no annotations, the description carries the behavioral disclosure burden. It reveals implementation details (canvas.captureStream, MediaRecorder, VP9 fallback) and default duration logic. However, it omits important behavior such as return value, whether it writes to disk, browser/headless environment requirements, and whether existing files are overwritten.

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, front-loaded with the core purpose, and every clause adds value (format, method, codec, default duration). No filler or redundancy.

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

Completeness2/5

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

The tool has 10 parameters, no annotations, and no output schema. The description explains core function and duration default but does not cover width/height/artboard/animation/stateMachine semantics, output naming, or return value. For the complexity, the description is incomplete and would leave an agent guessing about half the parameters.

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

Parameters2/5

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

Schema coverage is only 50%, so the description must compensate for the five undocumented parameters (width, height, artboard, animation, stateMachine). It adds meaning only for 'duration' by explaining default one-loop behavior and the 2s fallback. No explanation is given for the other undocumented parameters, leaving the agent without sufficient guidance.

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 the verb 'Render' and the resource '.riv animation (or state machine)' with a specific output format 'WebM video'. It distinguishes from sibling render tools (gif, apng, frame) by explicitly naming the container format and capture technique.

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?

The description implies usage for creating WebM videos when a real-time recording is needed, and clarifies default duration behavior. However, it does not explicitly mention when to use this tool over alternatives like riv_render_gif or riv_render_frame, nor does it provide exclusions or prerequisites.

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/ODU33104/rive-mcp'

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