Word Document Pack
★Trustedv1.0.0MIT✔Verified88by AgentNode · published 22 days ago · toolpack
Create, edit, and analyze Microsoft Word documents.
Generate DOCX files with headings, tables, images, styles, and formatting. Extract text and metadata from existing documents. Uses python-docx.
Quick Start
agentnode install word-document-packUsage
From packagefrom word_document_pack.tool import run
result = run(
action="create",
filename="quarterly_report_q1_2026.docx",
content=[
{"type": "heading", "level": 1, "text": "Q1 2026 Performance Report"},
{"type": "paragraph", "text": "This report summarizes key metrics and achievements for the first quarter of 2026."},
{"type": "heading", "level": 2, "text": "Revenue Summary"},
{"type": "table", "headers": ["Month", "Revenue", "Growth"], "rows": [
["January", "$142,000", "+12%"],
["February", "$158,000", "+11%"],
["March", "$175,000", "+10.8%"]
]},
{"type": "heading", "level": 2, "text": "Key Highlights"},
{"type": "list", "items": [
"Launched 3 new product features",
"Customer base grew by 2,400 accounts",
"Support ticket resolution time improved by 35%"
]},
{"type": "paragraph", "text": "Full details are available in the attached appendix.", "bold": True}
]
)
print(f"Document created: {result['filename']}")
print(f"File size: {result['size_bytes'] / 1024:.0f} KB")
print(f"Pages (estimated): {result['page_estimate']}")Verification
Package installs and imports correctly. runtime checks passed.
This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.
Last verified 18d ago· Runner v2.0.0
Use this when you need to...
- ›Generate formatted invoices and contracts as Word documents
- ›Extract text and tables from uploaded .docx files for processing
- ›Create mail-merge documents from template and CSV data
- ›Convert meeting notes into structured Word reports with headings
- ›Analyze Word documents for word count, structure, and formatting
README
Word Document Pack
Create, edit, and analyze Microsoft Word documents. Uses python-docx to generate professional .docx files with headings, tables, lists, and formatting — or extract content and metadata from existing documents.
Quick Start
agentnode install word-document-pack
from word_document_pack.tool import run
result = run(
action="create",
filename="report.docx",
content=[{"type": "heading", "level": 1, "text": "My Report"}]
)
print(result["filename"])
Usage
Create a Document
result = run(
action="create",
filename="meeting_notes.docx",
content=[
{"type": "heading", "level": 1, "text": "Sprint Planning — March 19"},
{"type": "paragraph", "text": "Attendees: Alice, Bob, Carol"},
{"type": "heading", "level": 2, "text": "Action Items"},
{"type": "list", "items": ["Deploy v2.4 by Friday", "Review PR #312", "Update staging env"]}
]
)
Extract Text from a Document
result = run(action="extract", file_path="proposal.docx")
print(result["text"])
print(f"Word count: {result['word_count']}")
Add Content to an Existing Document
result = run(
action="edit",
file_path="report.docx",
append=[
{"type": "heading", "level": 2, "text": "Appendix"},
{"type": "paragraph", "text": "Additional data and charts."}
]
)
API Reference
| Action | Description |
|---|---|
create | Create a new .docx file with structured content |
extract | Extract text, tables, and metadata from a .docx |
edit | Append or modify content in an existing .docx |
analyze | Get document statistics (word count, structure, metadata) |
Content types: heading, paragraph, table, list, page_break
License
MIT
Version History
Capabilities
Permissions
This package declares the following access levels. Review before installing.
agentnode install word-document-packFiles (3)
License
MITStats
Compatibility
Frameworks
Runtime
pythonPython Version
>=3.10Trust & Security
Publisher
AgentNode
@agentnode