set_component_property_references
Links a child node's property to a component property, enabling dynamic updates to visibility, text, or component selection within a Figma component.
Instructions
Set componentPropertyReferences on a sublayer within a Component. Links a child node's property to an existing component property. Keys: 'visible'|'characters'|'mainComponent'.
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>",
"references": "<references>"
},
"name": "set_component_property_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The sublayer node ID (e.g. a child Instance or Text node) | |
| references | Yes | Object mapping property keys to component property names, e.g. { mainComponent: 'icon#10:0' } |