Read a revision
get_revisionRead an earlier saved version of a post or page—title, excerpt, and full content—to compare it with the current version before restoring it.
Instructions
Read one revision (an earlier saved version) of a post or page: its title, excerpt and full content, as editable source by default. Use it to compare an old version with the current one (get_post) before restore_revision. Get the revision ID from get_revisions.
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": "get_revision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 'raw' (editable source, the default), 'rendered' (HTML), or 'text' (plain text) | raw |
| post_id | Yes | Post or page ID | |
| post_type | No | Post type of post_id: 'post' (the default), 'page', or an allowed custom post type. | post |
| revision_id | Yes | Revision ID, from get_revisions |