confluence_add_anchor_block_to_section
Insert invisible anchor macros around a heading-based section to enable stable block targeting for later updates.
Instructions
Insert invisible start/end anchor macros around a heading-based section so later updates can target a stable block instead of relying on heading matching.
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": {
"pageId": "<pageId>",
"heading": "<heading>",
"startAnchor": "<startAnchor>",
"endAnchor": "<endAnchor>"
},
"name": "confluence_add_anchor_block_to_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | Confluence page ID | |
| heading | Yes | Heading text used to locate the section | |
| startAnchor | Yes | Start anchor name to insert before the section | |
| endAnchor | Yes | End anchor name to insert after the section | |
| occurrence | No | When the same heading appears multiple times, choose which occurrence (default 1) | |
| matchMode | No | Heading match mode: exact or contains (default exact) | |
| title | No | New page title (keeps current title if omitted) | |
| minorEdit | No | Whether this is a minor edit (default true) | |
| message | No | Version update message / change comment |