Word document to HTML
doc_to_htmlConvert .docx files to semantic HTML for browser viewing and PDF creation through printing. Returns the .html file path; PDFs are not rendered directly.
Instructions
Call this tool to convert a .docx to semantic HTML you can open in a browser and print to PDF. Returns the path of the .html file. This is the supported PDF route; no PDF is rendered here. Free and unlimited.
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": {
"path": "<path>"
},
"name": "doc_to_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .docx file to convert | |
| out_path | No | Where to write the .html. Defaults next to the source file. Open the result and print it to PDF; direct PDF output is not offered here | |
| overwrite | No | Replace out_path if a file is already there. Default false: an existing file is never overwritten |