Skip to main content
Glama

render_html

Read-only

Converts HTML strings or local HTML files into PNG screenshots via a headless browser, with configurable viewport size and full-page capture for visual feedback.

Instructions

Render HTML content or an HTML file as a PNG screenshot using a headless browser.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "render_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoHTML string to render
pathNoAbsolute path to an HTML file to render
widthNoViewport width in pixels
heightNoViewport height in pixels
fullPageNoCapture the full scrollable page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description usefully adds that rendering is done by a headless browser and produces a PNG, implying latency and DOM/JS execution, but says nothing about remote asset fetching, timeouts, or where the resulting image is delivered.

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?

A single sentence that front-loads the verb, the inputs, the output format, and the mechanism. No filler or redundancy.

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

Completeness3/5

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

With no output schema, the description should say what the tool returns — raw image bytes, a file path, or base64 — and it does not. It also omits the one-of html/path requirement, which is the main invocation ambiguity for a 5-parameter tool with no required fields.

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

Parameters3/5

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

Schema description coverage is 100%, so all five parameters are already documented with defaults, so the baseline is 3. The description adds no meaning beyond the schema — notably it never clarifies that 'html' and 'path' are mutually exclusive and that one must be supplied despite zero required parameters.

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

Purpose4/5

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

States a specific verb (render), the input resources (HTML string or HTML file), and the output artifact (PNG screenshot via a headless browser). This lets an agent distinguish it from render_pdf/render_svg by output format, but it never explicitly names a sibling or says which one to pick for URL input.

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

Usage Guidelines2/5

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

The description gives no when-to-use guidance, no mention that html and path are alternative inputs, and no pointer to render_url for remote pages. An agent must infer selection rules entirely from parameter names.

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