insert_doc_markdown
Convert markdown content into formatted Google Docs by inserting headings, bold/italic text, lists, and checkboxes with native Google Docs styling.
Instructions
Insert markdown content into a Google Doc with native formatting applied.
Supports # H1-### H3, **bold**, *italic*, - bullets, 1. numbered,
and - [ ] checkbox (also - [x]).
Converts markdown into Google Docs API batch requests so headings, lists,
and text emphasis render as proper Docs styles rather than raw markdown text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| document_id | Yes | ID of the document. | |
| markdown | Yes | Markdown content to insert. | |
| index | No | Document index at which to insert (default 1 — start of body). Ignored when end_of_segment=True. | |
| tab_id | No | Optional tab ID to target a specific tab. | |
| segment_id | No | Optional header/footer/footnote segment ID. | |
| end_of_segment | No | If True, append to the end of the targeted segment/body without needing to calculate an index. Most reliable for empty segments; for non-empty segments, use inspect_doc_structure first to find the exact insertion index. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |