Wrap section
swebsy_wrap_sectionWrap a run of sibling components in one new element, optionally with a semantic tag — e.g. put everything between the navbar and footer in <main>, or a footer symbol in <footer>. The wrapped components keep their ids, id-styles and symbol links. ALWAYS use this to add a wrapper; re-sending the components through edit_section/replace_page_content loses their styles. Paths shift — call read_page before the next path-based edit.
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": {
"targetPath": "<targetPath>"
},
"name": "swebsy_wrap_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endPath | No | Path of the last component to wrap, a later sibling of targetPath. Everything between them is wrapped too. Omit to wrap only targetPath. | |
| tagName | No | Wrapper tag. Default div. One `main` per page, never inside header/footer/nav/aside/article. | |
| customName | No | Layers-panel label, e.g. "Main content". | |
| targetPath | Yes | Path (from the most recent `read_page`) of the first component to wrap. |