Skip to main content
Glama

Render mockup

render_mockup

Stufe 2 — render self-written HTML/CSS into a screenshot (PNG). For a screen that does NOT exist yet (a design/mockup), so you don't need a live URL. Renders in this tenant's Browserless and stores BOTH the image and the HTML source, so the same view can be re-rendered after edits. Text in the image is exact (unlike an AI image). Returns { mockup_id, image_url, stage:2 }. Prefer this over an AI image whenever labels/numbers must be precise.

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": {
      "html": "<html>"
    },
    "name": "render_mockup"
  }
}

Input Schema

NameRequiredDescriptionDefault
cssNoOptional CSS, injected into a <style> tag
htmlYesThe HTML body (or full document) of the view to render
titleNoShort title for this mockup
widthNoViewport width px (default 1280)
heightNoViewport height px (default 800)
full_pageNoCapture the full scrollable page (default true for mockups)
project_idNoProject UUID this mockup belongs to (optional)
revision_ofNoMockup UUID this is an edited re-render of (keeps both versions retrievable)
base_mockup_idNoReuse ANOTHER mockup's CSS as the base stylesheet (for a consistent SET — pass the FIRST view of the set here and only send the new HTML body). Its css_source is prepended to your css.
style_profile_idNoUse this profile's design kit: its shared layout skeleton (your html is injected into the {{content}} slot) and shared css. The cleanest way to keep a whole set consistent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the rendering backend (this tenant's Browserless), that both the image and the source HTML are persisted so the view can be re-rendered, that text is rendered exactly, and the return shape { mockup_id, image_url, stage:2 }. It stops short of stating any limits, cleanup behavior, or what happens on rendering failure, which keeps it off a 5.

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

Conciseness4/5

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

Densely packed with useful information and front-loaded with the core verb, with the preference rule and return shape at the end. The 'Stufe 2 —' prefix is internal vocabulary that costs a little clarity for anyone without the pipeline context.

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?

For a ten-parameter mutation with no output schema, the description covers purpose, storage behavior, return shape, and the exact-text advantage, and the schema covers all remaining parameter meaning. An agent has everything needed to decide and call correctly.

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 the parameter meanings are already fully documented in the structured data, including the subtle base_mockup_id and style_profile_id reuse semantics. The description only indirectly motivates revision_of by mentioning re-rendering after edits, adding little beyond what the schema already says.

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?

States a specific verb and resource ('render self-written HTML/CSS into a screenshot (PNG)') and immediately scopes it to screens that do not exist yet, distinguishing it from live-URL screenshotting and from AI image generation. An agent can tell what it produces and what it does not produce without opening the schema.

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

Usage Guidelines5/5

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

Explicit selection criteria: use when the screen does not exist yet, no live URL is required, and prefer it over an AI image whenever labels or numbers must be exact. That names both the positive condition and a concrete alternative with the property that decides between them.

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