preview_delete
Validates file deletion requests and issues a one-time ticket, previewing trash moves or permanent purge risks before workspace files are removed.
Instructions
Validate a delete request and issue a one-time ticket.
scope="trash" previews moving paths into the workspace .del directory; set recursive=true to allow non-empty directories. scope="purge" previews permanently deleting .del batches selected by batch_ids, older_than_days, or all=true. A blocked request returns risk="block" and no ticket.
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": {
"scope": "<scope>"
},
"name": "preview_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | ||
| paths | No | ||
| scope | Yes | ||
| batch_ids | No | ||
| recursive | No | ||
| older_than_days | No |