Get Content
get_contentRetrieve content items from LightCMS by ID or path to access titles, fields, and published states. Include rendered HTML to preview how content appears to visitors.
Instructions
Get a single content item by ID or path. Returns full content including all field data (title, slug, full_path, data fields, published state).
Prefer path when you know the URL: {"path": "/about"} Use id when you have the MongoDB ObjectID: {"id": "abc123"}
Set include_rendered=true to also receive the fully rendered HTML output (template + theme header/footer applied). Useful for verifying what visitors see without publishing.
Tip: to preview unsaved edits before publishing, use preview_content instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Content ID (MongoDB ObjectID) | |
| include_rendered | No | If true, include the fully rendered HTML output in the response | |
| path | No | Content path (e.g., /about or /blog/my-post) |