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.
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": "grabzit_convert_html"
}
}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'). |