Word Document Pack

Trustedv1.0.0MITVerified88

by 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.

langchaincrewaigeneric

Quick Start

bash
agentnode install word-document-pack

Usage

From package
python
from 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

high confidence88/100✔ Verified
smokeReturned valid result
+25/25
testsAuto-generated tests only
+8/15
importAll tools imported successfully
+15/15
installInstalled in 2.0s
+15/15
contractAll contract checks passed
+10/10
warningsNo warnings
0/0
determinismOutput consistency check
+5/5
reliability3/3 runs passed
+10/10

Package installs and imports correctly. runtime checks passed.

install2.0s
import393ms
smoke243ms
tests1.3s

This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.

Python 3.12.3ffmpegpopplertesseractuv

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

ActionDescription
createCreate a new .docx file with structured content
extractExtract text, tables, and metadata from a .docx
editAppend or modify content in an existing .docx
analyzeGet document statistics (word count, structure, metadata)

Content types: heading, paragraph, table, list, page_break

License

MIT

Version History

Capabilities

word_documentprocess_docxtool

Permissions

This package declares the following access levels. Review before installing.

Networknone
Filesystemtemp
Code Executionnone
Data Accessinput_only
User Approvalnever
bash
agentnode install word-document-pack

Files (3)

License

MIT

Stats

Downloads0
Installs0
Versionv1.0.0
Published3/16/2026
Channelstable
Typetoolpack
Entrypointword_document_pack.tool

Compatibility

Frameworks

langchaincrewaigeneric

Runtime

python

Python Version

>=3.10

Trust & Security

PublisherTrusted
SignatureNone
ProvenanceNone
Security Issues0

Publisher

A

AgentNode

@agentnode