convert_document
Convert documents between DOCX, PDF, RTF, ODT, HTML, MD and more, preserving original formatting and layout for high-fidelity output.
Instructions
文档转换:DOCX/DOC/PDF/RTF/ODT/TXT/HTML/MD,高保真保留排版。
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": {
"input_path": "<input_path>",
"output_format": "<output_format>"
},
"name": "convert_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | ||
| input_path | Yes | 输入文件绝对路径 | |
| output_path | No | 输出文件路径(可选) | |
| output_format | Yes | 目标格式:docx/pdf/html/rtf/odt/txt/md |