Preview Content
preview_contentPreview content changes before publishing by rendering HTML with optional data overrides to verify page appearance without saving.
Instructions
Render a content item's HTML without saving or publishing. Use this to verify what a page will look like before publishing.
Also accepts optional title/data overrides to preview unsaved edits: {"id": "abc123", "data": {"body": "New text"}}
Returns rendered_html and any warnings (missing required fields, unclosed tags, unresolved placeholders).
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": {
"id": "<id>"
},
"name": "preview_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Content ID (MongoDB ObjectID),required | |
| data | No | Override field data for the preview (not saved). Merged on top of existing data. | |
| title | No | Override title for the preview (not saved) |