convert-figma-to-code
Fetches a Figma node and converts it into a code block, enabling AI to generate production-level frontend code from design files.
Instructions
Fetches a Figma node and its rendered image from the Figma API and converts it to a code block. Requires FIGMA_ACCESS_TOKEN environment variable to be set.
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": {
"figmaNodeUrl": "<figmaNodeUrl>"
},
"name": "convert-figma-to-code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| figmaNodeUrl | Yes | The URL of the Figma node (e.g., https://www.figma.com/design/fileKey/fileName?node-id=123-456) |