Delete section
swebsy_delete_sectionRemove a component from the current page entirely. Use this instead of emptying a section's contents — an emptied section leaves a stray blank div on the page. Deletes the selected component by default; pass targetId or targetPath (from read_page) to delete a component you did not select.
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": {
"summary": "<summary>"
},
"name": "swebsy_delete_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | 1 sentence naming what is being removed. | |
| targetId | No | The component to delete by its id, as `read_page` shows it after `#` (e.g. "ieyubib", or "call-2-2" in a symbol instance). Stays valid when other components move or are added, unlike a path. Pass this OR the path, not both. | |
| targetPath | No | Zero-based component indexes from the current page root, exactly as returned by the most recent `read_page` call. Omit to delete the selected component. |