Compile Markdown to Word (.docx)
compile_markdownConverts Markdown into Word (.docx) documents using format presets or templates, and supports captions, TOC, page breaks, abstracts, and math blocks.
Instructions
Compile Markdown into a Word (.docx) document. Ensure structures beyond standard Markdown (e.g. captions, TOC, page breaks, abstract, math blocks) follow the contract in get_guide. Uses the provided format file, or defaults to a built-in preset.
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": {
"markdown": "<markdown>"
},
"name": "compile_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| format | No | ||
| preset | No | ||
| markdown | Yes | ||
| keep_pages | No | ||
| keep_until | No | ||
| output_path | No | ||
| generate_pdf | No | ||
| base_template | No | ||
| cover_sections | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||