figma_migrate
Swap every instance of one component set for another, matching variants and keeping overrides. Preview the changes first, then apply them in one undo step.
Instructions
Move every instance of one component (set) to another, e.g. from an old Accordion set to the new one, or from one library to another: each instance is swapped to the matching variant (same property values; map renamed properties or values), keeping its overrides. Without approved it only reports what would change (instances per target variant, and the ones with no match). With approved it applies everything in one undo step.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "figma_migrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | New component or set | |
| from | Yes | Old component or set: name, { id } or { key } | |
| target | No | Where to look: a node id (a frame, section) or 'page' (default: the selection) | |
| approved | No | ||
| valueMap | No | Renamed values per (new) property, e.g. { "Hierarchy": { "Primary": "Contained" } } | |
| propertyMap | No | Renamed variant properties, old → new, e.g. { "Type": "Hierarchy" } |