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

InputTypeRequiredNotes
slideshowIdstringyesA normal slideshow id from list_slideshows (kind canvas); choose_hook also takes a tailored one. up to 200 characters
changeobjectyesOne change, saved at once.

The fields inside an object or a list are in the JSON Schema at /developers/mcp-tools.json.

Returns

FieldTypeNotes
slideshowIdstringThe slideshow.
op"set_text" | "set_image" | "choose_hook" | "reorder" | "duplicate" | "delete"The change made.
slideobjectset_text and choose_hook: the changed slide.
reviewState"draft"set_text and choose_hook: the change took back the approval.
exportProblemsstring[]set_text and choose_hook: problems the export would show.
hooksobject | nullchoose_hook: the hook options, with the chosen one active.
linkstringchoose_hook on a tailored slideshow: its link in Wavegrain.
slidesobject[]The slides after the change; a tailored slideshow's new slide images after choose_hook.
slideIndexnumberset_image: the slide changed.
imageUrlstringset_image: the slide's new image.
approvalWithdrawnbooleanTrue when the slideshow was approved and this change withdrew that approval; it must be approved again before it posts by itself.
notestringWhat 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.

Something wrong or missing? Write to support@wavegrain.com.