Skip to content

[Feature Request] Add uploadFile tool to Google Drive folder #315

@natiz

Description

@natiz

Currently, the extension provides tools for searching, downloading, moving, renaming, and trashing files, but it lacks a direct way to upload local files from the filesystem to a Google Drive folder.

Adding an uploadFile (or writeFile) tool would allow the agent to autonomously move local assets, reports, or generated documents into a user's Drive workspace.

Use Case

A user wants to organize local files by having the agent identify the correct folders in Google Drive and then perform the upload automatically. Currently, the agent can map the files but must ask the user to perform the upload manually via the web UI.

Proposed Tool Specification

Tool Name: mcp_google-workspace_drive.uploadFile

Suggested Parameters:

  • localPath (string, required): The absolute path to the file on the local machine.
  • folderId (string, optional): The ID or URL of the destination folder in Google Drive. If omitted, upload to the root.
  • fileName (string, optional): The name the file should have in Drive (defaults to the local filename).
  • mimeType (string, optional): The MIME type of the file.

Expected Behavior

The tool should read the file from the local path and use the Google Drive API's files.create method (with media upload) to save it to the specified destination.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions