set_theme
Changes the theme of a Slidev presentation by updating global frontmatter and optionally installing the theme package. Use a dry run to preview slides.md and package.json diffs before applying.
Instructions
Change the theme of the current Slidev presentation. Updates the global frontmatter and optionally installs the theme package. Supports all built-in Slidev themes (default, seriph, apple-basic, etc.) and community themes. Set dry_run=true to preview slides.md/package.json diffs without writing or running pnpm install.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Theme name to apply. Can be a built-in Slidev theme (e.g. 'default', 'seriph', 'apple-basic') or any published package name (e.g. 'slidev-theme-eloc'). Built-in themes are prefixed automatically: 'seriph' → '@slidev/theme-seriph'. Pass a full package name (starting with '@' or 'slidev-theme-') to use community themes. If omitted, defaults to 'seriph'. | seriph |
| dry_run | No | Preview the theme change without writing slides.md or package.json and without running pnpm install. Returns dryRun, wouldWrite, diffs, and install metadata. | |
| install | No | Whether to run pnpm install to install the theme package. Defaults to true. Set to false if you know the theme is already installed. |