Skip to main content
FuseFuse
IntegrationsGoogle workspaceActions

Get Google Docs document content

Read a native Google Doc as bounded Markdown tabs. docs_revision_id is ephemeral and user-specific; consumers use Drive File.version for durable change detection. Never downloads binaries or follows image/object URLs.

Agent markdown

docs.documents.get · Google Workspace · v1

Details

Risk
Read
Idempotency
Safe
Availability
Default
Exposure
REST, SDK, MCP
MCP hints
readOnly=true, destructive=false, idempotent=true, openWorld=true

Scopes

  • https://www.googleapis.com/auth/documents.readonly

Input

Input schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
document_idstringYesminLength 1; maxLength 256

Output

Output schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
idstringYesminLength 1; maxLength 256
titlestringYesmaxLength 512
docs_revision_idstringNomaxLength 256
tabsarray<object>YesmaxItems 100
tabs[]objectYesadditionalProperties false
tabs[].idstringYesminLength 1; maxLength 256
tabs[].titlestringNomaxLength 512
tabs[].parent_tab_idstringNomaxLength 256
tabs[].content_formatstringYesenum markdown
tabs[].contentstringYes

Raw schema

Input
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "document_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    }
  },
  "required": [
    "document_id"
  ]
}
Output
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "title": {
      "type": "string",
      "maxLength": 512
    },
    "docs_revision_id": {
      "type": "string",
      "maxLength": 256
    },
    "tabs": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "title": {
            "type": "string",
            "maxLength": 512
          },
          "parent_tab_id": {
            "type": "string",
            "maxLength": 256
          },
          "content_format": {
            "type": "string",
            "enum": [
              "markdown"
            ]
          },
          "content": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "content_format",
          "content"
        ]
      },
      "maxItems": 100
    }
  },
  "required": [
    "id",
    "title",
    "tabs"
  ]
}