

Google Drive
Function
Available ActionsEach successful request consumes credits as outlined below.
search_files5crget_file_metadata5crdownload_file_to_storage5crupload_file_from_storage5crcreate_folder5crensure_folder_path5crmove_file5crcopy_file5crtrash_file5crdelete_file5crshare_file5crlist_permissions5cr
Details
Give your AI agent access to Google Drive for seamless file management, organization, and collaboration. Search across your Drive to find files by name or content, download files to AgentPMT storage for processing, and upload new files back to Drive from AgentPMT storage or public URLs. Create folder structures with automatic path creation, move and copy files between folders, and manage sharing permissions to collaborate with others. Export Google Docs, Sheets, and Slides to formats like PDF, DOCX, or XLSX. This tool is essential for agents that need to work with documents stored in Drive, automate file organization, sync content between systems, or manage document workflows. All operations run securely through your connected Google OAuth account with support for both personal Drive and shared drives.
Use Cases
Search Drive files by name or content, Download files to AgentPMT storage for processing, Upload files to Drive from AgentPMT storage, Create folder structures and organize files, Move and copy files between folders, Share files and manage permissions, Export Google Docs to PDF or DOCX, Sync files between Drive and other systems, Automate document organization workflows, Manage shared drive content
Credentials
Google OAuth *
Connect your Google account.
Manage credentials in your dashboard.
Actions(12)
search_files5cr10 paramsSearch for files and folders in Google Drive by text, MIME type, or folder location.
search_files5cr10 paramsSearch for files and folders in Google Drive by text, MIME type, or folder location.
querystringPlain-text search matched against full text and file name
raw_querystringAdvanced Drive query string (q=...). If provided, overrides query and other filters.
mime_typestringFilter by MIME type. Accepts aliases: folder, document, spreadsheet, presentation, drawing. Or a full MIME type string.
folder_idstringRestrict to a specific folder by ID. Use 'root' for My Drive root.
folder_pathstringRestrict to a folder by path (e.g., 'Projects/Client A'), resolved under folder_id or root.
trashedbooleanIf true, include trashed items (default false)
Default:
falsepage_sizeintegerMax results per page (default 25, max 1000)
Default:
25Range: 1 - 1000
page_tokenstringPagination token from a previous response
order_bystringDrive orderBy string (default 'modifiedTime desc')
Default:
modifiedTime descinclude_shared_drivesbooleanInclude items from shared drives (default true)
Default:
trueget_file_metadata5cr2 params(1 required)Retrieve metadata for a specific file or folder.
get_file_metadata5cr2 params(1 required)Retrieve metadata for a specific file or folder.
file_idrequiredstringDrive file or folder ID
include_shared_drivesbooleanInclude shared drives (default true)
Default:
truedownload_file_to_storage5cr7 params(1 required)Download a file from Drive and store it in temporary AgentPMT storage. Google Docs/Sheets/Slides are automatically exported (Docs to PDF, Sheets to XLSX, Slides to PPTX by default).
download_file_to_storage5cr7 params(1 required)Download a file from Drive and store it in temporary AgentPMT storage. Google Docs/Sheets/Slides are automatically exported (Docs to PDF, Sheets to XLSX, Slides to PPTX by default).
file_idrequiredstringDrive file ID to download
export_formatstringOverride export format for Google Workspace files
Values:
pdftxthtmldocxxlsxpptxodtrtfepubzipcsvtsv
output_filenamestringOverride the stored filename
max_bytesintegerSafety limit for download size in bytes (default 25 MiB, max 250 MiB)
Default:
26214400Range: 1 - 262144000
expiration_daysintegerDays until the stored file expires (default 7, range 1-7)
Default:
7Range: 1 - 7
acknowledge_abusebooleanAllow downloading files flagged as abusive (non-Google files only, default false)
Default:
falseinclude_shared_drivesbooleanInclude shared drives (default true)
Default:
trueupload_file_from_storage5cr11 paramsUpload a file into Google Drive. Provide exactly one source: source_content_base64 (requires filename), source_file_url, or source_file_id. Local file paths are NOT supported.
upload_file_from_storage5cr11 paramsUpload a file into Google Drive. Provide exactly one source: source_content_base64 (requires filename), source_file_url, or source_file_id. Local file paths are NOT supported.
source_file_idstringAgentPMT storage file_id to upload into Drive
source_file_urlstringPublic URL to fetch and upload into Drive
source_content_base64stringBase64-encoded content to upload into Drive
filenamestringFilename for the uploaded file (required with source_content_base64, optional otherwise)
content_typestringMIME type override for upload (inferred from filename if omitted)
parent_folder_idstringDestination folder ID (provide only one of parent_folder_id or parent_folder_path)
parent_folder_pathstringDestination folder path (e.g., 'Projects/Reports')
create_parent_foldersbooleanAuto-create missing folders in parent_folder_path (default false)
Default:
falsefolder_idstringRoot context for resolving parent_folder_path (defaults to My Drive root)
max_upload_bytesintegerSafety limit for upload size in bytes (default 25 MiB, max 250 MiB)
Default:
26214400Range: 1 - 262144000
include_shared_drivesbooleanInclude shared drives (default true)
Default:
truecreate_folder5cr6 params(1 required)Create a new folder in Google Drive.
create_folder5cr6 params(1 required)Create a new folder in Google Drive.
folder_namerequiredstringName of the new folder
parent_folder_idstringParent folder ID (provide only one of parent_folder_id or parent_folder_path)
parent_folder_pathstringParent folder path
create_parent_foldersbooleanAuto-create missing parent folders (default false)
Default:
falsefolder_idstringRoot context for resolving parent_folder_path (defaults to My Drive root)
include_shared_drivesbooleanInclude shared drives (default true)
Default:
trueensure_folder_path5cr3 params(1 required)Ensure a full folder path exists, creating any missing segments. Returns the final folder ID.
ensure_folder_path5cr3 params(1 required)Ensure a full folder path exists, creating any missing segments. Returns the final folder ID.
ensure_pathrequiredstringFolder path to ensure (e.g., 'Projects/Client A/Deliverables')
folder_idstringRoot folder ID to resolve path under (defaults to My Drive root)
include_shared_drivesbooleanInclude shared drives (default true)
Default:
truemove_file5cr7 params(1 required)Move a file or folder to a different location in Google Drive.
move_file5cr7 params(1 required)Move a file or folder to a different location in Google Drive.
file_idrequiredstringThe file or folder ID to move
destination_folder_idstringDestination folder ID (provide only one of destination_folder_id or destination_folder_path)
destination_folder_pathstringDestination folder path
remove_existing_parentsbooleanRemove the file from its current parent(s) (default true). If false, destination is added as an additional parent.
Default:
truecreate_parent_foldersbooleanAuto-create missing folders in destination_folder_path (default false)
Default:
falsefolder_idstringRoot context for resolving destination_folder_path
include_shared_drivesbooleanInclude shared drives (default true)
Default:
truecopy_file5cr7 params(1 required)Create a copy of a file in Google Drive.
copy_file5cr7 params(1 required)Create a copy of a file in Google Drive.
file_idrequiredstringThe file ID to copy
new_namestringName for the copy
parent_folder_idstringDestination folder ID (provide only one of parent_folder_id or parent_folder_path)
parent_folder_pathstringDestination folder path
create_parent_foldersbooleanAuto-create missing folders (default false)
Default:
falsefolder_idstringRoot context for resolving parent_folder_path
include_shared_drivesbooleanInclude shared drives (default true)
Default:
truetrash_file5cr2 params(1 required)Move a file or folder to the trash (recoverable).
trash_file5cr2 params(1 required)Move a file or folder to the trash (recoverable).
file_idrequiredstringThe file or folder ID to trash
include_shared_drivesbooleanInclude shared drives (default true)
Default:
truedelete_file5cr2 params(1 required)Permanently delete a file or folder (not recoverable).
delete_file5cr2 params(1 required)Permanently delete a file or folder (not recoverable).
file_idrequiredstringThe file or folder ID to permanently delete
include_shared_drivesbooleanInclude shared drives (default true)
Default:
trueshare_file5cr5 params(2 required)Share a file or folder by creating a permission.
share_file5cr5 params(2 required)Share a file or folder by creating a permission.
file_idrequiredstringThe file or folder ID to share
permissionrequiredobjectPermission details
Properties:
permission_type*(string)- Permission typerole*(string)- Permission roleemail(string)- Email for user/group permissions. Also accepts emailAddress as alias.domain(string)- Domain for domain-type permissionsallow_file_discovery(boolean)- For anyone/domain types, allow discovery via search (default false)send_notificationbooleanSend email notification for user/group shares (default true)
Default:
trueemail_messagestringCustom message in the notification email
include_shared_drivesbooleanInclude shared drives (default true)
Default:
truelist_permissions5cr2 params(1 required)List all permissions on a file or folder.
list_permissions5cr2 params(1 required)List all permissions on a file or folder.
file_idrequiredstringThe file or folder ID
include_shared_drivesbooleanInclude shared drives (default true)
Default:
trueFrequently Asked Questions
How do I connect this tool to an external agent?
You can install the local MCP server by opening a terminal and running:
Install commands
npm install -g @agentpmt/mcp-router
agentpmt-setupThis will connect you to local agents like Claude Code, Windsurf, Grok Build, Cursor, etc.
Alternatively you can connect to the hosted version with this config block, no installation required:
Hosted MCP config
{
"mcpServers": {
"agentpmt": {
"type": "streamable-http",
"url": "https://api.agentpmt.com/mcp",
"headers": {
"Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
"x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
}
}
}
}View MCP Connection Instructions for more details.
How does an external agent use this tool?
After the external agent is connected to an Agent Group that can use this tool, paste this prompt into the agent:
Agent prompt
Call the AgentPMT-Tool-Search-and-Execution tool with action 'get_schema' and tool_id 697bb62731d2bd755ac04037 ("Google Drive"). Then call the same tool with action 'call_tool', tool_id 697bb62731d2bd755ac04037, and the parameters needed for my request.
The agent should fetch the tool schema first, collect the required parameters for your request, and then call the tool through AgentPMT.







