docs_get

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

Retrieve a Google Doc by ID. Returns title, formatted body content, and document structure.

Parameters

NameTypeRequiredDescription
document_idstringyesDocument ID (from the URL)

Example call

Arguments

{
  "document_id": "1BxiMVs0XRA5nFMKUVfGo6Q6XcYBCy_N1LCcFrZkZecc"
}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('docs_get', {
  "document_id": "1BxiMVs0XRA5nFMKUVfGo6Q6XcYBCy_N1LCcFrZkZecc"
});

Response shape

FieldTypeDescription
documentIdstringThe document ID
titlestringDocument title
bodyobjectDocument body structure
errorstringError code if connection failed
messagestringError message if connection failed
Full JSON Schema
{
  "type": "object",
  "description": "Google Doc with title, body content, and document structure",
  "properties": {
    "documentId": {
      "type": "string",
      "description": "The document ID"
    },
    "title": {
      "type": "string",
      "description": "Document title"
    },
    "body": {
      "type": "object",
      "description": "Document body structure"
    },
    "error": {
      "type": "string",
      "description": "Error code if connection failed"
    },
    "message": {
      "type": "string",
      "description": "Error message if connection failed"
    }
  }
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026