Format Doc from Markdown
format_documentWrite markdown content into a Google Doc with full formatting — headings, bold, italic, bullets, numbered lists, links, and horizontal rules. Use this instead of create_document or update_document when the content has structure that should be visually formatted. Pass file_id to replace an existing doc's content, or omit to create a new doc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Document title (required when creating a new doc) | |
| file_id | No | Existing Google Doc file ID to replace content in. Omit to create a new doc. | |
| markdown | Yes | Markdown content to render as a formatted Google Doc. Supports headings (# ## ###), **bold**, *italic*, - bullet lists, 1. numbered lists, [links](url), and horizontal rules (---). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Link that opens the document in Google Docs — give this to the user | |
| mode | Yes | The write mode actually applied: 'replace' or 'append'. Compare this against what you asked for. | |
| status | Yes | Always 'ok' — a failure arrives as an error, not as a status | |
| document_id | Yes | The document that was written | |
| chars_written | Yes | Number of characters written, counted in runes rather than bytes |