drive_get_content

Pack: google_drive · Endpoint: https://gateway.pipeworx.io/google_drive/mcp

Download file content from Drive. Export Google Docs/Sheets/Slides to PDF, Word, Excel, etc., or retrieve raw content from other files.

Parameters

NameTypeRequiredDescription
file_idstringyesThe ID of the file to download
export_mime_typestringnoMIME type to export Google Workspace files to (e.g., “text/plain”, “application/pdf”, “text/csv”). Required for Google Docs/Sheets/Slides.

Example call

Arguments

{
  "file_id": "1a2b3c4d5e6f7g8h9i0j"
}

curl

curl -X POST https://gateway.pipeworx.io/google_drive/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"drive_get_content","arguments":{"file_id":"1a2b3c4d5e6f7g8h9i0j"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('drive_get_content', {
  "file_id": "1a2b3c4d5e6f7g8h9i0j"
});

More examples

{
  "file_id": "1a2b3c4d5e6f7g8h9i0j",
  "export_mime_type": "application/pdf"
}

Response shape

FieldTypeDescription
file_idstringThe file ID retrieved
export_mime_typestringMIME type file was exported to
contentstringFile content as text
errorstringError code if connection failed
messagestringError message with instructions
Full JSON Schema
{
  "type": "object",
  "properties": {
    "file_id": {
      "type": "string",
      "description": "The file ID retrieved"
    },
    "export_mime_type": {
      "type": "string",
      "description": "MIME type file was exported to"
    },
    "content": {
      "type": "string",
      "description": "File content as text"
    },
    "error": {
      "type": "string",
      "description": "Error code if connection failed"
    },
    "message": {
      "type": "string",
      "description": "Error message with instructions"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "google_drive": {
      "url": "https://gateway.pipeworx.io/google_drive/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026