duplicate_nodes
Creates multiple copies of selected Figma nodes with cumulative X/Y offsets and optional parent placement, returning clone IDs for each source node.
Instructions
Duplicate nodes. Each copy is offset by (offsetX, offsetY) from the previous one; count makes N copies with cumulative offset (copy k sits at original + k*offset). Copies stay in the original's parent (just above it) unless parentId is given, in which case they are appended there at the same relative x/y (+offset). Positions are ignored inside auto-layout parents. Returns per source node {id, clones:[...]}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"nodeIds": "<nodeIds>"
},
"name": "duplicate_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| count | No | Copies per node, default 1 | |
| nodeIds | Yes | Figma node ids, e.g. ['12:34'] | |
| offsetX | No | Default 0 | |
| offsetY | No | Default 0 | |
| parentId | No | Place the copies in this parent instead |