wps_word_get_paragraphs
获取Word文档的段落结构信息,返回每段的文本、样式和字符位置。 使用场景: - "了解文档的结构" - "查看文档有哪些段落" - "帮我看看模板里有哪些需要填写的位置" - 在填写模板前,先读取文档结构以识别填写位置 返回信息包括:段落索引、文本内容、样式名称、字符起止位置。 支持分页获取(startParagraph/endParagraph),默认返回前50段。
This record as markdown: /tools/wps-office-mcp/wps-word-get-paragraphs.md
What wps_word_get_paragraphs does on Wps Office
AI agents call wps_word_get_paragraphs to retrieve information from Wps Office without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
end_paragraph | number | — | 结束段落索引,默认为起始+49 |
start_paragraph | number | — | 起始段落索引(从1开始),默认1 |
Parameters from the server's own tool schema.
Why wps_word_get_paragraphs is rated Low
Even though wps_word_get_paragraphs only reads data, uncontrolled read access leaks sensitive information and racks up API costs: an agent caught in a retry loop can make thousands of calls a minute without anyone noticing.
Attacks that exploit this kind of access
The rule that runs wps_word_get_paragraphs safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Wps Office, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For wps_word_get_paragraphs, this is the rule to start with:
wps_word_get_paragraphs is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Wps Office, apply this rule, and every wps_word_get_paragraphs call is checked against it from then on.
Questions about wps_word_get_paragraphs
获取Word文档的段落结构信息,返回每段的文本、样式和字符位置。 使用场景: - "了解文档的结构" - "查看文档有哪些段落" - "帮我看看模板里有哪些需要填写的位置" - 在填写模板前,先读取文档结构以识别填写位置 返回信息包括:段落索引、文本内容、样式名称、字符起止位置。 支持分页获取(startParagraph/endParagraph),默认返回前50段。. It is categorised as a Read tool in the Wps Office MCP Server, which means it retrieves data without modifying state.
wps_word_get_paragraphs accepts 2 parameters: end_paragraph, start_paragraph. The full parameter table on this page comes from the server's own tool schema.
Register the Wps Office MCP server in PolicyLayer and add a rule for wps_word_get_paragraphs: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Wps Office. Nothing to install.
wps_word_get_paragraphs is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the wps_word_get_paragraphs rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for wps_word_get_paragraphs. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
wps_word_get_paragraphs is provided by the Wps Office MCP server (wps-office-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Wps Office, and thousands of servers like it.
This server
Across the catalogue