Generate scaffold
generate_scaffoldGenerate a project scaffold from catalog component ids. Pass stack (nextjs/react/…) so the registry can refuse incompatible pins — it never silently substitutes another version. Pin with "id@version" or { id, version }. Omit version to auto-select the best compatible release. Incompatible exact pins return COMPONENT_VERSION_INCOMPATIBLE plus alternatives and no files unless allow_incompatible is true. Component requires are resolved automatically. Omit apiKey for Local Mode. A successful result includes a requestId — pass it to report_issue if the output is wrong.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stack | No | Detected project stack. When set, compatibility is a hard registry rule. Omit to receive latest (unconstrained). | |
| apiKey | No | BotKelp API key (starts with "bk_live_"). Omit for Local Mode — free, unauthenticated, files-only generation. | |
| components | Yes | Component ids to include, e.g. ["nextjs-base", "tailwind", "supabase-client@2.0.0"]. | |
| projectName | No | Name used in package.json and templates. | |
| allow_incompatible | No | Expert override. Returns the requested pin with a warning instead of blocking. |