Render Tool
renderRender Tailwind CSS or HTML to pixel-exact PNG, JPEG or WebP images in one call (Tailwind to PNG, HTML to image): social and Open Graph images, favicons and app icons, logos, banners, thumbnails and screenshots of any layout. Pass an HTML fragment styled with Tailwind v4 utility classes; there is no build step, and arbitrary values, @theme tokens and container queries work. The canvas is exactly the preset size in CSS pixels, so make the root element size-full and use portrait: and landscape: variants or vw/vh units so one design adapts across sizes, or pass overrides for a size that needs its own layout. Each image is the finished asset, not a mockup or spec sheet: never put its size, scale, aspect ratio, preset or file name in the design (no "1200 × 630" or "1:1 SQUARE" labels) unless the user asks for that text. Google Fonts load by name: list them in fonts, or just name them in --font-* tokens, font-family or font-['Instrument_Serif'] classes; css @import of a font stylesheet also works. For small images, design on a canvas of at least 200 px and set output (down to 16 px) to downscale, or pass pack: "icon" for a complete favicon and app icon set (a multi-size favicon.ico, apple-touch-icon, PWA and maskable icons, site.webmanifest and tags) from one 512x512 design. Pass brand to load a saved brand kit: colors as brand-* color tokens, fonts as font-heading and font-body, and the logo URL from get_brand. Returns permanent hosted URLs for every file, a preview_page_url to give the user (one page with the images, download buttons and X/LinkedIn/Slack/iMessage unfurl previews; it opens in any browser even when you cannot reach the file URLs), a preview image for you, and warnings listing fonts that did not load, images that failed or timed out, clipped or overflowing text and elements outside the canvas: fix those and re-render before sharing. Pass return: "inline" to also receive the image bytes yourself (sandboxes, CI, locked-down networks). The preset and pack enums list every size, so list_presets is rarely needed; call list_brands only when the user names a brand you have not seen, and get_brand before rendering with it.
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": {
"markup": "<markup>"
},
"name": "render"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Extra Tailwind CSS added after the brand @theme, for example @utility or @keyframes rules. Font stylesheet @imports are loaded as <link> tags. | |
| pack | No | A set: social (og, x, linkedin, instagram, story), og, all (every social size), or icon (favicon.ico, apple-touch-icon, PWA and maskable icons, webmanifest, <head> tags). | |
| brand | No | Slug of a saved brand kit. | |
| fonts | No | Google Fonts families to load, for example ["Instrument Serif", "Inter"] (up to 8). Families named in markup or css load automatically; use this for fonts referenced only through a variable. | |
| sizes | No | Custom canvases in CSS pixels, 200 to 4000 per side, each with an optional output size. | |
| markup | Yes | HTML fragment styled with Tailwind v4 classes. Make the root element size-full. Only the design itself: no size, ratio or preset labels. | |
| preset | No | One size: og 1200x630, x 1600x900, linkedin 1200x1200, linkedin_portrait 1080x1350, instagram 1080x1440, instagram_square 1080x1080, story 1080x1920, youtube 1280x720, icon (favicon and app icon set). Pass exactly one of preset, pack or sizes. | |
| return | No | "urls" (default) returns hosted links; "inline" also sends each png, jpeg and webp file as image content, up to about 1 MB per call. | |
| scales | No | Pixel density per size. Default [1]; [1, 2] adds retina versions. | |
| formats | No | Output formats. Default ["png"]. The icon pack picks its own. | |
| overrides | No | Per-preset markup that replaces markup for that size, for example {"story": "<div ...>"}. | |
| transparent | No | Transparent background (png, webp and icons; apple-touch and maskable icons are always filled). Default false. |