create_document
Create Word documents from structured content: headings, paragraphs, lists, tables, page breaks, and dividers. Apply rich formatting like bold, italic, color, and font size to text.
Instructions
创建 Word 文档。content 为结构化数组,每项 type: heading|paragraph|list|table|pageBreak|divider。 paragraph 支持 runs 富文本(数组 {text,bold?,italic?,color?,fontSize?});list 支持 ordered|items;table 支持 headers|rows;divider 为水平分隔线。
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": {
"filePath": "<filePath>",
"content": "<content>"
},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| content | Yes | ||
| filePath | Yes | .docx 保存路径(绝对路径) |