List components
figma_get_componentsLists Figma components and component sets with variants, properties, descriptions, and usage counts to map design components to code; scope a page or entire file.
Instructions
Lists components and component sets (with variants, property definitions, descriptions and how often each is used), so you can map Figma components to code components. scope "page" covers the page of the linked node (fast); "file" loads every page.
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": {
"url": "<url>"
},
"name": "figma_get_components"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Figma link, e.g. https://www.figma.com/design/<fileKey>/<name>?node-id=12-345 (right-click a layer > Copy link to selection). A bare file key also works. | |
| scope | No | page | |
| format | No | yaml (default, ~30% fewer tokens) or json | yaml |
| source | No | Where to read from. auto (default): Figma's viewer protocol (no token, no Dev Mode), then the REST API if FIGMA_TOKEN is set, then the plugin. web/rest/plugin force one. | auto |
| node_id | No | Node id to use instead of the one in the link, e.g. "12:345", "12-345", or an instance sublayer "I12:345;67:89". | |
| include_library | No | Include components that come from shared libraries |