unpack_office_document
Extract and format Office document contents to XML files for inspection or manual editing of the underlying structure.
Instructions
Unpack an Office document (.docx, .pptx, .xlsx) to a directory. The XML files are pretty-printed for easy reading and editing. Use this to inspect or manually edit the raw XML structure.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"office_file": "<office_file>",
"output_dir": "<output_dir>"
},
"name": "unpack_office_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| office_file | Yes | Path to the Office file (.docx, .pptx, or .xlsx) | |
| output_dir | Yes | Directory to extract contents to |