Restore a WordPress revision
elementor_restore_revisionRestore an Elementor page layout from a WordPress revision that carries Elementor data, capturing a snapshot first so the current state can be recovered.
Instructions
Restore a page's Elementor layout from a WordPress revision. Only works on revisions flagged as carrying Elementor data. A snapshot is taken first.
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": {
"postId": "<postId>",
"revisionId": "<revisionId>"
},
"name": "elementor_restore_revision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Configured site name. Omit to use the default site. | |
| postId | Yes | WordPress post ID of the Elementor page, post or template. | |
| revisionId | Yes | Revision id from elementor_list_revisions. |