mp_replace_passage
Replaces a uniquely matched passage in a WeChat Official Account draft body, then verifies the written result to confirm the edit.
Instructions
局部替换唯一匹配的正文文字,并核对写入结果。
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": {
"old_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "mp_replace_passage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_text | Yes | ||
| old_text | Yes |