update_slide
Replace an existing slide's Markdown content by 1-based slide number, with dry_run to preview the diff before writing.
Instructions
Replace the content of an existing slide (1-based slide number). The global frontmatter is not counted. Replaces the entire slide content including any existing per-slide frontmatter. Set dry_run=true to preview the slides.md diff without writing.
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": {
"slide_number": "<slide_number>",
"new_content": "<new_content>"
},
"name": "update_slide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview the change without writing slides.md. Returns dryRun, wouldWrite, and diff. | |
| new_content | Yes | Full replacement content for the slide in Markdown. May include an embedded per-slide frontmatter block at the top (e.g. '---\nlayout: center\nclass: text-center\n---\n# Title'). Replaces the entire slide including any existing per-slide frontmatter. When including a 'class' field in the frontmatter with Tailwind/UnoCSS utility classes, follow the base-style protection rule: BASE STYLE PROTECTION RULE — Do NOT add Tailwind/UnoCSS classes that override the MCP base styles already defined in style.css, unless the user explicitly requests it. FORBIDDEN — typography overrides (style.css controls these): text-xs/sm/base/lg/xl/2xl..9xl (font sizes set per element), font-sans/serif/mono (Inter + JetBrains Mono already applied), font-thin..black (font-weight set per element), leading-* (line-height set on p/li), tracking-* (letter-spacing set on h1/h3). FORBIDDEN — color overrides (breaks dark palette #0d0d0f/#e8e8f0): bg-white, bg-gray-50..200, bg-slate-50..100, bg-zinc-50..100, bg-neutral-50..100, bg-stone-50..100, text-black, text-gray-700..900, text-slate-800..900, text-zinc-800..900, border-gray-200..300, border-white, border-slate-200..300, shadow-*, ring-*. ALLOWED — layout/positioning only (no style.css conflict): text-center/left/right, flex, grid, items-*, justify-*, flex-col/row, p-*, m-*, gap-*, w-*, h-*, max-w-*, overflow-*, relative, absolute, z-*, col-span-*, row-span-*, rounded-*, self-*, truncate, line-clamp-*. ALLOWED — dark-compatible colors (only when color is explicitly needed): bg-transparent, bg-black/*, bg-gray-800..900, bg-zinc-800..900, text-white, text-gray-100..400, text-slate-100..300. PREFERRED: skip color/typography classes entirely — use <style scoped> with CSS variables: var(--color-bg), var(--color-text), var(--color-accent), var(--color-accent2), var(--color-accent3), var(--color-surface), var(--color-border). | |
| slide_number | Yes |