figma_add_component_property
Adds a BOOLEAN, TEXT, INSTANCE_SWAP, or VARIANT property to a Figma component or component set, enabling dynamic content and behavior in instances.
Instructions
Add a new component property to a component or component set. Properties enable dynamic content and behavior in component instances. Supported types: BOOLEAN (toggle), TEXT (string), INSTANCE_SWAP (component swap), VARIANT (variant selection).
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>",
"propertyName": "<propertyName>",
"type": "<type>",
"defaultValue": "<defaultValue>"
},
"name": "figma_add_component_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Property type: BOOLEAN for toggles, TEXT for strings, INSTANCE_SWAP for component swaps, VARIANT for variant selection | |
| nodeId | Yes | The component or component set node ID | |
| defaultValue | Yes | Default value for the property. BOOLEAN: true/false, TEXT: string, INSTANCE_SWAP: component key, VARIANT: variant value | |
| propertyName | Yes | Name for the new property (e.g., 'Show Icon', 'Button Label') |