add_component_property
Adds a BOOLEAN, TEXT, INSTANCE_SWAP, or VARIANT property to a Figma component or component set, optionally binding it to a child node’s visibility, text, or main component.
Instructions
Add a component property (BOOLEAN, TEXT, INSTANCE_SWAP, VARIANT) to a component or component set.
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>",
"name": "<name>",
"type": "<type>",
"defaultValue": "<defaultValue>"
},
"name": "add_component_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| name | Yes | ||
| type | Yes | ||
| nodeId | Yes | Figma node id, e.g. '12:34' | |
| bindToNodeId | No | Child node whose visibility (BOOLEAN) / characters (TEXT) / mainComponent (INSTANCE_SWAP) is controlled by the property | |
| defaultValue | Yes |