open_document
Open a .docx file for reading and editing by unpacking the archive, parsing XML, and caching it in memory under a document handle for concurrent access.
Instructions
Open a .docx file for reading and editing.
Unpacks the DOCX archive, parses all XML parts, and caches them in memory under a handle. Multiple documents may be open concurrently, each under its own handle.
Args:
path: Absolute path to the .docx file.
document_handle: Optional handle to store this document under. Empty
string uses the shared __default__ slot (legacy behavior); pass
a unique value (e.g. a UUID) per concurrent session for isolation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| document_handle | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |