Parameters
string
required
The ID of the node to clone
number
New X position for the clone. If omitted, the clone will be offset from the original position.
number
New Y position for the clone. If omitted, the clone will be offset from the original position.
Response
Returns the name and ID of the cloned node, along with its position if specified.Examples
Clone a button without positioning
Clone and position a card
Create a grid of cloned elements
Clone and offset by a specific amount
Clone multiple times for variations
Notes
- The cloned node is an exact duplicate with all properties preserved
- If
xandyare not provided, Figma automatically offsets the clone - Clone includes all children if the node is a frame or group
- Component instances remain linked to their main component when cloned
- Use the returned ID to further modify the cloned node
- Cloning complex nodes with many children may take longer