swap_component
Swap the main component of a Figma instance while preserving position and size. Replace existing components with new ones using node and component IDs.
Instructions
Swap the main component of an existing INSTANCE node, replacing it with a different component while keeping position and size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| componentId | Yes | Target COMPONENT node ID in colon format (from get_local_components) | |
| nodeId | Yes | INSTANCE node ID in colon format e.g. 4029:12345 |