Generate application code
design.generate_codeExport design data from Figma or Adobe XD and generate semantic starter code for web, React, Vue, Flutter, SwiftUI, or Compose. Maps layout metadata to native flex, stacks, and fill-sized children.
Instructions
Export DesignIR from a host and generate a semantic starter implementation for web, React, Vue, Flutter core widgets, SwiftUI, or Jetpack Compose. Layout metadata maps to flex, Row/Column, stacks, and fill-sized children where possible.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "design.generate_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| scope | No | document | |
| target | No | web | |
| screenId | No |