Render HTML

HTML rendering skill: exact text and layout as a PNG

The HTML rendering skill is how your agent makes images whose text and layout must be exact. It writes a complete HTML page sized to the output, renders it in a real browser, checks the PNG, and saves layouts you will reuse as templates with tokens.

  • Real-browser rendering, Tailwind supported
  • Transparent backgrounds for overlays
  • 1 credit per image

What the HTML rendering skill does

Image models are good at scenes and poor at exact text. The HTML rendering skill covers the other side: social cards, quote graphics, certificates, pricing cards, text marks and data-driven images where every word and pixel must be right. The agent writes the page with explicit width, height and fonts, and Tailwind classes work as they are.

Images and fonts go into the HTML rendering skill’s pages as tokens backed by durable URLs. After rendering with render_html_image, the agent looks at the PNG and fixes problems in the HTML rather than describing them away. Layouts that will be reused are saved with create_template and rendered later with render_template.

When your agent loads it

Agents load the HTML rendering skill when the user asks for HTML or CSS, supplies HTML, or needs a pixel-exact layout built from code. Ordinary image requests go to image generation.

  • Open Graph and social cards.
  • Quote graphics, certificates and badges.
  • Transparent text marks and logos for overlays.
  • Layouts reused with different values.

Rules it follows

The plugmuse-render-html skill carries rules that keep results predictable and costs under control:

  • Keep the user’s copy exactly.
  • Use a transparent background with a tight canvas for overlays.
  • One render per change; each image costs 1 credit.
  • Import local files first so every asset has a durable URL.
  • Hand ordinary image requests to the image generation skill.
  • Check every PNG before delivering it.

Tools it calls

Every step is a call to the PlugMuse MCP server. These are the tools this skill uses:

ToolWhat the skill uses it for
render_html_imageRender one HTML page to a PNG
create_template / update_templateSave and change reusable layouts
list_templatesFind saved templates
render_templateRender a template with new values
load_imageCheck each render

What is inside the skill

The plugmuse-render-html skill is a SKILL.md file with the workflow and rules, plus reference guides the agent opens only when the job needs them:

  • workflows/render-html.md: HTML rules, templates, sizes and sections.
  • workflow-basics.md: shared execution rules.
  • platform-upload.md: durable URLs for local files.
  • async-jobs.md: waiting for renders.

Example run

A user wants a quote graphic for a customer review, 1080×1080, in the brand font, with the customer’s first name and a five-star row. The HTML rendering skill writes the page with the exact quote, loads the brand font, renders it, and checks the PNG. The quote wraps awkwardly, so it adjusts the line height in the HTML and renders once more.

Because the user will post a review every week, the skill saves the layout as a template with tokens for the quote, the name and the star count.

What you get at the end

You get each PNG at exactly the size you set at a permanent link, and, for reusable layouts, a saved template with tokens, defaults and sizes that any later conversation can render.

Tips for better results

Size the root element exactly to the output and avoid anything that depends on the time, randomness or user input. A stable page renders the same way every time.

Load fonts explicitly from a public URL. A font that fails to load falls back to a system font, which changes line breaks and spacing.

Render one image and check it before saving a template or rendering a batch; a fix in the HTML then applies to everything that follows.

Keep a small set of base layouts for your brand: a social card, a quote card and a banner. The HTML rendering skill can then start every new graphic from an approved template, and design changes happen once in the template rather than in each image.

Use tokens with defaults for every value that changes. A template that renders correctly with its defaults is easy to test, and a missing value never produces a broken image.

How it differs from related skills

The HTML rendering skill makes exact layouts. The image generation skill makes photographic and illustrated images, and the ad variations skill uses HTML templates to render many ad versions in several sizes. The two often combine: a generated product image placed inside an exact HTML layout.

Step by step

The workflow, step by step

  1. Confirm HTML is the right method for the request.
  2. Write a complete page sized to the output with explicit fonts.
  3. Put images and fonts in as tokens with durable URLs.
  4. Render with render_html_image and look at the PNG.
  5. Fix layout problems in the HTML and render again if needed.
  6. Save reusable layouts as templates.

Try it

Requests that use this skill

  • Render this HTML as a 1200×630 PNG.
  • Make a certificate with this name and date in our brand font.
  • Create a transparent PNG of our tagline for video overlays.
  • Save this card layout as a template with a title token.
  • Render the quote card template with this week’s review.

FAQ

Questions and answers

When should I use the HTML rendering skill instead of image generation?

When text, alignment or brand fonts must be exact, or when you supply HTML.

What does a render cost?

1 credit per image.

Does it support Tailwind?

Yes. Tailwind classes work as they are.

Can the HTML rendering skill make transparent PNGs?

Yes, with transparent_background and a tight canvas.

How big can the image be?

Up to 4096 pixels per side.

Can I use images from my library?

Yes. Their durable URLs go in as tokens.

Can I edit a saved template?

Yes, with update_template, which changes only the fields you pass.

Can the HTML rendering skill use my brand theme?

Yes. It reads the theme’s colors, fonts and logos into the HTML.

Is the HTML stored?

Saved templates keep their HTML on your account; one-off renders keep only the PNG.

Can the HTML rendering skill fill a template from a spreadsheet?

Paste the rows into the chat; the agent renders each row as a set of values, up to four per call.

What happens if an image URL fails to load?

The render shows the gap; the agent checks each PNG and fixes the URL before rendering again.

Does the HTML rendering skill support custom fonts?

Yes. Load them from a public URL in the HTML or pass them as tokens.

Can it render charts?

Yes. Charts drawn with HTML, CSS or inline SVG render like any other layout.

Connect in a minute. Start with 20 free credits.

Add the MCP server URL to your AI agent and generate images, video and audio from your first chat.