Skip to main content
Glama

preview_content

Preview 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).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoOverride field data for the preview (not saved). Merged on top of existing data.
idYesContent ID (MongoDB ObjectID),required
titleNoOverride title for the preview (not saved)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jonradoff/lightcms'

If you have feedback or need assistance with the MCP directory API, please join our Discord server