get_doc_as_markdown
Convert a Google Doc to Markdown, preserving headings, bold, italics, links, lists, and tables, with comment threads and anchor text for full context.
Instructions
Reads a Google Doc and returns it as clean Markdown with optional comment context.
Unlike get_doc_content which returns plain text, this tool preserves document formatting as Markdown: headings, bold/italic/strikethrough, links, code spans, ordered/unordered lists with nesting, and tables.
When comments are included (the default), each comment's anchor text — the specific text the comment was attached to — is preserved, giving full context for the discussion.
Args: user_google_email: User's Google email address document_id: ID of the Google Doc (or full URL) include_comments: Whether to include comments (default: True) comment_mode: How to display comments: - "inline": Footnote-style references placed at the anchor text location (default) - "appendix": All comments grouped at the bottom with blockquoted anchor text - "none": No comments included include_resolved: Whether to include resolved comments (default: False)
Returns: str: The document content as Markdown, optionally with comments
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | ||
| comment_mode | No | inline | |
| include_comments | No | ||
| include_resolved | No | ||
| user_google_email | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |