docx
Installation
SKILL.md
DOCX creation, editing, and analysis
Tool-First Workflow
Use the Document tool for ALL operations. Do NOT use Python scripts unless you need features the tool doesn't have.
Available Document tool actions
| Task | Tool call |
|---|---|
| Inspect metadata | Document { action: "inspect", file_path: "doc.docx" } |
| Read text content | Document { action: "read_text", file_path: "doc.docx" } |
| Extract headings | Document { action: "extract_headings", file_path: "doc.docx" } |
| Extract HTML | Document { action: "extract_html", file_path: "doc.docx" } |
| Export as plain text | Document { action: "export_text", file_path: "doc.docx", output_path: "out.txt" } |
| Create new document | Document { action: "create", output_path: "doc.docx", content: {...} } |
| Unpack for XML editing | Document { action: "unpack", file_path: "doc.docx", output_path: "unpacked/" } |
| Repack after editing | Document { action: "pack", file_path: "unpacked/", output_path: "output.docx" } |