DOCX

Read and extract text, tables, and structure from .docx Word documents. Use when the user uploads or references a Word file to read or summarize.

decocms 0b524a7 2 files · 1.3 KB Updated

File contents

docx — Word documents

Use this skill to read or summarize .docx files.

Scripts

extract.py

Print text content from a .docx as plain text. Paragraphs are separated by blank lines; tables are rendered with tab-separated cells.

python org/public/core/docx/extract.py <path-to-file.docx>

Direct python-docx usage

For headings, styles, tables, images, or editing, import docx directly. The library is preinstalled.

from docx import Document
doc = Document("/path/to/file.docx")
for paragraph in doc.paragraphs:
    ...

decocms/studio/tree/main/packages/sandbox/image/skills/docx commit 0b524a7b86

Frequently asked questions

npx skillmds@latest add decocms/docx