set_effect
Replace all effects on a Figma node with a specified list, or clear them by passing an empty array. Supports shadows and blurs, with clear errors for unsupported nodes.
Instructions
Replace all effects on a node with the provided list (assigns node.effects). Pass effects:[] to clear every effect. SHADOW effects use color/offset/radius/spread; BLUR effects use only radius. Fails clearly if the node does not support effects.
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": {
"nodeId": "<nodeId>",
"effects": "<effects>"
},
"name": "set_effect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to set effects on | |
| effects | Yes | Effects to apply, replacing all existing effects. Empty array clears effects. |