edit_component_property
Edit a Figma component property by renaming it, updating its default value, or modifying swap-menu options for instance swap properties.
Instructions
Change an existing component property: rename it, change its defaultValue, or (INSTANCE_SWAP only) change its preferredValues. Supply at least one. Renaming returns a new propertyId (the #id suffix is kept but the name part changes), so use the returned propertyId for later calls; existing bindings keep working. Get current property ids from get_component_api. Returns { ok, componentId, propertyId, name }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New property name | |
| propertyId | Yes | Property id to edit (name#id, from get_component_api / add) | |
| componentId | Yes | Component or component-set id that owns the property | |
| defaultValue | No | New default (boolean / string / component key, matching the property type) | |
| preferredValues | No | INSTANCE_SWAP only: replacement swap-menu components/sets |