Restore a revision
restore_revisionRestore content to an earlier revision while automatically saving the current version as a new revision, making the change reversible.
Instructions
Restore a piece of content to an earlier revision. The current version is itself saved as a revision first, so this is reversible.
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": {
"id": "<id>",
"revision_id": "<revision_id>"
},
"name": "restore_revision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Content ID. | |
| type | No | Content type of that ID. | post |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| revision_id | Yes | Revision ID to restore, from list_revisions. |