update_drive_file
Rename / move / trash a Drive file destructive
Description
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.
Parameters
| Parameter | Type | Description |
|---|---|---|
fileIdrequired | string | the Drive file id |
name | string | new name |
moveToFolderId | string | folder id to move the file into (from create_drive_folder / list_drive_files) |
removeFromFolderId | string | the old parent folder id to remove (when moving) |
trash | boolean | true -> move to Trash; false -> restore from Trash |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/update_drive_file.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"update_drive_file","arguments":{"fileId":"<string>"}}}
CLI
hermoso call update_drive_file --json '{"fileId":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
list_drive_filesList Google Drive filesdelete_drive_fileDelete a Drive fileget_drive_fileGet a Drive file’s detailscreate_drive_folderCreate a Drive folderimport_from_cloudImport a Drive / OneDrive folder into the Library