Get Google Document
docs_get_documentRetrieve the content and metadata of any Google Doc by its document ID. Returns title, text, and revision info in markdown or JSON format.
Instructions
Retrieve the content of a Google Doc by its ID.
Args:
document_id (string): The ID of the Google Doc (found in the URL after /d/)
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: Document title, content, and metadata. For JSON format: { "documentId": string, "title": string, "textContent": string, "revisionId": string }
Examples:
Get doc content: document_id="1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>"
},
"name": "docs_get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The ID of the Google Doc to retrieve (found in the URL) | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for structured data | markdown |