Rename / move / trash a Drive file
update_drive_fileUpdate a Drive file by renaming, moving to a folder, or trashing/untrashing it. Provide fileId; use delete_drive_file for permanent deletion.
Instructions
Update a Drive file: rename (name), move it into a folder (moveToFolderId, optionally removeFromFolderId to move OUT of the old one), or trash / untrash it (trash:true|false). Pass fileId (from list_drive_files). To delete permanently, use delete_drive_file.
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": {
"fileId": "<fileId>"
},
"name": "update_drive_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | new name | |
| trash | No | true -> move to Trash; false -> restore from Trash | |
| fileId | Yes | the Drive file id | |
| moveToFolderId | No | folder id to move the file into (from create_drive_folder / list_drive_files) | |
| removeFromFolderId | No | the old parent folder id to remove (when moving) |