Apply a change set
apply_change_setApplies one change set to a site: edits to text, settings, styles, menus, posts, or SEO, in the operations format that get_schema describes. Before you call it, call site_guide once, read the affected part with get_schema and get_state, and check the change with validate; send the state_version from that read as base_version. It returns the change set id and the resulting state_version, and rollback_change_set can undo the change. After it succeeds, read the changed part again with get_state. If an operation deletes content or adds a link outside the site, nothing is written and the result lists what would be removed or linked: show that list to your user, and call again with confirm: true only after they agree. A stale_state_version error means the site changed after your read: read again and rebuild the change. No content check runs on what you write, and the site is published under your user's business name, so your user owns the wording, the claims, and any reviews: write only what your user gave you.
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": {
"summary": "<summary>",
"operations": "<operations>",
"siteId": "<siteId>",
"base_version": "<base_version>"
},
"name": "apply_change_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Site id from list_sites or create_site. | |
| confirm | No | Set true only after your user approved the list from your previous call to this tool. Never set it on the first call. | |
| summary | Yes | One line for the change card, in the language the person writes in. | |
| operations | Yes | Operations in the plugin's change-set format. Read get_schema first for the fields of each op. | |
| base_version | Yes | The state_version from your latest get_state or get_schema result for this site. A stale_state_version error means the site changed since: read again. |