wps_word_find_replace
在Word文档中查找并替换文本。 使用场景: - "把所有的'公司'替换成'集团'" - "把文档里的错别字改过来" - "批量替换某个词" 支持选项: - 区分大小写 - 全字匹配 - 全部替换或仅替换一处
This record as markdown: /tools/wps-office-mcp/wps-word-find-replace.md
What wps_word_find_replace does on Wps Office
AI agents call wps_word_find_replace 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 |
|---|---|---|---|
find_text | string | Yes | 要查找的文本 |
match_case | boolean | — | 是否区分大小写,默认false |
replace_all | boolean | — | 是否全部替换,默认true |
replace_text | string | — | 替换为的文本,如果只是查找不替换,可以不填 |
match_whole_word | boolean | — | 是否全字匹配,默认false |
Parameters from the server's own tool schema.
Why wps_word_find_replace is rated Low
Even though wps_word_find_replace 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_find_replace 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_find_replace, this is the rule to start with:
wps_word_find_replace 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_find_replace call is checked against it from then on.
Questions about wps_word_find_replace
在Word文档中查找并替换文本。 使用场景: - "把所有的'公司'替换成'集团'" - "把文档里的错别字改过来" - "批量替换某个词" 支持选项: - 区分大小写 - 全字匹配 - 全部替换或仅替换一处. It is categorised as a Read tool in the Wps Office MCP Server, which means it retrieves data without modifying state.
wps_word_find_replace accepts 5 parameters: find_text, match_case, replace_all, replace_text, match_whole_word. Required: find_text. 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_find_replace: 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_find_replace 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_find_replace 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_find_replace. 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_find_replace 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