figma_generate_swiftui
Generate SwiftUI code from a Figma node to create iOS views. Transform design elements into ready-to-use SwiftUI structures.
Instructions
Generate SwiftUI code 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_swiftui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| structName | No | ||
| includePreviews | No | ||
| useSystemColors | No |