export_content
Export content items from LightCMS as structured JSON for batch processing, transformation, or backup. Filter by template, category, or specific fields to extract targeted data.
Instructions
Export content items with their full field data as a structured JSON array.
Use for batch transformations: export → transform externally → re-import via bulk_update_content.
Scope filters (all optional):
template_name: most useful for bulk workflows, e.g. "Concept Page" or "Blog Post"
category, folder_path, content_ids: narrower scoping options
Use fields: ["field1", "field2"] to include only specific data fields instead of all fields.
Returns: total count and array of items with id, title, slug, full_path, template_name, published, and data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Filter by category | |
| content_ids | No | Export only these specific IDs | |
| fields | No | Only include these field names (empty = all fields) | |
| folder_path | No | Filter by folder path prefix | |
| template_name | No | Filter by template name |