legal_update_section
Update a legal document section's heading or HTML body while keeping its slug stable, so existing shortcodes on the page continue to work after edits.
Instructions
Update a section. The slug is never rewritten, so shortcodes already placed on a page keep working when a heading is renamed.
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": {
"site": "<site>",
"doc": "<doc>",
"slug": "<slug>"
},
"name": "legal_update_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document type | |
| body | No | New HTML body, filtered through wp_kses_post | |
| site | Yes | Site id (see list_sites) | |
| slug | Yes | Section slug | |
| level | No | Heading level, 2 (H2) or 3 (H3); default 2 | |
| heading | No | New heading (plain text) |