Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of "Word doc", "word document", ".docx", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, or converting content into a polished Word document. If the user asks for a "report", "memo", "letter", "template", or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
Use the create_docx tool with a declarative content array.
| type | Required props | Optional props |
|---|---|---|
heading | level (1–6), text | — |
paragraph | text | align: left/center/right/both |
table | rows (string[][]) | header (string[]) |
list | items (string[]) | ordered: boolean |
image | path, width (px), height (px) | — |
page_break | — |
| — |
{
"orientation": "portrait",
"header": "Company Name — Confidential",
"footer": "Page {n}"
}
Use {n} in footer for page number field.
{
"path": "report.docx",
"page_setup": {"orientation":"portrait","header":"ACME Corp","footer":"Page {n}"},
"content": [
{"type":"heading","level":1,"text":"Annual Report 2025"},
{"type":"paragraph","text":"This report covers...","align":"both"},
{"type":"table","header":["Division","Revenue","Growth"],"rows":[["North","$450M","12%"]]},
{"type":"page_break"},
{"type":"heading","level":2,"text":"Appendix"}
]
}
{"path": "doc.docx"}
Returns {"content": [{type, text/rows, ...}, ...]}.
read_docx to extract current contentcreate_docx with updated content (same path to overwrite)page_setup.orientation to change.create_docx.