Skip to main content
Deprecated: These tools have been removed as built-in tools. Use bash commands with appropriate packages or install a skill that provides this functionality. The tools are documented here for reference only.
Read and create Microsoft Word (.docx) documents.
Text output is capped at 50,000 characters (MAX_TEXT_OUTPUT). Uses mammoth for reading and docx for creation.

docx_read — Read Word Document

Extract content from a .docx file in text, Markdown, or HTML format.

Parameters

ParameterTypeRequiredDescription
pathstringyesPath to the .docx file
formatenum: text | markdown | htmlnoOutput format (default text)

Returns

Document content in the requested format, truncated at 50,000 characters.

Notes

  • text — plain text extraction (default)
  • markdown — converted from the HTML output using a basic HTML-to-Markdown converter
  • html — raw HTML as produced by mammoth

docx_create — Create Word Document

Create a new .docx file with structured content.

Parameters

ParameterTypeRequiredDescription
pathstringyesDestination file path
titlestringnoDocument title (inserted as a Title style heading)
contentarray of content blocksyesDocument content blocks (min 1)
Each content block has:
FieldTypeRequiredDescription
typeenum: heading | paragraph | bullet | numberedyesBlock type
textstringyesText content
levelnumber (1–6)noHeading level (only for heading type)
boldbooleannoBold formatting
italicbooleannoItalic formatting

Returns

Confirmation with the file path and block count.

Notes

  • Headings use levels 1–6, matching standard Word heading styles
  • bullet creates unordered list items, numbered creates ordered list items
  • bold and italic can be combined on any block type