swebsy_promote_to_symbol
Promote any page component into a reusable symbol for sharing and syncing across pages. Re-promote orphaned or unregistered copies to repair broken symbol linkages.
Instructions
Promote an existing component into a reusable SYMBOL so it can be shared, in sync, across pages. Pass its targetPath from read_page (e.g. the navbar or the CTA band). Also REPAIRS broken linkage (see list_symbols → health): re-promoting an orphaned copy rebuilds its main and re-links every other copy of it, and re-promoting a symbol registers instances it had lost. Returns the symbol id (for add_symbol_instance) and a repaired count; copies whose structure has diverged too far are reported as detached — delete_section + add_symbol_instance those instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional friendly name for the symbol (e.g. 'Navbar'). | |
| targetPath | Yes | Zero-based component indexes from the current page root, exactly as returned by read_page (e.g. [0] for the first top-level section). |