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.
Turns your Plaud voice recordings of client calls into Pipedrive records automatically. Reviews every new recording, identifies genuine client conversations, transcribes them (reusing the recording's own transcript when one exists), saves the transcript to a "Plaud Call Logs" Drive folder, matches the spoken client name and company to a Pipedrive person and open deal, attaches a call note with the discussion summary, commitments, next steps, and transcript link, and creates a follow-up activity dated from spoken commitments. Keeps a Google Sheet ledger so every recording is processed exactly once; recordings that are not client calls are logged and skipped. Re-runnable and idempotent.
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
Dynamic MCP Setup
Connect once through AgentPMT Dynamic MCP, then use approved tools from the same agent connection.
30 Second Setup
STDIO connector for Claude Code, Codex, Cursor, Zed, and other LLMs that require STDIO or custom connections.
npm install -g @agentpmt/mcp-routeragentpmt-setup
Hosted Streamable HTTPS
MCP endpoint for browser-based apps like ChatGPT, Claude, Grok, or any time you want a streamable connection with no local install.
https://api.agentpmt.com/mcp
Config Example
Use the hosted endpoint directly in clients that support remote MCP. Store your Bearer token in the client config or secret field.
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 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_idrequiredstring
Drive file ID to download
export_formatstring
Override export format for Google Workspace files
Values:
pdftxthtmldocxxlsxpptxodtrtfepubzipcsvtsv
output_filenamestring
Override the stored filename
max_bytesinteger
Safety limit for download size in bytes (default 25 MiB, max 250 MiB)
Default: 26214400
Range: 1 - 262144000
expiration_daysinteger
Days until the stored file expires (default 7, range 1-7)
Upload 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 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_idstring
AgentPMT storage file_id to upload into Drive
source_file_urlstring
Public URL to fetch and upload into Drive
source_content_base64string
Base64-encoded content to upload into Drive
filenamestring
Filename for the uploaded file (required with source_content_base64, optional otherwise)
content_typestring
MIME type override for upload (inferred from filename if omitted)
parent_folder_idstring
Destination folder ID (provide only one of parent_folder_id or parent_folder_path)
Login to view your API and budget keys. The example above uses placeholder values. Sign in to see personalized code with your bearer token.
Autonomous agents can access this tool through AgentAddress credit balances or direct x402 payments. Use the Autonomous Agent API reference for endpoint shapes after choosing the access pattern below.
Recommended
Credit-Based Access Using AgentAddress
AgentAddress is preferred when an autonomous agent needs persistent file access, stored platform state, or maximum tool use ability across repeated calls.
Use direct x402 for independent one-off tool calls that do not require shared files or stored platform state.
Accepted public payments
Stablecoin
USDC
Chains
Base, Arbitrum, Optimism, Polygon, and Avalanche
Direct x402 payments are not enabled for this product; use AgentAddress credit access instead.
Product Skill Package
This product has a published Agent Skill package. Install it when an autonomous agent needs product-specific operating instructions in its local skill registry.
Usage guidance provided directly by the developer for this product.
Google Drive
Overview
Search, upload, download, organize, and share Google Drive files and folders. Supports My Drive and shared drives, folder path resolution, file export/conversion, and permission management.
Actions
search_files
Search for files and folders in Google Drive by text, MIME type, or folder location.
Required fields: None (returns all non-trashed files by default)
Optional fields:
query (string) - Plain-text search matched against full text and file name
raw_query (string) - Advanced Drive query string (used directly as the q parameter). If provided, overrides query and other filters
mime_type (string) - Filter by MIME type. Accepts aliases: folder, document, spreadsheet, presentation, drawing, or a full MIME type string
folder_id (string) - Restrict to a specific folder by ID. Use "root" for My Drive root
folder_path (string) - Restrict to a folder by path (e.g., "Projects/Client A"), resolved under folder_id or root
trashed (boolean, default: false) - If true, include trashed items
page_size (integer, default: 25, max: 1000) - Results per page
page_token (string) - Pagination token from a previous response's next_page_token
order_by (string, default: "modifiedTime desc") - Sort order
include_shared_drives (boolean, default: true) - Include items from shared drives
Download a file from Drive and store it in temporary storage. Google Docs/Sheets/Slides are automatically exported (Docs to PDF, Sheets to XLSX, Slides to PPTX by default).
Required fields:
file_id (string) - The Drive file ID
Optional fields:
export_format (string, enum: pdf, txt, html, docx, xlsx, pptx, odt, rtf, epub, zip, csv, tsv) - Override the export format for Google Workspace files
output_filename (string) - Override the stored filename
One of: destination_folder_id (string) or destination_folder_path (string)
Optional fields:
remove_existing_parents (boolean, default: true) - If true, removes the file from its current parent(s). If false, the destination is added as an additional parent
create_parent_folders (boolean, default: false) - Auto-create missing folders in destination_folder_path
folder_id (string) - Root context for resolving destination_folder_path
1. Organize uploaded content into a folder structure
Use ensure_folder_path with ensure_path: "Projects/Client B/Assets" to create the full path
Use upload_file_from_storage with source_file_url or source_content_base64 and set parent_folder_path: "Projects/Client B/Assets"
Use share_file to grant the client read access
2. Download a Google Doc, convert, and reshare
Use search_files with query: "proposal draft" and mime_type: "document" to find the file
Use download_file_to_storage with the file_id and export_format: "docx" to get a Word version
The returned storage file ID can be used with other tools or re-uploaded elsewhere
3. Archive old files to a subfolder
Use search_files with folder_path: "Active Projects" to list files
Use ensure_folder_path with ensure_path: "Archive/2025" to ensure the archive folder exists
Use move_file for each file, setting destination_folder_path: "Archive/2025"
Important Notes
MIME type aliases: Use folder, document, spreadsheet, presentation, or drawing instead of full MIME strings when filtering searches
Folder path resolution: Paths use / separators (e.g., "Projects/Client A/Reports"). If a path segment matches multiple folders with the same name, the tool prefers the exact case match. If truly ambiguous, it returns candidate IDs so you can use the direct folder ID instead
Download size limits: Default 25 MiB, max 250 MiB. Increase max_bytes for larger files
Upload size limits: Default 25 MiB, max 250 MiB. Increase max_upload_bytes for larger files
Google Workspace exports: Google Docs export to PDF by default, Sheets to XLSX, Slides to PPTX, Drawings to PDF. Override with export_format
Shared drives: Included by default (include_shared_drives: true). Set to false to exclude
Trash vs delete:trash_file is recoverable; delete_file is permanent
Upload sources: Provide exactly one of source_file_id, source_file_url, or source_content_base64. Local filesystem paths are not supported
Downloaded files are stored temporarily and expire after expiration_days (default 7, max 7)
Pagination: When results exceed page_size, the response includes next_page_token. Pass it as page_token in the next request to get the next page
Frequently 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:
After the external agent is connected to an Agent Group that can use this tool, paste this prompt into the agent:
Agent prompt
Use the AgentPMT-Tool-Search-and-Execution tool. First call action 'get_instructions' so you know how to use the tool search interface. Then call action 'get_schema' with tool_id 697bb62731d2bd755ac04037 ("Google Drive"). After reading the schema and any returned instructions, tell me what this tool can do, we are going to be using it
The agent should fetch the tool schema first, collect the required parameters for your request, and then call the tool through AgentPMT.
Looking for help integrating AI into your business? Set up a free consultation.