Create a Word document
doc_createCreate .docx files from structured sections, including headings, paragraphs, lists, and tables, with plain, letter, or proposal layouts.
Instructions
Call this tool to write a real .docx file from structured sections. Returns the file path, the number of blocks written and the layout used. Free and unlimited.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date line for the letter layout, default today | |
| style | No | Layout, default plain. plain is the title and the body; letter adds a sender block top right, a date and the addressee; proposal adds a letterhead band and a cover title | |
| title | Yes | Document title, used as the top heading and the file name | |
| out_path | No | Where to write the .docx. Defaults to the data directory | |
| sections | Yes | Sections in order. Each one may carry a heading, paragraphs, a bullet or numbered list and a table | |
| overwrite | No | Replace out_path if a file is already there. Default false: an existing file is never overwritten | |
| recipient | No | Addressee block for the letter layout |