batch_swap_component
Replace every instance of a selected component with another across the entire Figma file. Specify old and new component IDs to update all occurrences at once.
Instructions
Swap all instances of one component for another across the file.
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": {
"oldComponentId": "<oldComponentId>",
"newComponentId": "<newComponentId>"
},
"name": "batch_swap_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newComponentId | Yes | Replacement component | |
| oldComponentId | Yes | Component to replace |