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"
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 |