legal_add_section
Append a heading and HTML body section to a legal document, creating it when empty and preserving the section across regenerations. Returns the resolved slug used by shortcodes.
Instructions
Append a section to a legal document (creates the document if it is still empty). On a generated document the section is kept across regenerations. Returns { slug }, the resolved slug, which is what shortcodes address.
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>",
"heading": "<heading>",
"body": "<body>"
},
"name": "legal_add_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document type | |
| body | Yes | HTML body, filtered through wp_kses_post | |
| site | Yes | Site id (see list_sites) | |
| slug | No | Stable slug; derived from the heading when omitted, de-duplicated against existing sections | |
| level | No | Heading level, 2 (H2) or 3 (H3); default 2 | |
| heading | Yes | Section heading (plain text) |