Batch Restore Items
restore_itemsRestore multiple soft-deleted items in batch from the trash by providing an explicit items list or using filters; the recovery is reversible for added safety.
Instructions
Restore many soft-deleted items at once (batch recover from the trash). Provide either an explicit items list (entity_type + entity_id pairs) OR filters: entity_type, older_than_days, or all. Restores are reversible - you can delete the items again - so this executes directly and returns a summary of what was recovered. Use purge_items to permanently delete instead.
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": "restore_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Filter: every recoverable item in the trash. | |
| days | No | Filter look-back window in days. Defaults to 30. | |
| items | No | Explicit items to restore. Provide this OR filters. | |
| entity_type | No | Filter: only this entity type. | |
| older_than_days | No | Filter: only items deleted more than N days ago. |