write_word_document
Generate Word documents in DOCX or DOC format with structured content including titles, paragraphs, and tables for automated document creation.
Instructions
Generates a Word document in DOCX format, or DOC via LibreOffice conversion.
:param filename: Target output path ending with .docx or .doc :param title: Optional document title :param paragraphs: Optional paragraph list written in order :param tables: Optional table definitions using title, headers, and rows :return: JSON payload describing the generated file path and format
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>"
},
"name": "write_word_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| title | No | ||
| paragraphs | No | ||
| tables | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |