figma_export_animation
Export an animated Figma frame as MP4, GIF, or WebM to a specified path, with controls for fps, size, quality, and overwrite.
Instructions
Export an animated frame as MP4, GIF or WebM. The node should be the frame that holds the Motion timeline (its top-level frame). The file is written to outputPath (default: the OS temp folder) and the path is returned. An existing file is never replaced unless overwrite is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | MP4/WebM: 12, 24, 30 or 60. GIF: 8, 12, 15, 24 or 30 | |
| scale | No | 0.5, 0.75, 1, 1.5, 2, 3 or 4. Use scale, width or height, not several | |
| width | No | Output width in px | |
| format | Yes | ||
| height | No | Output height in px | |
| nodeId | No | Frame to export. Defaults to the current selection | |
| fileKey | No | Local Mode only. Run against this specific connected file instead of the active file. Get connected fileKeys from figma_list_open_files. Rejected in Cloud Mode, which pairs with a single plugin instance. | |
| quality | No | MP4/WebM quality | |
| loopCount | No | GIF loops (0 = forever) | |
| overwrite | No | Replace a file that already exists at outputPath | |
| outputPath | No | Where to write the file. Default: OS temp folder |