build_project
Convert a single-file HTML rebuild into a runnable Vite, Astro, or Next.js source project with section components, split CSS, rewired GSAP timelines, and carried assets.
Instructions
Convert a single-file exact rebuild (any local .html, e.g. the rebuild flow's full-page-exact.html) into a runnable Vite, Astro or Next.js project: sections become components, CSS splits per section, gsap timelines re-wire in the framework idiom (useEffect + gsap.context on Next), assets carried. Reads a local file and writes the project dir. The output is source, not a servable site: install and build it (npm install && npm run build) and serve the generated output (Vite/Astro dist, Next .next with next start), not the raw scaffold directory. Pairs with verify_build: build → convert → verify.
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": {
"htmlPath": "<htmlPath>",
"target": "<target>",
"out": "<out>"
},
"name": "build_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | Yes | Directory to scaffold the project into (created as needed) | |
| name | No | package.json name (default rebuild-site) | |
| target | Yes | Framework of the generated project | |
| htmlPath | Yes | Local path to the single-file rebuild html to convert |