MCP Tools
get_component_metadata
Read variant properties and component property definitions of a component or variant set.
Returns the variant properties (and their allowed values) and the component property definitions of a COMPONENT or COMPONENT_SET node. Use it to discover which variants exist before switching an instance with set_instance_variant.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| nodeId | string | Required | The Figma node ID of a COMPONENT or COMPONENT_SET |
Example prompt
Try asking: Which sizes and states does our Button component support?
Tips
- Use find_node with nodeType: 'COMPONENT_SET' to locate variant sets by name.
- Pass the set, not a single variant, to see every available value.