code.createBatchGrouped
Organize code files into labeled groups with visual headers for structured project management. Supports horizontal or vertical layouts to arrange components logically.
Instructions
Create code nodes organized in named groups with flow node headers. Each group gets a label header (flow node) with its code files arranged below it. Groups are placed side-by-side (horizontal) or stacked (vertical).
IMPORTANT: Provide descriptive names for each file. For Next.js page.tsx files, derive the name from the folder path (e.g., "/app/login/page.tsx" → "Login", "/app/dashboard/settings/page.tsx" → "Dashboard Settings"). Avoid generic names like "page" or "index".
Example: Organize files by folder structure like "Controllers", "Services", "Models".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groups | Yes | Array of groups: [{ name: "Auth Screens", files: [{ path: "/app/login/page.tsx", name: "Login" }, { path: "/app/signup/page.tsx", name: "Signup" }], color?: "#6366f1" }] | |
| layout | No | How to arrange groups: "horizontal" places groups side-by-side (default), "vertical" stacks groups top-to-bottom |