convert_to_odt
Convert DOCX documents to OpenDocument Text (.odt) format using a native converter, mapping core text elements while noting any lossy conversions.
Instructions
Convert a DOCX document to OpenDocument Text (.odt) using the native model-to-model converter (no LibreOffice involved). Writes the .odt (default: source path with the .odt extension), validates ODF packaging safety before writing, and returns the output path plus a lossiness summary itemizing every downgraded construct. Conversion is semantic and intentionally lossy: text, headings, bold/italic/underline, hyperlinks, lists, and tables are mapped; richer styling, tracked changes, comments, and headers/footers are not. DOCX in, ODT out — Google Docs and .odt inputs are not supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Path to the DOCX or ODT file. | |
| output_path | No | Where to write the .odt. Defaults to the source path with the .odt extension. | |
| allow_overwrite | No | Overwrite output_path if it already exists. Default: false. |