Update Marp Deck
marp.updateUpdate a Marp deck by replacing a slide's body using slide ID or index, or merge fields into the deck's frontmatter. Idempotent operation that overwrites in place on the session-active vault.
Instructions
Mutate a Marp deck in place. part:'slide' replaces one slide's body (located by slideId or index) without touching neighbouring slides. part:'frontmatter' merges fields into the deck's frontmatter — unspecified fields are preserved; pass null to a field to unset it. Idempotent — re-running with identical inputs is a no-op on the file contents. Destructive — overwrites in place.
Operates on the session-active vault (see vault.current — selectable via vault.select) unless an explicit vaultPath argument is passed, which always wins.
Examples:
Example 1 — Replace the second slide's body:
{
"part": "slide",
"filePath": "Decks/launch.md",
"index": 1,
"source": "# New headline\n\nUpdated body"
}Example 2 — Change the deck's theme and set a new title:
{
"part": "frontmatter",
"filePath": "Decks/launch.md",
"fields": {
"theme": "gaia",
"title": "Launch plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changed | Yes | True if the tool altered vault state on this call; false if it was a no-op. | |
| target | Yes | The path or identifier the tool acted on. | |
| summary | Yes | Short human-readable summary of what happened. |