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.
docs.documents.get · Google Workspace · v1
Details
Scopes
https://www.googleapis.com/auth/documents.readonly
Input
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
document_id | string | Yes | minLength 1; maxLength 256 |
Output
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
id | string | Yes | minLength 1; maxLength 256 |
title | string | Yes | maxLength 512 |
docs_revision_id | string | No | maxLength 256 |
tabs | array<object> | Yes | maxItems 100 |
tabs[] | object | Yes | additionalProperties false |
tabs[].id | string | Yes | minLength 1; maxLength 256 |
tabs[].title | string | No | maxLength 512 |
tabs[].parent_tab_id | string | No | maxLength 256 |
tabs[].content_format | string | Yes | enum markdown |
tabs[].content | string | Yes | — |
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"
]
}