render_html
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
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | 帧率,默认 30 | |
| html | Yes | 完整 HTML 字符串,用 JS 读 location.hash 中的 frame= 和 total= 控制每帧动画 | |
| ratio | No | 画幅,默认 9:16 | |
| frames | No | 帧数,默认 60 |