Import Markdown
import_markdownImport Markdown pages with YAML frontmatter into LightCMS to bulk create content. Specify title, slug, folder, template, and publish status for each page.
Instructions
Import one or more Markdown pages into LightCMS. Each page can include YAML frontmatter (title, slug, folder, template, published, publish_at). Ideal for bulk content creation by AI agents — generate markdown with frontmatter and import directly.
Example frontmatter:
title: My Page slug: my-page folder: /blog template: Blog Post published: false
Page body content here.
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": {
"pages": "<pages>"
},
"name": "import_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | Array of markdown pages to import,required | |
| auto_publish | No | Automatically publish imported pages (default false) | |
| default_folder | No | Default folder path when not specified in frontmatter (default /imports) | |
| default_template | No | Default template name when not specified in frontmatter |