wp_restore_revision
Restore a specific WordPress page or post revision by applying its title, excerpt, and content. Preview changes with a dry run before writing to avoid unintended modifications.
Instructions
Restore a revision. Prefers the optional wp-mcp companion endpoint; otherwise rewrites core REST title, excerpt, and content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| dry_run | No | Preview changes without writing | |
| post_type | No | page | |
| revision_id | Yes | ||
| if_unmodified_since | No | Fail if modified_gmt changed since this timestamp |