# edit_slides

> Edit slides with Wavegrain's MCP server: the edit_slides tool needs the write permission. Inputs, outputs and an example call.

> Index of these docs: https://wavegrain.com/developers/llms.txt

**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](/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](/developers/authentication) shows how to make one.

```json
{
  "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`](/developers/mcp-tools/move_scheduled): Move planned posts
- [`schedule_slideshows`](/developers/mcp-tools/schedule_slideshows): Schedule slideshows
- [`unschedule_slideshow`](/developers/mcp-tools/unschedule_slideshow): Unschedule a slideshow
- [`save_images`](/developers/mcp-tools/save_images): Save images to the library
- [`open_upload`](/developers/mcp-tools/open_upload): Open a drop zone for photos
- [`import_image`](/developers/mcp-tools/import_image): Import an image from a URL
- [All 79 tools](/developers/mcp-tools)
