print_html
Render HTML and print it on a thermal receipt printer. Preview first with preview_html, then send your ticket HTML for 58mm black-and-white output, including QR codes, images, and custom styles.
Instructions
Render ticket HTML and print it on the thermal printer. Preview with preview_html first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | HTML body fragment to render on 58mm thermal paper (384px wide canvas, unlimited height, 1-bit black & white output). You may include your own <style> tag. Remote images and web fonts (e.g. Google Fonts) ARE supported. Grayscale/color images and gradients are supported — they are dithered to 1-bit with a high-quality algorithm. Special feature: <img data-qr="text or url" width="160"> is replaced with a generated QR code. Call the design_guide tool first for fonts, layout, and house-style guidance (or read the "thermal-print" skill if you're in Claude Code). | |
| mode | No | binarization mode: "auto" (default — detects photos/gradients and dithers them, keeps pure text razor-sharp), "text" (hard threshold), "photo" (force Atkinson dithering) | |
| algorithm | No | photo dithering algorithm: "atkinson" (default, crisp), "jarvis" (smoother gradients), "bayer" (ordered halftone / newspaper look) | |
| feed_lines | No | blank lines fed after the ticket for tearing (default 4) |