wp_restore_post_revision tool reference for StifLi Flex MCP
Writerestores a post to a revision by `revision_id`.
Description
restores a post to a revision by `revision_id`.
What it is for
- Recovering previous content.
Example use case
undoing a bad edit.
Sample prompt
Restore post ID 245 to revision ID 14502 because the latest update removed key content.
Sample response
{
"tool": "wp_restore_post_revision",
"status": "ok",
"updated": true
}
What does wp_restore_post_revision do?
restores a post to a revision by `revision_id`.
Does wp_restore_post_revision modify site data?
Yes. It is a write operation and can create, update, or delete data depending on arguments.
Which capability is commonly required?
It usually runs under controls compatible with edit_posts and the active MCP profile.
How should wp_restore_post_revision be used safely?
Enable write confirmations, test in staging first, and keep changelog/rollback enabled.
