wps_word_get_paragraphs
Retrieve paragraph structure from an active Word document to identify text, styles, and character positions. Use it to map template sections and locate fill-in fields before editing.
Instructions
获取Word文档的段落结构信息,返回每段的文本、样式和字符位置。
使用场景:
"了解文档的结构"
"查看文档有哪些段落"
"帮我看看模板里有哪些需要填写的位置"
在填写模板前,先读取文档结构以识别填写位置
返回信息包括:段落索引、文本内容、样式名称、字符起止位置。 支持分页获取(startParagraph/endParagraph),默认返回前50段。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_paragraph | No | 结束段落索引,默认为起始+49 | |
| start_paragraph | No | 起始段落索引(从1开始),默认1 |