List trash
list_trashLists deleted pages in a space that can still be restored, most recently deleted first, and shows how many child pages each restore would revive.
Instructions
List the deleted pages in a space that can still be restored, most recently deleted first. Each entry is a page that was deleted directly; descendant_count says how many of its child pages went with it and come back with it. Pages stay in the trash for retention_days, then they are deleted for good. Restore one with restore_page and its id. With a space-scoped token, omit "space" to use the token's space.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_trash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space | No | Space UUID or "workspaceSlug/spaceSlug" path. Optional for space-scoped tokens. |