add_section
Append a validated section to an existing page's source, preview changes with dry-run, or save while preventing ID collisions.
Instructions
Append a section to an EXISTING page's source. Reads the current source, appends your section, validates, and (when dry_run=false) saves. The section is re-id'd to avoid collisions. Pass a section built with new_section, OR template:{ category_id, id } to insert a library section (list_section_templates). Two-step safety: dry_run=true (default) previews; dry_run=false saves.
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": {
"page_id": "<page_id>"
},
"name": "add_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview only (true) or save (false) | |
| page_id | Yes | Target page id | |
| section | No | A section node (from new_section) — object or JSON string | |
| template | No | Insert a library section instead (ids from list_section_templates) |