figma_generate_react
Generate a React component from a Figma node, with optional TypeScript, style format, and props. Converts design elements into code.
Instructions
Generate React component from a node.
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": {
"nodeId": "<nodeId>"
},
"name": "figma_generate_react"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| typescript | No | ||
| styleFormat | No | ||
| includeProps | No | ||
| componentName | No |