restore_trash_item
Restore a trashed file or folder to its original path. If that path is missing, place it in the root folder, and resolve name conflicts with a numeric suffix.
Instructions
Restore a file or folder from the trash bin to its original location.
The item is restored to its original path. If the original path no longer exists, it is restored to the user's root folder. If a file with the same name already exists, a numeric suffix is added.
Args: trash_path: The trash path identifier from list_trash (e.g. "document.txt.d1711000000").
Returns: Confirmation message.
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": {
"trash_path": "<trash_path>"
},
"name": "restore_trash_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trash_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |