web_tools_render_html
Turn HTML and CSS into a PNG, JPEG or WebP with a real browser engine: cards, banners, charts, email previews, code snippets, diagrams. Fixed size or as tall as the content, up to 3x density, transparent background. Price: $0.02 USDC via x402, charged only on success. Part of Web tools: A real browser for agents: screenshot any page on desktop or phone, read a page as clean Markdown, print a URL or HTML to PDF, draw HTML to an image, make social cards, audit a page for SEO, speed, accessibility and broken links, and compare two versions of a page pixel by pixel..
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": "web_tools_render_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Extra CSS added after the document's own. | |
| dark | No | ||
| html | Yes | HTML to draw: a fragment or a full document. May load public images, fonts and stylesheets. | |
| scale | No | ||
| width | No | ||
| format | No | png | |
| height | No | Fixed height. When omitted the image is as tall as the content. | |
| waitMs | No | Extra wait after the page has loaded, for animations or late content. | |
| quality | No | ||
| selector | No | Capture only this element, cropped to its box. | |
| transparent | No | Keep the page background transparent (PNG and WebP). |