get_drive_revisions
List revision history for a Drive file to find revision IDs and audit who changed what, including timestamps and user info.
Instructions
List the revision history for a Drive file, newest first.
Returns each revision's ID, modification timestamp, last-modifying user
(display name + email), size in bytes (when available), MIME type, and
whether it's pinned via keepForever. Use this to discover revision IDs
before calling restore_drive_revision, or to audit who changed what.
Requires OAuth scope: https://www.googleapis.com/auth/drive.readonly
(or broader). Read-only.
Limitation: Google-native files (Docs, Sheets, Slides) expose revisions
in the API list but their binary content is not retrievable — only
non-native files (PDF, DOCX, images, etc.) support content restore. By
default, Drive retains up to 100 revisions or 30 days, whichever comes
first, unless a revision is pinned (keepForever: true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| file_id | Yes | Drive file ID (from a file URL like `drive.google.com/file/d/<file_id>/view`, or from `search_drive_files`, or from `get_drive_file_metadata`). | |
| page_size | No | Maximum number of revisions to return. Clamped to `[1, 1000]`. Default `25`. No pagination token support in this tool — if the file has more than `page_size` revisions, only the most recent are returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |