wp_posts_get_revision
Fetch a single revision of a WordPress post by ID to read its content for diffing or restoration.
Instructions
Fetch a single revision of a post by id. Use wp_posts_get_revisions to list revisions, then this to read a specific one's content for diffing or restoration.
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_get_revision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | ||
| revision_id | Yes |