insert_slide
Insert a new slide into a deck after a specified slide or at the start; preview by default, then save the validated deck with write=true.
Instructions
Insert a new slide object into a deck file after the slide named by after_id (empty string inserts it first). The slide needs a unique id and the fields its type requires; the resulting deck must pass validate_deck. Dry-run by default: write=true saves atomically. Returns {ok, written, path, slide_id, slide_count, slide_ids}.
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": {
"deck": "<deck>",
"slide": "<slide>"
},
"name": "insert_slide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck | Yes | Deck file inside decks/ (e.g. decks/radar-pro.json) | |
| slide | Yes | Complete slide object with a unique id, e.g. {"id": "s9", "type": "...", ...} | |
| write | No | When true, save the validated deck back to decks/; when false (default), only return the preview | |
| after_id | No | Insert after this slide id; empty string inserts at the start |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | Yes | ||
| written | Yes | ||
| slide_id | Yes | ||
| slide_ids | Yes | ||
| slide_count | Yes |