legal_put_document
Replace an entire legal document on a WordPress site with ordered sections, rewriting the linked page content in one call.
Instructions
Replace a whole legal document (every section not listed is gone). Sections are ordered; omit slug to derive it from the heading. The linked page's post_content is rewritten at once. The plugin ships no legal prose - it stores and renders what it is given. Returns { saved: true }.
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>",
"sections": "<sections>"
},
"name": "legal_put_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document type | |
| site | Yes | Site id (see list_sites) | |
| title | No | Document title, rendered as the H1; defaults to the document type's label (e.g. Impressum) | |
| sections | Yes | Ordered sections |