Use agentbrowser to convert html to image
Takes a URL, HTML file path, or raw HTML code and generates a printable image.
Latest: v1.0.0
Initial release of the html-to-image skill.
- Converts a URL, local HTML file, or raw HTML code into a printable image.
- Supports output formats: PNG (default), JPEG, and WebP.
- Allows customization of viewport width and full-page capture options.
- Returns a JSON response with the absolute path to the generated image and metadata.
HTML to Image Skill (via agent-browser)
This skill utilizes OpenClaw's agent-browser composition to render a URL, local HTML file, or raw HTML string into an image. It executes a lightweight Bash script wrapper.
Usage Guide
When using this skill to generate an image, provide the source_type and source_content.
- source_type: The content format (
url,file, orcode). - source_content: The target URL, absolute file path, or HTML code block.
- format: The desired image format (
png,jpeg, orwebp). Default ispng. - width: The width of the browser viewport. Default is 1200px.
- full_page: Set to
trueto take a full page screenshot instead of just the viewport.
