map_to_swiftui
Map Figma frames to SwiftUI view trees with modifier suggestions, asset hints, and color asset helpers.
Instructions
Map a Figma frame to a SwiftUI view tree with modifier suggestions, asset hints, and generated color asset helpers.
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": {
"access_token": "<access_token>",
"file_key": "<file_key>",
"node_id": "<node_id>"
},
"name": "map_to_swiftui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | Node ID of the frame to map | |
| file_key | Yes | Figma file key | |
| max_depth | No | Maximum node tree depth | |
| access_token | Yes | Figma personal access token | |
| include_assets | No | Include asset export hints | |
| include_color_assets | No | Suggest SwiftUI Color assets and extension helpers |