Get one component
figma_get_componentRetrieve a Figma component's API—property definitions, variants, default variant, and driven layers—from a component, set, variant, or instance.
Instructions
One component's API, as code or an instance needs it: its property definitions (key, name, type, default, variant options, preferred swap targets), its variants with their values, the default variant, and which layers each property drives. Pass a component, a component set, a variant (answered from its set, where Figma keeps the definitions) or an instance (answered from its main component — library ones too, read-only). key is what figma_import_library_assets and figma_create_instance componentKey take. figma_get_local_components lists components; figma_get_design_context shows an instance's current values. references is paginated with limit + cursor. Editors: Design; unverified: FigJam, Slides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max layer references returned. Default 200. | |
| cursor | No | The nextCursor of a truncated call, unchanged. | |
| nodeId | Yes | A COMPONENT, COMPONENT_SET, variant or INSTANCE id. | |
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. |