Duplicate section
swebsy_duplicate_sectionDuplicate a component with its classes and styles and place the copy immediately after it. Target by id or path; re-read the page before further path-based edits because paths shift.
Instructions
Copy 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).
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. |