edit_style

Edit a tailored style with Wavegrain's MCP server: the edit_style tool needs the write permission. Inputs, outputs and an example call.

Edit a tailored style. Permission: write. Changes saved work.

Change your tailored style as a new version (full spec or merge patch; only the editable fields of a Wavegrain style); existing slideshows keep theirs. Free.

Inputs

InputTypeRequiredNotes
styleIdstringyesOne of your own styles: from create_style, copy_style or list_styles kind mine. up to 200 characters
specobjectnoThe whole spec with your changes, as get_style answers it; saved as a new version.
patchobjectnoA JSON merge patch (RFC 7396) on the spec; arrays replace whole.
notestringyesWhat changed, in a few words. It becomes the version note. up to 300 characters
lookstringnoA new one-line description of how the style looks, shown on its Style library card. up to 200 characters
sampleobjectnoA new sample, when the change no longer fits the old one.

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

Returns

FieldTypeNotes
styleIdstringThe style id.
namestringThe style's name.
versionnumberThe version this call saved.
sampleReadybooleanTrue when the sample sheet is ready.
sampleSheetUrlstring | nullAn image of sample slides; null when not ready.
notestringWhat to do next.
slideshowsOnOlderVersionsobject[]Slideshows still on an older version; rerender_with_style_version moves one to the new version.

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_style",
    "arguments": {
      "styleId": "<styleId>",
      "note": "<note>"
    }
  }
}

The call shows only the required inputs, with placeholder values: put your own in.

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