Scaffold a React project (tokens wired in)
scaffold_react_projectGenerate a React project skeleton with Vite, antd, AG Grid, ApexCharts, and Tailwind, automatically wiring Figma design tokens into the configuration files.
Instructions
Generate a complete React + Vite + antd + AG Grid + ApexCharts + Tailwind project skeleton with the Figma design tokens already wired into tailwind.config, index.css, and the antd ConfigProvider theme, and WRITE it to disk. Returns just the list of files written — no boilerplate in context. Run this once, then add generated pages/components.
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": {
"figmaUrl": "<figmaUrl>",
"outDir": "<outDir>"
},
"name": "scaffold_react_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| outDir | Yes | Directory to create the project in (server-side path). | |
| figmaUrl | Yes | Figma URL or file key (used to extract tokens). | |
| projectName | No | Package name; defaults to 'figma-app'. |