Replace Block Between Anchors
replace_block_between_manual_anchorsReplace content between two specified anchor texts in a Word document with new paragraphs, optionally using a style.
Instructions
Replace all content between start_anchor_text and end_anchor_text (or next logical header if not provided).
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": {
"filename": "<filename>",
"start_anchor_text": "<start_anchor_text>",
"new_paragraphs": "<new_paragraphs>"
},
"name": "replace_block_between_manual_anchors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| start_anchor_text | Yes | ||
| new_paragraphs | Yes | ||
| end_anchor_text | No | ||
| match_fn | No | ||
| new_paragraph_style | No |