list_recycle_bin
Lists deleted files and folders in a Synology shared folder's recycle bin, with optional pattern search across subfolders and paths to locate items for recovery.
Instructions
List what's in one shared folder's recycle bin: the files and folders deleted from that share. list_shares shows which shares have a bin; for files that weren't deleted, use list_files. Without pattern, only the bin's top level is listed, and DSM sorts folders and files separately, as in list_files. With pattern, the bin is searched, subfolders included (up to 200 folders and 5,000 items; the reply says when it stops early), and each match shows its path in the bin. Modified is the file's own time, not when it was deleted.
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": {
"share": "<share>"
},
"name": "list_recycle_bin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Most items to return; `0` returns them all. | |
| share | Yes | The shared folder whose bin to list, as a name (`video`) or path (`/video`). | |
| offset | No | Items to skip; a reply with more says which offset is next. | |
| pattern | No | Name filter, as in list_files (case-insensitive; `*` and `?`; a bare word matches anywhere), applied across the bin, subfolders included (up to 200 folders and 5,000 items; the reply says when it stops early). | |
| sort_by | No | `mtime` (default: the file's own modified time), `ctime` (closest to when it was deleted), `name`, `size`, `crtime` or `atime`. | mtime |
| sort_direction | No | `desc` (default) or `asc`. | desc |