Word Documents
Create, read & modify Word docs
Create, read, and modify Word documents (.docx) without Microsoft Word. Full formatting support: headings, lists, tables, images, tracked changes, comments, styles, hyperlinks, footnotes, and multi-section layouts. All skills return downloadable files.
Build a Word document from structured data: paragraphs with formatting, headings, lists, tables with merges, images, headers/footers, TOC, tracked changes, comments, styles, multi-section layouts, hyperlinks, and footnotes. Returns a downloadable .docx file.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "docx-tools",
"skill": "create_document",
"input": {
"content": [
{
"type": "paragraph",
"paragraph": {
"text": "Quarterly Report",
"heading": "h1",
"alignment": "center"
}
},
{
"type": "paragraph",
"paragraph": {
"text": "Q1 2026 Performance Summary",
"heading": "h2"
}
},
{
"type": "paragraph",
"paragraph": {
"runs": [
{
"text": "Revenue grew by ",
"size": 12
},
{
"text": "15%",
"bold": true,
"color": "00AA00",
"size": 12
},
{
"text": " compared to the previous quarter.",
"size": 12
}
]
}
},
{
"type": "table",
"table": {
"rows": [
{
"cells": [
{
"text": "Metric",
"bold": true,
"shading": "4472C4",
"color": "FFFFFF"
},
{
"text": "Q4 2025",
"bold": true,
"shading": "4472C4",
"color": "FFFFFF"
},
{
"text": "Q1 2026",
"bold": true,
"shading": "4472C4",
"color": "FFFFFF"
}
],
"is_header": true
},
{
"cells": [
{
"text": "Revenue"
},
{
"text": "$1.2M"
},
{
"text": "$1.38M"
}
]
},
{
"cells": [
{
"text": "Users"
},
{
"text": "45,000"
},
{
"text": "52,300"
}
]
}
]
}
}
],
"header": {
"text": "CONFIDENTIAL",
"alignment": "right",
"size": 8
},
"footer": {
"text": "Acme Corp",
"include_page_number": true
},
"filename": "quarterly-report.docx"
}
}' \
https://api.toolrouter.com/v1/tools/callExtract all content from a Word document as structured JSON — paragraphs, tables, raw text, word counts. Optionally extracts comments, tracked changes, properties, styles, headers, images, hyperlinks, and footnotes. Use to inspect a file before modifying.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "docx-tools",
"skill": "read_document",
"input": {
"url": "https://example.com/report.docx"
}
}' \
https://api.toolrouter.com/v1/tools/callApply batch operations to an existing Word document: insert/delete/replace paragraphs, insert tables and images, add comments and tracked changes, accept/reject changes, update properties, add headers/footers, page breaks, and styles. Returns the modified .docx file.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "docx-tools",
"skill": "modify_document",
"input": {
"url": "https://example.com/template.docx",
"operations": [
{
"action": "insert_paragraph",
"text": "Executive Summary",
"style": "Heading1",
"position": "beginning"
},
{
"action": "replace_text",
"find": "[COMPANY_NAME]",
"replace": "Acme Corporation"
},
{
"action": "insert_table",
"rows": [
[
"Name",
"Role",
"Start Date"
],
[
"Jane Smith",
"CTO",
"2026-01-15"
],
[
"John Doe",
"VP Engineering",
"2026-02-01"
]
],
"header_row": true,
"position": "end"
}
]
}
}' \
https://api.toolrouter.com/v1/tools/callQuick Start
claude mcp add --transport stdio \
--env TOOLROUTER_API_KEY=YOUR_API_KEY \
toolrouter -- npx -y toolrouter-mcpcurl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{"tool":"docx-tools","skill":"create_document","input":{}}' \
https://api.toolrouter.com/v1/tools/callFrequently Asked Questions
Can I create a formatted Word document without Word?
Yes. `create_document` builds .docx files from structured content, including paragraphs, tables, images, headers, footers, styles, tracked changes, footnotes, and multi-section layouts.
Can I inspect comments or tracked changes in an existing file?
`read_document` reads a .docx into structured JSON and can include comments, tracked changes, and other document metadata when you need a deeper edit pass.
Can I update an existing document instead of rebuilding it?
Yes. `modify_document` applies operations to an existing .docx file URL, which is useful when you only need targeted edits or cleanup.
What layout details can it handle?
It supports single-section and multi-section documents, page setup in DXA units, table cell spans, and page elements like TOC blocks, bookmarks, and page breaks.