swap_style
Replace a Figma paint style everywhere it's used with a new style.
Instructions
Find all usages of a specific paint style and replace them with another style.
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": {
"fromStyleId": "<fromStyleId>",
"toStyleId": "<toStyleId>"
},
"name": "swap_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toStyleId | Yes | The ID of the new style to use. | |
| fromStyleId | Yes | The ID of the style to replace. |