restore_from_file
Restore a WordPress page from a JSON backup file. Requires the file path returned by a prior backup operation and a two-step confirmation to prevent accidental overwrites.
Instructions
Restore a page from a JSON backup file (created by ANY earlier op with backup_to_file=true or by direct fullBackup with to_file). Requires the file_path returned by that backup. Two-call confirmation.
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": {
"page_id": "<page_id>",
"file_path": "<file_path>"
},
"name": "restore_from_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | No | ||
| page_id | Yes | ||
| file_path | Yes | ||
| confirmation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| page_id | Yes | ||
| file_path | Yes | ||
| method | No | ||
| pre_restore_backup_meta_key | No | ||
| css_flush | No | ||
| confirmation_token | No |