list_revisions
Lists available revisions of a Google Drive file in chronological order with revision ID, timestamp, and editor. Use the revision ID to export and read historical Sheets or Docs versions.
Instructions
List available revisions for a Google Drive file (Sheets, Docs, or any file).
Returns every revision in chronological order with its ID, timestamp, and the user who made the change. Use the revision ID with export_revision to read a historical version of a spreadsheet (cell data) or a Google Doc (Markdown).
Retention differs by file type:
Binary (uploaded) files: Drive purges a revision 30 days after newer content replaces it, unless keepForever is set (at most 200 per file).
Google Docs, Sheets, and Slides: not subject to that purge, and keepForever doesn't apply to them (always false). Drive may still merge older edits into fewer revisions, so not every edit has its own.
Args: file_id: The Google Drive file ID.
Returns: List of revisions, each with revisionId, modifiedTime, modifiedBy, keepForever.
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": "list_revisions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |