drive_files_update
Update a Drive file's name, MIME type, or content. Provide an uploadPath to replace the file's content, noting the previous content is not kept.
Instructions
Update a file's metadata or content. An uploadPath replaces the file's content and no copy of the old content is kept. Because it can do that, the whole tool is marked destructive, including calls without uploadPath.
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": "drive_files_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New file name | |
| fields | No | Fields to return | |
| fileId | Yes | The file ID to update | |
| mimeType | No | New MIME type | |
| uploadPath | No | Local file path to upload |