render_html
Converts HTML strings or local HTML files into PNG screenshots via a headless browser, with configurable viewport size and full-page capture for visual feedback.
Instructions
Render HTML content or an HTML file as a PNG screenshot using a headless browser.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "render_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | HTML string to render | |
| path | No | Absolute path to an HTML file to render | |
| width | No | Viewport width in pixels | |
| height | No | Viewport height in pixels | |
| fullPage | No | Capture the full scrollable page |