Provenance
Freshness & coverage
Methods (11)
listFiles
readList Google Drive files in the root or a specific folder.
Input schema
{ "type": "object", "properties": { "folderId": { "type": "string", "description": "Optional parent folder ID." }, "pageSize": { "type": "number", "description": "Maximum files to return." }, "pageToken": { "type": "string", "description": "Pagination token." }, "orderBy": { "type": "string", "description": "Drive ordering expression." }, "q": { "type": "string", "description": "Optional advanced Drive query." } }, "additionalProperties": true }searchFiles
readSearch Google Drive by text query.
Required paramsqueryInput schema
{ "type": "object", "properties": { "query": { "type": "string", "description": "Search text." }, "pageSize": { "type": "number", "description": "Maximum files to return." }, "pageToken": { "type": "string", "description": "Pagination token." } }, "required": [ "query" ], "additionalProperties": true }downloadFile
readDownload a Google Drive file by ID, auto-exporting Google Workspace formats.
Required paramsfileIdInput schema
{ "type": "object", "properties": { "fileId": { "type": "string", "description": "Google Drive file ID." } }, "required": [ "fileId" ], "additionalProperties": true }uploadFile
writeUpload a file to Google Drive. Provide exactly one of contentBase64, contentText, or sourceUrl.
Required paramsfilenameInput schema
{ "type": "object", "properties": { "filename": { "type": "string", "description": "Filename to create." }, "folderId": { "type": "string", "description": "Optional parent folder ID." }, "folderPath": { "type": "string", "description": "Optional parent folder path." }, "contentText": { "type": "string", "description": "UTF-8 text content to upload." }, "contentBase64": { "type": "string", "description": "Base64-encoded file content." }, "sourceUrl": { "type": "string", "description": "Public/HTTPS URL the server fetches server-side (use INSTEAD of contentBase64 to avoid inlining large files)." }, "mimeType": { "type": "string", "description": "MIME type for the upload." } }, "required": [ "filename" ], "additionalProperties": true }createFolder
writeCreate a folder in Google Drive.
Required paramsnameInput schema
{ "type": "object", "properties": { "name": { "type": "string", "description": "Folder name." }, "parentId": { "type": "string", "description": "Optional parent folder ID. Defaults to \"root\"." }, "folderPath": { "type": "string", "description": "Optional path-based parent (creates intermediate folders if missing)." } }, "required": [ "name" ], "additionalProperties": true }moveFile
writeMove a file to a different parent folder. The destination is named parentId — pass the folder ID returned by createFolder/listFiles.
Required paramsfileIdparentIdInput schema
{ "type": "object", "properties": { "fileId": { "type": "string", "description": "Google Drive file ID to move." }, "parentId": { "type": "string", "description": "Destination folder ID. NOTE: this field is named parentId, not destinationFolderId." } }, "required": [ "fileId", "parentId" ], "additionalProperties": true }copyFile
writeMake a copy of a Drive file.
Required paramsfileIdInput schema
{ "type": "object", "properties": { "fileId": { "type": "string", "description": "Source file ID." }, "name": { "type": "string", "description": "Optional new filename for the copy." }, "parentId": { "type": "string", "description": "Optional destination folder ID for the copy." } }, "required": [ "fileId" ], "additionalProperties": true }deleteFile
writeDelete a Drive file (moves to Trash by default).
Required paramsfileIdInput schema
{ "type": "object", "properties": { "fileId": { "type": "string", "description": "Google Drive file ID to delete." } }, "required": [ "fileId" ], "additionalProperties": true }getFileById
readFetch a Drive file metadata block by ID.
Required paramsfileIdInput schema
{ "type": "object", "properties": { "fileId": { "type": "string", "description": "Google Drive file ID." } }, "required": [ "fileId" ], "additionalProperties": true }getFileByPath
readLook up a Drive file by path-like name (e.g. "/Reports/2024/summary.pdf").
Required paramspathInput schema
{ "type": "object", "properties": { "path": { "type": "string", "description": "Slash-separated path from My Drive root." } }, "required": [ "path" ], "additionalProperties": true }
