list_trash
List deleted files and folders in Nextcloud's trash bin, with pagination options to retrieve restoreable items.
Instructions
List items in the Nextcloud trash bin.
Returns files and folders that were deleted and can be restored.
Args: limit: Maximum number of items to return (1-200, default 50). offset: Number of items to skip for pagination (default 0).
Returns: JSON with "data" (list of trashed items with trash_path, original_name, original_location, deletion_time, is_directory, size, file_id) and "pagination" (count, offset, limit, has_more).
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 |
|---|---|---|---|
| limit | No | ||
| offset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |