Markdown to Word
doc_from_markdownConvert markdown into a .docx file, preserving headings, lists, GFM tables, and code fences, and return block counts by type. Rejects empty input and prevents overwriting unless allowed.
Instructions
Call this tool to turn markdown into a .docx, returning the file and a count of blocks by type. Headings, lists, GFM tables and code fences are honoured. Empty markdown is refused, and so is overwriting without the flag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | ||
| title | No | Document title; defaults to the first heading in the markdown | |
| markdown | Yes | The markdown source. ATX headings, paragraphs, bullet and numbered lists, GFM pipe tables and fenced code blocks as monospace are honoured, as are **bold**, *italic* and `code` inline | |
| out_path | No | Where to write the .docx. Defaults to the data directory | |
| overwrite | No | Replace out_path if a file is already there. Default false: an existing file is never overwritten |