Google Drive upload file

drive__upload_file

Access

Requires a project integration connection for drive.

Call type: Can change resources.

Arguments

FieldTypeRequiredDescription and constraints
uploadTypestringNoGoogle Drive upload mode
fieldsstringNoPartial response field selector
contentstringYesText content to upload
mimeTypestringNoContent MIME type
namestringNoDesired file name; use create_folder for folders
parentsvalue[]NoOptional parent folder IDs

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "drive__upload_file",
    "arguments": {
      "content": "example"
    }
  }
}

Result

No output schema is published for this tool. The input contract does not define its return fields. Inspect the MCP response content and isError; do not assume a fixed object shape. See the drive integration reference for provider setup and tool context.

Full schemas

json
{
  "type": "object",
  "properties": {
    "uploadType": {
      "type": "string",
      "description": "Google Drive upload mode"
    },
    "fields": {
      "type": "string",
      "description": "Partial response field selector"
    },
    "content": {
      "type": "string",
      "description": "Text content to upload"
    },
    "mimeType": {
      "type": "string",
      "description": "Content MIME type"
    },
    "name": {
      "type": "string",
      "description": "Desired file name; use create_folder for folders"
    },
    "parents": {
      "type": "array",
      "description": "Optional parent folder IDs"
    }
  },
  "required": [
    "content"
  ],
  "description": "Arguments for the drive__upload_file tool."
}