Restore page
restore_pageRecover a deleted page group from trash, returning it and all descendants as unpublished drafts with content, history, and IDs; if the original parent is gone, the root returns at top level.
Instructions
Restore a deleted page group from the trash: the page and every descendant deleted with it come back, all as unpublished drafts, with their content, history and ids. When the original parent no longer exists the page comes back at the top level. Refused with CONFLICT, restoring nothing, when a live page already uses one of the group's slugs (the error names the slug) or one of the pages is still live; refused with PLAN_LIMIT_EXCEEDED when the restored pages would exceed the organization's page limit. Needs pages:delete. Returns the restored root page with its published state.
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": {
"trashId": "<trashId>"
},
"name": "restore_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trashId | Yes | Trash id of the group to restore, as list_trashed_pages shows it |