import_markdown
Convert structured Markdown presentations into validated DUP Presenter deck JSON; preview and validate by default, then write deck files when enabled.
Instructions
Convert a Markdown presentation (YAML front matter with slug/lang/theme/aspect/caption_style/burn_captions, followed by '## [hero_3d|outro_3d|kpi|timeline] Title' slide headings, voice:/tag:/subtitle:/url:/tagline: lines, and '- left :: right' bullets) into a validated DUP Presenter deck JSON. Dry-run by default: write=false parses and validates without writing to disk; write=true writes decks/.json. Refuses unsafe slugs, unknown keys/slide types with line numbers, oversized input (>300 KB), or overwriting an existing deck unless overwrite=true. Use idea_to_deck when starting from a JSON idea instead of Markdown.
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": {
"markdown": "<markdown>"
},
"name": "import_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| write | No | When true, write decks/<slug>.json; when false (default), validate and return the preview only | |
| markdown | Yes | Markdown document starting with '---' front matter (slug, lang, theme, aspect, caption_style, burn_captions) and slides headed by '## [hero_3d|outro_3d|kpi|timeline] Title' | |
| overwrite | No | Allow replacing an existing decks/<slug>.json when write=true (default false refuses) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | Yes | ||
| slug | Yes | ||
| slides | Yes | ||
| written | Yes | ||
| slide_ids | Yes |