Skip to main content
Glama

Reelfinery

render_html

Read-only

HTML 像素级渲染成 MP4(本地浏览器逐帧截图+ffmpeg,零 API 成本):传 HTML/CSS,JS 读 location.hash 里的 frame/total 驱动动画。可做数据卡/图表/精细排版动效。依赖本机 Chromium/Edge(VPS 需 apt install chromium)。

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": {
      "html": "<html>"
    },
    "name": "render_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNo帧率,默认 30
htmlYes完整 HTML 字符串,用 JS 读 location.hash 中的 frame= 和 total= 控制每帧动画
ratioNo画幅,默认 9:16
framesNo帧数,默认 60

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations, it discloses that rendering happens locally with zero API cost, that it depends on a host-installed browser, and that animation is driven by JS reading frame/total from location.hash – all operationally relevant. It does not say where the MP4 lands, how long rendering takes, or what happens if the browser is missing, so it is solid but not exhaustive.

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?

A single dense sentence, front-loaded with the verb, resource and mechanism, then use cases, then the environment dependency. Every clause carries information, though the parenthetical stacking makes it tighter than it needs to be.

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

Completeness4/5

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

For a four-parameter render tool with full schema coverage and annotations, the definition covers mechanism, the HTML animation contract, use cases and the runtime prerequisite. The remaining gap is the return value: with no output schema, the description should say whether the MP4 is returned as a path, URL, or file.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents fps, ratio, frames and html. The description adds the animation contract for `html` (JS must read frame/total from location.hash), which is genuinely useful, but says nothing about fps, ratio or frames beyond the schema. The baseline 3 applies when the schema does the heavy lifting.

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?

The description states a specific verb and resource, '像素级渲染成 MP4', and immediately explains the mechanism (逐帧截图 + ffmpeg). The MP4 output and the HTML input clearly distinguish it from image-oriented siblings such as html_to_image, so an agent can select it without opening the schema.

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

Usage Guidelines4/5

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

It names concrete use cases (数据卡/图表/精细排版动效) and gives a hard prerequisite: it requires a local Chromium/Edge install, with `apt install chromium` on a VPS. It does not name an alternative tool or state when not to use it, so it falls short of explicit routing guidance.

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.

Resources