export_consulting_docx
Compile multi-chapter Markdown into publication-ready Word (.docx) consulting reports with covers, TOC, native headings, three-line tables, and auto-renumbered references.
Instructions
将多章节 Markdown 编译导出为符合中国工程咨询与政企出版规范的 Word (.docx) 报告文件。
内置特性:
- 标准封面、自动目录(TOC)与页眉页脚
- 多级工程标题与正文粘连智能清洗拆分,100% 映射为 Word 原生 Heading 样式
- Markdown 表格自动渲染为出版级标准学术/工程三线表
- 全文【源:...】【标:...】【网:...】引用按首次出现顺序自动重编号为 [1], [2], [3]... 并在文末生成标准《参考文献》章(联网文献保留完整 URL)
参数:
chapters: 章节序号到章节 Markdown 正文的字典,例如 {"1": "# 第一章...", "2": "# 第二章..."}。
title: 报告主标题(封面与正文大标题,如 "长三角绿色智能算力枢纽项目可行性研究报告")。
project: 项目标识名(用于生成默认文件名与匹配项目底稿库)。
report_type: 报告类型(如 "可行性研究报告"、"智库专报")。
subtitle: 封面副标题标识(默认 "( 初 稿 )")。
author_org: 编制单位名称(可选,显示在封面底部)。
qualification: 工程咨询资信或资质编号(可选)。
date_str: 编制日期字符串(可选,如 "二〇二六年十一月")。
include_cover: 是否生成专业封面(默认 True)。
include_toc: 是否生成目录页(默认 True)。
include_refs: 是否自动汇总生成文末《参考文献》章(默认 True)。
output_path: 自定义输出 .docx 绝对路径(可选;留空则自动输出至 ENGINE_DATA_DIR/exports/ 目录)。
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": {
"chapters": "<chapters>",
"title": "<title>"
},
"name": "export_consulting_docx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| project | No | mcp_report | |
| chapters | Yes | ||
| date_str | No | ||
| subtitle | No | ( 初 稿 ) | |
| author_org | No | ||
| include_toc | No | ||
| output_path | No | ||
| report_type | No | 可行性研究报告 | |
| include_refs | No | ||
| include_cover | No | ||
| qualification | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||