restore_file
Restore a trashed file or folder to its original location, undoing a non-permanent delete. Recovers items from trash by file ID; permanently deleted files cannot be recovered.
Instructions
Restore a trashed file or folder back to its original location — undoes
delete_file when it was called without permanent=True. Raises an
API error (does not silently no-op) if the file was permanently
deleted or otherwise no longer exists — permanent deletion can't be
recovered from.
Args: file_id: The ID of the trashed file or folder to restore.
Returns: Confirmation with fileId and action taken ('restored').
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": {
"file_id": "<file_id>"
},
"name": "restore_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||