edit_slides
Edit slides with Wavegrain's MCP server: the edit_slides tool needs the write permission. Inputs, outputs and an example call.
Edit slides. Permission: write. Changes or removes saved work.
Change the slides of a normal (canvas) slideshow, one change a call: set_text, set_image, choose_hook (also on a tailored one), reorder, duplicate or delete. Each saves at once and withdraws approval; a deleted slide cannot be brought back. Other tailored changes use edit_tailored_slideshow.
Inputs
| Input | Type | Required | Notes |
|---|---|---|---|
slideshowId | string | yes | A normal slideshow id from list_slideshows (kind canvas); choose_hook also takes a tailored one. up to 200 characters |
change | object | yes | One change, saved at once. |
The fields inside an object or a list are in the JSON Schema at /developers/mcp-tools.json.
Returns
| Field | Type | Notes |
|---|---|---|
slideshowId | string | The slideshow. |
op | "set_text" | "set_image" | "choose_hook" | "reorder" | "duplicate" | "delete" | The change made. |
slide | object | set_text and choose_hook: the changed slide. |
reviewState | "draft" | set_text and choose_hook: the change took back the approval. |
exportProblems | string[] | set_text and choose_hook: problems the export would show. |
hooks | object | null | choose_hook: the hook options, with the chosen one active. |
link | string | choose_hook on a tailored slideshow: its link in Wavegrain. |
slides | object[] | The slides after the change; a tailored slideshow's new slide images after choose_hook. |
slideIndex | number | set_image: the slide changed. |
imageUrl | string | set_image: the slide's new image. |
approvalWithdrawn | boolean | True when the slideshow was approved and this change withdrew that approval; it must be approved again before it posts by itself. |
note | string | What to tell the user. |
Example call
Send it to POST https://wavegrain.com/api/mcp with an access key that has the write permission; Authentication shows how to make one.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "edit_slides",
"arguments": {
"slideshowId": "<slideshowId>",
"change": {
"slideIndex": 1,
"op": "set_text"
}
}
}
}
The call shows only the required inputs, with placeholder values: put your own in.
Related tools
move_scheduled: Move planned postsschedule_slideshows: Schedule slideshowsunschedule_slideshow: Unschedule a slideshowsave_images: Save images to the libraryopen_upload: Open a drop zone for photosimport_image: Import an image from a URL- All 79 tools
Something wrong or missing? Write to support@wavegrain.com.