Skip to main content
Glama

Cofferdock

HTML to image (PNG, JPEG or WebP)

html_to_image
Idempotent

HTML to image (PNG, JPEG or WebP). Renders HTML (with inline CSS; fonts and images from the internet are allowed, JavaScript is not executed) into an image. Ideal for social cards, certificates, tickets, OG images or any design you can describe in HTML. Send either html, or template + data to use a ready-made design.

Costs 1 credit per call.

Returns a temporary download link (valid 15 minutes).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoTexts for the template, e.g. { "name": "Jane Doe", "course": "n8n basics" } for "certificate". Plain text only: everything is escaped. Fields you leave out keep the example text.
htmlNoThe HTML to render (max 5 MB). Put the CSS inline or in a <style> tag. Required unless you use template.
langNoLanguage of the example texts of the template.en
widthNoImage width in pixels (100-3840). Default 1200.
formatNoImage format: "png" (lossless, default), "jpeg" or "webp".png
heightNoImage height in pixels (100-2160). Default 630, the standard social-card (Open Graph) proportion.
qualityNoFor jpeg and webp.
wait_msNoExtra wait before the snapshot.
templateNoUse one of our ready-made designs instead of sending html. Fields, example texts and sizes: https://cofferdock.com/templates.json
full_pageNoCapture the whole content height instead of the viewport.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description discloses critical non-obvious behaviors: JavaScript is not executed, external fonts/images are allowed, each call costs 1 credit, and the result is a temporary download link valid for 15 minutes. These details go well beyond the sparse annotations and materially affect how an agent should invoke and handle the tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Every sentence earns its place: capability, rendering constraints, use cases, mode selection, cost, and output lifetime. It stays compact despite the tool's 10-parameter surface and front-loads the core purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and a complex 10-parameter tool, the description supplies the missing integration-level facts: what the call returns, how long the link lasts, the credit cost, and rendering caveats. Combined with the fully described schema, it gives an agent enough to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, but the description adds cross-parameter guidance by explaining the html-or-template+data decision and linking to the template catalog. It avoids repeating field-level details, which the schema already covers well.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The title and opening line state exactly what the tool does: render HTML into an image in PNG, JPEG, or WebP. It distinguishes itself from siblings like html_to_pdf and screenshot_url by emphasizing HTML input, inline CSS, no JavaScript execution, and image output.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit ideal use cases ('social cards, certificates, tickets, OG images') and explains the two invocation modes: raw html or template + data. It does not explicitly name sibling alternatives or when to choose html_to_pdf or screenshot_url instead, so it misses clear exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources