Drive Update File Metadata
drive_update_file_metadataRename a Drive file and edit its description, public properties, or private app properties without touching its content or folder location. Only the fields you pass are changed.
Instructions
Rename a Drive file or change its description and custom properties. Only the fields you pass change. To move it between folders use drive_move_file, and to replace its content use drive_upload_file with file_id. Returns status 'ok' and file (id, name, kind, mime_type, size, size_bytes, parent_ids, drive_id, web_url, trashed; null where the change does not report it).
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": "drive_update_file_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New file name; omit to keep the current name. | |
| file_id | Yes | Drive file ID: the id field of Drive and search_workspace results, or the long ID in a Drive, Docs, Sheets or Slides URL. | |
| properties | No | Public key/value pairs (string values) to add or change; keys not listed are kept. | |
| description | No | New description text; an empty string clears it, omit to keep it. | |
| app_properties | No | Private key/value pairs (string values) to add or change, visible only to requests made with this server's OAuth client; keys not listed are kept. | |
| remove_property_keys | No | Public property keys to delete from the file. | |
| remove_app_property_keys | No | Private app property keys to delete from the file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| status | No | Machine-readable operation status. |