googledrive

Get File Metadata

TOOL
Slug
GOOGLEDRIVE_GET_FILE_METADATA
Version
20261018_00
Toolkit
googledrive
Gets a Drive file's metadata by ID, optionally returning only the metadata selected by `fields`. Use `fields` such as `id,name,mimeType,parents,modifiedTime` when a compact partial response is needed; omit it for Google's default metadata. This does not download file content: use…
fields
STRING
Comma-separated list of fields to include in the response. Use this for partial responses to request only specific metadata fields. Common fields: id, name, mimeType, webViewLink, webContentLink, createdTime, modifiedTime, size, quotaBytesUsed, parents, owners, permissions. Use '*' to return all available fields. Note: The deprecated v2 field 'alternateLink' is automatically migrated to 'webViewLink'. Example: 'id,name,mimeType,webViewLink,createdTime,modifiedTime'. Most fields (webViewLink, parents, owners, size, modifiedTime, etc.) are omitted by default — explicitly list required fields or use '*' (increases latency). `md5Checksum` is null for native Google Workspace files (Docs/Sheets/Slides); use `mimeType` to classify items — folders use `mimeType='application/vnd.google-apps.folder'` and Workspace files return `size=null`. `modifiedTime` is RFC 3339 UTC format.
fileIdrequired
STRING
The Google Drive file ID (an opaque alphanumeric string like '1a2b3c4d5e6f7g8h9i0j'), NOT a file name. If you only have a file name, use GOOGLEDRIVE_FIND_FILE or GOOGLEDRIVE_LIST_FILES to get the file ID first.
includeLabels
STRING
A comma-separated list of IDs of labels to include in the labelInfo part of the response.
supportsAllDrives
BOOLEAN
Whether the requesting application supports both My Drives and shared drives. Defaults to true to ensure files in shared drives are accessible.
Default: true
includePermissionsForView
STRING
Specifies which additional view's permissions to include in the response. Only 'published' is supported.