跳到主要内容

Rendex 扩展

本教程介绍如何把 Rendex MCP 服务器 添加为 goose 扩展,用来截图、生成 PDF,以及把任意网页或原始 HTML 渲染成图像。它适合归档界面、生成发票和报告、制作 OG 图像,也能让 goose 可靠地「看见网页」,而不必拉起一整套浏览器自动化栈。

配置​

快速安装

自定义请求头

Authorization: Bearer <YOUR_RENDEX_API_KEY>
  1. Launch the installer
  2. Click Yes to confirm the installation
  3. Get your Rendex API key and paste it in
  4. Click Add Extension
  5. Click the button in the top-left to open the sidebar
  6. Navigate to the chat

使用示例​

下面用 Rendex 扩展,从原始 HTML 生成发票 PDF,并归档一个产品页。

goose 提示词​

1. 把这段 HTML 渲染成 A4 PDF,页边距 1cm:

<!doctype html>
<html>
<body style="font-family: system-ui; padding: 40px;">
<h1>Invoice #0042</h1>
<p>Bill to: Acme Corp</p>
<table>
<tr><td>MCP server listing</td><td>$500.00</td></tr>
<tr><td>Total</td><td><b>$500.00</b></td></tr>
</table>
</body>
</html>

2. 然后对 https://news.ycombinator.com 截一张深色模式的整页图

3. 把两个结果都返回,方便我保存

goose 输出​

我先生成发票 PDF,再截取 HN 页面。

[rendex_screenshot: format=pdf, pdfFormat=A4, pdfMargin={top: 1cm, ...}, html=<invoice markup>]
✓ PDF 截取成功(12,344 字节)
width: 1280 height: 800 capturedAt: 2026-04-15T12:34:56Z

[rendex_screenshot: url=https://news.ycombinator.com, fullPage=true, darkMode=true]
✓ 截图已完成(PNG,847KB)
width: 1280 height: 4,321 waitStrategy: networkidle2

两次渲染都完成了。你得到了:
1. 发票 PDF(A4,12.3KB),结果 1 中为 base64
2. Hacker News 深色模式整页截图(PNG,847KB),结果 2 中为 base64

价格​

Rendex 可以免费试用。免费档不需要信用卡。

方案每月调用次数速率限制
Free50010 次/分钟
Starter10,00060 次/分钟
Pro100,000300 次/分钟
Enterprise定制1,000 次/分钟

在 rendex.dev 获取 API 密钥。

链接​