page.remove_section
Removes a section from a page by section ID or section type. If the page uses a monolithic template (e.g. ecommerce, portfolio, consultancy, restaurant), it safely hides the target sub-block (e.g. showFeatures: false, showTestimonials: false, showFaq: false) without deleting the entire page or template.
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": {
"siteId": "<siteId>",
"slug": "<slug>"
},
"name": "page.remove_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Target page slug (e.g. '/' or '/about') | |
| siteId | Yes | MongoDB Site ID | |
| sectionId | No | The ID of the section to remove (e.g. 'custom-code-12345' or block identifier) | |
| sectionType | No | The type or block name of the section to remove (e.g. 'hero', 'features', 'testimonials', 'faq', 'cta', 'custom_code') |