wp_posts_restore_revision
Restore a previous post revision: retrieves the revision's title, content, and excerpt, then writes them back to the parent post. The prior state is kept as a new revision.
Instructions
Restore a previous revision of a post. Reads the revision content + title + excerpt, then writes them back to the parent post. The previous state of the parent becomes a new revision automatically.
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": {
"post_id": "<post_id>",
"revision_id": "<revision_id>"
},
"name": "wp_posts_restore_revision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | ||
| revision_id | Yes |