Skip to main content
Glama

set_slide_transition

Add slide transitions, click-to-reveal animations, or enter/leave motion effects to Slidev slides; preview changes with dry-run before writing slides.md.

Instructions

Add transitions, click animations (v-click), and motion effects (v-motion) to Slidev slides. Supports: slide transitions (per-slide or global), v-click step-by-step reveals, v-mark highlights, and v-motion enter/leave animations. Set dry_run=true to preview the slides.md diff without writing. Reference: https://sli.dev/guide/animations

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": {
      "mode": "<mode>"
    },
    "name": "set_slide_transition"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesAnimation mode: 'transition' — Set slide-to-slide transition for a specific slide. 'global-transition' — Set the default transition for ALL slides (global headmatter). 'v-click' — Add click-to-reveal animations to elements in a slide's content. 'v-motion' — Add enter/leave motion animations to elements in a slide.
dry_runNoPreview the change without writing slides.md. Returns dryRun, wouldWrite, and diff.
auto_wrapNoFor 'v-click' mode without click_content: if true, automatically wraps each non-empty content block (paragraphs, headings after the first) in the slide with sequential v-click directives. Useful for step-by-step reveals.
transitionNoTransition name. Built-ins: slide-left, slide-right, slide-up, slide-down, fade, fade-out, zoom, none. Can also be a custom CSS class name. For forward/backward different transitions, use 'forward|backward' format (e.g. 'slide-left|slide-right'). Required for modes 'transition' and 'global-transition'.
click_countNoFor 'transition' mode: sets the number of clicks required before the slide advances. Maps to the 'clicks' frontmatter field.
slide_numberNoTarget slide number (1-based). Required for modes 'transition', 'v-click', and 'v-motion'.
click_contentNoFor 'v-click' mode: the slide's full new content with v-click/v-after/v-mark directives already embedded as HTML attributes. Example: '# Title\n\n<div v-click>Appears on click 1</div>\n\n<p v-click>Appears on click 2</p>\n\n<span v-mark.underline="3">Underlined on click 3</span>'. The tool replaces the slide content with this value. If omitted, the tool appends v-click wrappers to each paragraph/heading in the slide.
motion_contentNoFor 'v-motion' mode: the slide's full new content with v-motion directives embedded. Example: '<div v-motion :initial="{x: -80, opacity: 0}" :enter="{x: 0, opacity: 1, transition: {delay: 200}}">Hello</div>'. Reference: https://sli.dev/guide/animations#motion

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden. It implies a write to slides.md (via the dry_run 'without writing' phrasing) and previews a diff, but never states that the tool mutates the file, that content is overwritten, or whether changes are reversible. The replacement semantics for click_content/motion_content appear only in the schema, not in the description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: purpose first, then capabilities, then the dry-run escape hatch and a reference link. No filler, and the most important information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter tool with no annotations and no output schema, the description covers purpose, the four modes, and a safe-preview path, while the schema handles per-mode parameter requirements. The main gap is that the file-mutation behavior is only implied rather than stated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description echoes the mode names and mentions dry_run, but adds no syntax, format, or mode-parameter interaction detail beyond what the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource ('Add transitions, click animations (v-click), and motion effects (v-motion) to Slidev slides') and enumerates the four supported animation families. It does not explicitly distinguish this from content-editing siblings such as update_slide, so an agent must infer that boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It offers a concrete usage hint ('Set dry_run=true to preview the slides.md diff without writing') and the mode enum in the schema defines the four use cases. However, there is no explicit statement of when to reach for this tool versus update_slide or set_style, and no when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.