generate_react_component
Convert a Figma node into a production React component, mapping Auto Layout to Flexbox, fills, typography, strokes, and border radius.
Instructions
Fetch a Figma node and convert it into a production React component with Auto Layout → Flexbox, fills, typography, strokes, and border radius mapping.
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": {
"figmaToken": "<figmaToken>",
"fileKey": "<fileKey>",
"nodeId": "<nodeId>"
},
"name": "generate_react_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Figma node ID to convert | |
| fileKey | Yes | Figma file key from the URL | |
| figmaToken | Yes | Figma Personal Access Token |