grabzit_convert_html
Convert raw HTML strings into images, PDFs, or DOCX documents. Specify format, page size, orientation, and target elements for precise capture.
Instructions
Converts raw HTML string to an Image, PDF, or DOCX.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | The URL of the webpage to convert. | |
| delay | No | Delay in milliseconds before capture (useful for dynamic SPAs or animations). | |
| format | No | Output format. Defaults to 'jpg'. | |
| pageSize | No | Paper size for PDF/DOCX formats. | |
| hideElement | No | CSS selector of elements to strip out before capture (e.g. '.cookie-banner' or '#popup'). | |
| orientation | No | Page orientation for PDF/DOCX formats. | |
| targetElement | No | CSS selector of a specific element to crop and capture (e.g. '#chart' or '.main-content'). |