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 为水平分隔线。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| content | Yes | ||
| filePath | Yes | .docx 保存路径(绝对路径) |