Render mockup
render_mockupStufe 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
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Optional CSS, injected into a <style> tag | |
| html | Yes | The HTML body (or full document) of the view to render | |
| title | No | Short title for this mockup | |
| width | No | Viewport width px (default 1280) | |
| height | No | Viewport height px (default 800) | |
| full_page | No | Capture the full scrollable page (default true for mockups) | |
| project_id | No | Project UUID this mockup belongs to (optional) | |
| revision_of | No | Mockup UUID this is an edited re-render of (keeps both versions retrievable) | |
| base_mockup_id | No | Reuse 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_id | No | Use 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. |