capture_html
Render HTML with CSS into a screenshot for UI previews, email templates, or dashboard widgets. Sanitizes input and blocks external scripts for secure previews.
Instructions
Render arbitrary HTML as a screenshot with full CSS support. Use for custom UI previews, email templates, dashboard widgets, or any HTML/CSS content. Renders in a clean viewport with optional window chrome. Security: input is sanitized, external resources (scripts, iframes, external CSS) are blocked. Maximum input 200KB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | HTML content to render. External scripts, iframes, and external stylesheets are blocked for security. Inline styles and <style> tags work. Maximum 200KB. | |
| title | No | Description for logging and window title (if window chrome enabled). | html |
| output | No | Output filename (default: auto-generated as 'html-<timestamp>.png' or '.jpeg' based on SNAPMCP_FORMAT). Include extension to override format. |