figma_library
Access Figma team libraries: list variable collections, view variables, and import components, styles, or variables into your file—optionally placing an instance.
Instructions
Team library access (the plugin manifest asks for the "teamlibrary" permission). collections: list the library variable collections available to this file. variables: list the variables in one collection (collectionKey). import: bring a component / componentSet / style / variable into the file by its library key; for components, instance:true also places an instance (figma_metadata reports component keys on instances).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| key | No | import: the library key. | |
| kind | No | import: what the key refers to (default component). | |
| action | Yes | ||
| instance | No | import component: also create an instance. | |
| parentId | No | import: parent node for the instance (default: current page). | |
| collectionKey | No | variables: the collection key from action collections. |