batch_swap_component
Replace all instances of a selected component with a different component throughout the entire Figma file.
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 |
|---|---|---|---|
| oldComponentId | Yes | Component to replace | |
| newComponentId | Yes | Replacement component |