insert_doc_markdown
Convert markdown to native Google Docs styling—headings, bold, lists, and checkboxes—by translating markdown into Docs API batch requests.
Instructions
Insert markdown-formatted content into a Google Doc with native styling.
Converts markdown to Docs API batch requests so output renders with
real Docs styles (headings, bold, lists), not raw markdown. For plain
text insertion use modify_doc_text; for find-and-replace patterns use
find_and_replace_doc. Supports # H1..### H3, **bold**,
*italic*, - bullets, 1. numbered, and - [ ] checkbox (plus
- [x]). Requires the documents OAuth scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address (authenticated account). | |
| document_id | Yes | Target document ID. | |
| markdown | Yes | Markdown source to insert. | |
| index | No | 1-based document index to insert at. Default 1 (start of body). Ignored when end_of_segment=True. | |
| tab_id | No | Tab ID from list_doc_tabs to target a specific tab. | |
| segment_id | No | Header/footer/footnote segment ID from inspect_doc_structure (do not invent IDs). | |
| end_of_segment | No | True appends to the end of the target segment without needing to calculate an index — safest for repeatable inserts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |