Google Drive

GoogleDrive_ShareFile

Share a file or folder in Google Drive with specific people by granting them permissions. If a user already has permission on the file, their role will be updated to the new role. By default, paths are resolved in My Drive. For shared drives, use file IDs or provide shared_drive_id.

Remote googledrive

Remote (network-hosted)

Other tools also called GoogleDrive_ShareFile? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "role": {
      "enum": [
        "reader",
        "commenter",
        "writer",
        "owner"
      ],
      "type": "string",
      "description": "The permission role to grant. Defaults to reader (view-only)."
    },
    "message": {
      "type": "string",
      "description": "Optional message to include in the notification email. Defaults to None."
    },
    "email_addresses": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of email addresses like [email protected] to share with"
    },
    "file_path_or_id": {
      "type": "string",
      "description": "The file path like folder/subfolder/filename or the file ID to share. If providing a path, it will be resolved within My Drive by default."
    },
    "shared_drive_id": {
      "type": "string",
      "description": "If the file is in a shared drive and using a path, provide the shared drive ID. Not needed when using file IDs. Defaults to None (uses My Drive)."
    },
    "send_notification_email": {
      "type": "boolean",
      "description": "Whether to send an email notification to the recipients. Defaults to True."
    }
  }
}