insert_markdown
Convert Markdown text into native Google Docs formatting and insert it into a document at a specified position, supporting headings, lists, bold, italic, links, code blocks, blockquotes, checklists, and mentions.
Instructions
Insert Markdown-formatted content into a Google Doc.
Converts Markdown syntax (headings, bold, italic, lists, links, code blocks,
blockquotes) into native Google Docs formatting via batchUpdate requests.
Args:
user_google_email: User's Google email address.
document_id: ID of the document to update (supports A-Z aliases from search).
markdown_text: Markdown string to convert and insert.
index: Document index to start insertion at (1-based, default: 1).
Index 1 is the start of the document body.
checklist_mode: Checklist rendering mode for markdown task lists:
`unicode` (default) or `native`.
mention_mode: Mention rendering mode for markdown mentions:
`text` (default) or `person_chip`.
dry_run: When True (default), return planned mutation without executing it
Returns:
str: Confirmation message with document link and request count.
Example:
insert_markdown(
document_id="abc123",
markdown_text="# WelcomeThis is bold and italic text.
Item 1
Item 2" )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| document_id | Yes | ||
| markdown_text | Yes | ||
| index | No | ||
| checklist_mode | No | unicode | |
| mention_mode | No | text | |
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |