manage_component_property
Add, edit, or delete property definitions for component or variant set nodes in Figma, including renaming, changing type, and updating default values.
Instructions
Perform CRUD operations on property definitions for main components or variant sets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ID of the COMPONENT or COMPONENT_SET | |
| nodeName | Yes | Name of the node for verification | |
| action | Yes | Action to perform | |
| propertyName | Yes | The human-readable name of the property to affect | |
| newPropertyName | No | For the EDIT action, to rename the property | |
| propertyType | No | Required for ADD: The type of property | |
| defaultValue | No | Required for ADD: Default value for the property. For INSTANCE_SWAP, this must be a component node ID (for local components, the node id; for library components, first import via importComponentByKeyAsync to obtain a local node id). | |
| newDefaultValue | No | For the EDIT action, to change the default value. For INSTANCE_SWAP, this must be a component node ID. | |
| preferredValues | No | Array of preferred values for INSTANCE_SWAP properties during ADD or EDIT. Each entry must be { type, key } where key is the library key (component.key). |