Convert Word to PDF
convert_word_to_pdfUse this when the user uploads a Word .docx file and wants it as a PDF. Carries headings, paragraphs with alignment, bold, italic, underline, strikethrough, text sizes, links, bulleted and numbered lists with Word's numbers (decimal, letter and roman styles; other number styles print as digits and are listed as not carried), simple tables (merged cells, repeated header rows), JPEG and PNG images, page breaks, the page size and margins; footnotes and endnotes are printed at the end and tracked changes are accepted. Returns the PDF link, a read-back check of the PDF text, table cells, images and page size, and a list of each element type not carried (text boxes, shapes, charts, headers, footers, comments) with counts. Does not read .doc, password-protected or macro-enabled files, and does not keep fonts or colors. The link expires in about 1 hour.
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": {
"file": "<file>"
},
"name": "convert_word_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The Word document to convert, e.g. report.docx (a .docx file up to 15 MB). | |
| page_numbers | No | true (default) prints "page / total" centered at the bottom of each page; false prints no page numbers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| check | Yes | ||
| notes | Yes | ||
| pages | Yes | ||
| counts | Yes | ||
| result | Yes | ||
| outline | Yes | ||
| downloads | Yes | ||
| file_name | Yes | ||
| not_carried | Yes | ||
| source_name | Yes | ||
| outline_count | No | ||
| expires_in_hours | Yes | ||
| carried_with_rule | Yes | ||
| replaced_characters | Yes |