add_code_connect_map
Map a Figma design component to a code component so design context names the correct code component for every instance; pass an instance, component, or set ID.
Instructions
Map a design component to a code component, so get_design_context names the code component for every instance of it. Pass an instance, component or component set id; a component in a set maps the whole set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Framework, e.g. Flutter or React. | |
| nodeId | Yes | The ID of the node, eg. "123:456" or "123-456" (instance ids like "I1:2;3:4" work too). Omit it to use the current selection in Figma. | |
| source | Yes | Path of the code component in the project. | |
| fileKey | No | The key of the Figma file. Accepted for compatibility; the file open in Figma Desktop is always used. | |
| componentName | Yes | Code component name, e.g. AppPrimaryButton. |