Generate HTML Video
generate_html_videoMake a designed video with the Makemancer video agent. Pass prompt, duration, width and height. A cloud agent (Claude Opus 5.5) writes a HyperFrames composition, generates the images, voiceover, music and sound effects the brief calls for, checks renders of it and delivers the MP4. You supply no HTML. Use it for explainers, promos, kinetic typography, motion graphics and other designed, text-led videos. For photorealistic footage or character acting use generate_video. To render HTML or a project ZIP you already have, use render_html_video. A turn takes several minutes.
To start from an existing HyperFrames project or a ZIP example from search_examples, also pass it as project_url or project_asset_id: its index.html (or a built dist/index.html) becomes the starting composition, its other files stay available to it, and the agent builds on it. Give the project's own duration and size unless the user wants them changed. Static projects only: npm is never run.
To change a video this tool made, pass its cloud_project_id with a prompt that says what to change. The agent revises the composition and renders it again; earlier renders stay in the Library. A change keeps the project's size, length, frame rate, format and effort unless you pass them.
What the call shows the user: the video card. It follows progress on its own, then plays the video; changes the user types in its Request changes box come back to you as a message, which you send here with the cloud_project_id. Do not call anything to wait.
Review mode: when the user's video mode is Review, the turn does not start. The card shows the request (prompt, attached assets, effort, media budget, estimated cost) and the user starts it with Generate; only then are credits held. The result says status awaiting_approval: tell the user it is ready to review in the card, where Generate starts it. One call is enough for the request. In Auto mode the turn starts at once. When you need the outcome, call check_job once with the cloud_project_id as job_id: it returns the state, the video URL, the agent's summary, the media it generated and turnCredits, the final cost. Never call it in a loop. Set effort (light, medium, high) to what the user asks for and never change it silently. media_budget_credits caps what the agent may spend on generated media in the turn (default 200; 0 for none).
Cost: this tool charges credits. Each turn holds 200 credits when it starts. When the agent finishes, the turn costs twice the agent's AI usage plus the media it generated, at most 600 (light), 800 (medium) or 1000 (high) credits; the difference is returned or the rest charged then. A failed turn, or one that leaves the video unchanged, costs nothing, and a turn does not start when the account cannot cover the hold. Use estimate_generation with operation html_video and params.method generate (or edit) to show this first. A finished turn states its final cost (turnCredits): tell the user that figure.
In this app this is the default for designed videos from a brief, unless the user supplies HTML or asks you to write it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_html_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | 24, 30 or 60. Default: 30, or the project's. | |
| width | No | Even number, 2-3840. Default: 1920, or the project's. | |
| effort | No | light for simple changes and basic videos, medium (default) for most, high for complex or polished videos; higher is slower and may cost more. A change keeps the project's effort unless given. | |
| format | No | Default: mp4, or the project's. | |
| height | No | Even number, 2-3840. Default: 1080, or the project's. | |
| prompt | Yes | The brief for a new video, or what to change when cloud_project_id is given. Name the user's own assets and their roles; ask the user for media the brief needs and you do not have. | |
| duration | No | Seconds, up to 300. Default: 5, or the project's. | |
| project_url | No | Publicly downloadable HTTPS URL of a HyperFrames project ZIP to start a new video from, such as a ZIP URL returned by search_examples({ id }). | |
| skills_used | No | Optional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs. | |
| cloud_project_id | No | Project ID from an earlier result. Pass it to change that video; omit it to start a new one. | |
| project_asset_id | No | Library ZIP or project asset to start a new video from. It is unpacked as the starting project. | |
| reference_assets | No | Files the user supplied or selected (logos, images, audio). Images are shown to the agent; every file can be used in the video. | |
| media_budget_credits | No | Most credits the agent may spend on generated media this turn (default 200; 0 for none). |