Render HTML animation to MP4 with music and captions
The agent generates a self-contained HTML animation, previews it for correctness, and renders it into a downloadable MP4 video file with optional music, voiceover, and captions, providing the user with a direct download link and a shareable watch page.
How it works
First, the agent should verify the user's account status and limits using get_account to ensure they have available render credits. Next, the agent constructs or retrieves the self-contained HTML animation code. It is recommended to call preview_frame with the HTML to allow the user to verify the visual output before committing to a full render. Once approved, the agent calls render with the HTML, specifying desired aspects (e.g., 16:9, 9:16), format (mp4), and optional assets like music_url or captions. The render call returns job_ids immediately. The agent must then poll get_job with the returned job_id, respecting the retry_after_sec interval, until the status is 'done'. Finally, the agent provides the user with the download_url and shareable link from the completed job.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Please render the following HTML animation into a 16:9 MP4 video with background music and captions. First, check my account limits. Then preview the frame to ensure it looks correct. If it looks good, render it. Here is the HTML: [INSERT HTML CODE HERE]MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
The agent writes a self-contained HTML animation, or picks a template. preview_frame returns one still frame so the agent can check its work. render plays the page frame by frame in a real browser and encodes MP4 or GIF, in up to three aspect ratios, adding music, voiceover, captions, title/end…MCP Server Docs: Tools, Auth & Limits | Animation Machine