render_preview
Generates a watermarked PDF, HTML, or PNG preview of a saved or unsaved Odoo template so you can inspect layout, alignment, and clipped text, then iterate on the design.
Instructions
Render a preview (PREVIEW watermark, no credits) of a saved template (template_id) or an unsaved layout. output=html returns the HTML inline; pdf/png are saved to a local file and the path is returned (png = page 1). With output=png and show=true (default) the image itself comes back too: look at it to judge the design (alignment, overlaps, clipped text, contrast) and iterate.
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_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| show | No | ||
| model | No | ||
| layout | No | ||
| output | No | ||
| mapping | No | ||
| language | No | ||
| timezone | No | ||
| record_id | No | ||
| template_id | No |