updateRevision
Modify metadata for a specific Drive file revision to keep it indefinitely or control publishing settings for Google Docs and Slides.
Instructions
Updates metadata for a specific revision of a Drive file. Use this to pin a revision so it is kept forever (never auto-deleted by Drive), or to control publishing settings for Google Docs/Slides.
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>",
"revisionId": "<revisionId>"
},
"name": "updateRevision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | The ID of the Drive file. | |
| published | No | Whether this revision is published. Only applies to Google Docs and Slides. | |
| revisionId | Yes | The revision ID to update (from listRevisions). | |
| keepForever | No | If true, this revision is kept indefinitely and will not be automatically deleted. Only applies to files with a binary content type; Google Docs revisions are always kept. | |
| publishAuto | No | Whether subsequent revisions are automatically republished. Only applies to Google Docs and Slides. |