io.github.mdfifty50-boop/docx-forge
Professional document generation from structured data
Versions
0.1.1latestTools 9
health_check Returns server health, uptime, version, and call stats
create_document Create a new .docx Word document from markdown or plain text content. Supports headings (#, ##, ###), bold (**text**), italic (*text*), bullet lists (- item), numbered lists (1. item), and blank lines between paragraphs.
read_document Extract all text, paragraph list, headings, and file metadata from an existing .docx file. Returns structured data suitable for further processing or display.
add_section Append a new section (heading + body content) to the end of an existing .docx document. The document is updated in place.
replace_text Find and replace text in an existing .docx document. Useful for template substitution — e.g., replacing {{CLIENT_NAME}} with an actual name, or updating dates and contract values.
add_table Insert a formatted table into an existing .docx document. The table is appended at the end of the document with bold header row and standard cell borders.
merge_documents Combine multiple .docx files into a single document. Each source document is separated by a horizontal divider. Useful for assembling reports, consolidating contracts, or combining chapter files.
export_to_pdf Convert a .docx file to PDF. Attempts conversion via LibreOffice (best fidelity) then pandoc. Returns success status and the method used. Requires LibreOffice or pandoc to be installed on the system.
get_document_stats Get statistics for a .docx document: word count, character count, estimated page count (at 250 words/page), number of sections (headings), and number of tables.
Permissions 3
filesystem low shell high env_vars low