map_to_flutter
Convert Figma frames into Flutter widget trees with Material or Cupertino components, constructor properties, asset hints, and ThemeData suggestions.
Instructions
Map a Figma frame to a Flutter widget tree with Material or Cupertino suggestions, constructor-style properties, asset hints, and ThemeData suggestions.
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_flutter"
}
}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 | |
| component_library | No | Target Flutter component library | material |
| include_theme_data | No | Generate a ThemeData suggestion from the tree |