Export code
export_codeCode for screens (frames) or elements: React components (TSX), Vue single-file components, or standalone HTML pages, styled with the same Tailwind v4 classes. Template rows become a data array and a loop, components (data-component / data-use) one component each with typed props, Lucide icons lucide-react / lucide-vue-next imports, workspace images absolute URLs. Returns the files (path + content), the npm dependencies and notes (fonts, images, prototype links to wire). Screens of a flow exported together share their components, which come once. The code is a faithful translation of the design, not yet adapted to a codebase's own components, design tokens, routing or data.
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": {
"fileId": "<fileId>",
"nodeIds": "<nodeIds>"
},
"name": "export_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | ||
| nodeIds | Yes | Frames (screens) or elements to export (see get_file, find_nodes). | |
| framework | No | "react" (TSX function components), "vue" (<script setup lang="ts"> SFCs) or "html" (one standalone page per screen, everything resolved, Tailwind from its CDN). | react |