Duplicate section
swebsy_duplicate_sectionCopy a component (with its classes and styles) and insert the copy right after it. Paths after it shift by one — call read_page before the next path-based edit (ids don't shift).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "swebsy_duplicate_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetId | No | The component to copy 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 | Path (from the most recent `read_page`) of the component to copy. |