export_video
Export an animated Figma top-level frame to MP4, WebM, or GIF on disk. Use for Smart Animate or Motion keyframe content; returns file path or reason.
Instructions
Export an animated Figma top-level frame to an MP4 / WebM / GIF file on disk. Pass any node in the frame (or the frame itself) — its enclosing top-level frame is encoded across the animation's duration. Requires the Figma Design editor and a frame with animated content (Smart Animate / Motion keyframes); a static frame, a nested frame, or FigJam / Dev Mode yields path:null with a reason (and, when reason is failed, Figma’s own message in error). Encoding is a heavy render — call it on its own, not concurrently with other tool calls, or the render can fail. Returns { nodeId, format, path, reason?, error? }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frames per second (MP4/WebM: 12/24/30/60; GIF: 8/12/15/24/30). Defaults per format. | |
| format | Yes | MP4 / WebM (video) or GIF (looping) | |
| nodeId | Yes | A node in the animated frame to export; its enclosing top-level frame (a frame placed directly on a page) is what gets encoded — pass the frame itself or any descendant | |
| outPath | Yes | File path to write the video to (parent dirs created if missing) | |
| quality | No | MP4/WebM quality; ignored for GIF | |
| loopCount | No | GIF only: number of loops; 0 = loop forever | |
| constraint | No | Output size: a SCALE multiplier (0.5/0.75/1/1.5/2/3/4) or a fixed WIDTH/HEIGHT in px |