Render preview
render_previewRender pages locally and save PNG previews to the project previews folder, returning paths, measurements, font reports, and validation issues; optionally return layout or full images on consent.
Instructions
Render pages with the same local renderer used for export, save the PNGs to the project previews/ folder and return their paths, measurements, font report and validation issues. By default NO image content is returned. returnImage "layout" returns a preview with protected screenshots/logos replaced by placeholders. returnImage "full" returns the complete image and requires userConsent quoting the user, because a local MCP server does not mean the client or its model is local: returned images may be uploaded to a remote model.
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": {
"project": "<project>"
},
"name": "render_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | What the saved preview file shows (default full). | |
| pageIds | No | ||
| project | Yes | Project id returned by create_project/open_project in this session, or the project directory path. | |
| returnImage | No | Image content returned to the client (default none). | |
| userConsent | No | Required for returnImage "full": the user's explicit permission in their words. |