Skip to main content
Glama

Generate HTML Video

generate_html_video

Make 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

NameRequiredDescriptionDefault
fpsNo24, 30 or 60. Default: 30, or the project's.
widthNoEven number, 2-3840. Default: 1920, or the project's.
effortNolight 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.
formatNoDefault: mp4, or the project's.
heightNoEven number, 2-3840. Default: 1080, or the project's.
promptYesThe 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.
durationNoSeconds, up to 300. Default: 5, or the project's.
project_urlNoPublicly 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_usedNoOptional 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_idNoProject ID from an earlier result. Pass it to change that video; omit it to start a new one.
project_asset_idNoLibrary ZIP or project asset to start a new video from. It is unpacked as the starting project.
reference_assetsNoFiles the user supplied or selected (logos, images, audio). Images are shown to the agent; every file can be used in the video.
media_budget_creditsNoMost credits the agent may spend on generated media this turn (default 200; 0 for none).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say it is a non-read-only, open-world, non-destructive write; the description supplies everything an agent actually needs: a turn takes several minutes, 200 credits are held up front, final cost is 2x AI usage plus media capped at 600/800/1000 by effort, failed or unchanged turns cost nothing, and no turn starts if the hold cannot be covered. It also discloses the Review mode flow (status awaiting_approval, user presses Generate, credits held only then), that earlier renders persist in the Library, and that npm is never run — none of which the annotations convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then start-from-project, change, card/review-mode, and cost — a sensible order for a complex tool. It is long, and a few points are restated ('do not call anything to wait' echoes 'never call it in a loop'; 'one call is enough' overlaps 'a turn takes several minutes'), but nearly every sentence carries operational information for a call that spends credits.

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

Completeness5/5

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

For a 13-parameter, expensive, minutes-long agentic tool with no output schema, the description covers what the agent must know: how the result surfaces (video card, awaiting_approval), how to retrieve the outcome, how to iterate on an existing project, and the full cost model including refunds on failure. Nothing needed to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description genuinely exceeds it by explaining cross-parameter behavior rather than restating fields: cloud_project_id turns the call into an edit and a change preserves the project's size, length, frame rate, format and effort unless explicitly passed; project_url/project_asset_id inherit the project's duration and size. It also sets expectations around effort that must not be changed silently. Minor gap: it does not touch skills_used or reference_assets at all, leaving those to the schema.

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?

States a specific verb and resource — makes a designed video via the Makemancer video agent — and immediately names what it is not for (photorealistic footage → generate_video; existing HTML/ZIP → render_html_video). An agent can distinguish it from the two closest siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use cases (explainers, promos, kinetic typography, motion graphics) and explicit exclusions with the alternative named for each. It also routes to estimate_generation before calling, to check_job for the outcome, and to search_examples when a starting project is wanted. It states the app default: use this for designed videos unless the user supplies or asks for HTML.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.